nixpkgs/pkgs/development/compilers/gcc
Sergei Trofimovich 3d66844c2d gcc: revert "do not install sys-include headers for cross-compilers."
The change reverts commit 7df4387ebd

A few reasons to revert the commit:
1. The change was not enough to restore `-idirafter` override semantic
   to match unwrapped compiler.
2. The change broke override semantics for cross-compilers
3. The change made override semantics different between cross-compiler
   and native compiler

All of three have some overlap between, but I think it's important
to call all of them out.

The main fallout is the uboot builds, reported by cynerd.

Used the following test to check the override recovery:

    $ nix shell github:NixOS/nixpkgs/release-22.05#pkgsCross.aarch64-multiplatform.stdenv.cc
    $$ cat stdio.h
    # empty
    $$ printf "#include <stdio.h>" | aarch64-unknown-linux-gnu-gcc -E - -o - -idirafter . >/dev/null; echo $?
    0

It failed before the change and succeded after.
2023-07-26 16:40:42 +01:00
..
4.8 gcc: use callFile instead of callPackage for builder.nix 2023-07-07 05:56:46 -07:00
4.9 gcc: use callFile instead of callPackage for builder.nix 2023-07-07 05:56:46 -07:00
6 gcc: use callFile instead of callPackage for builder.nix 2023-07-07 05:56:46 -07:00
7 gcc: use callFile instead of callPackage for builder.nix 2023-07-07 05:56:46 -07:00
8 gcc: use callFile instead of callPackage for builder.nix 2023-07-07 05:56:46 -07:00
9 gcc: use callFile instead of callPackage for builder.nix 2023-07-07 05:56:46 -07:00
10 gcc: use callFile instead of callPackage for builder.nix 2023-07-07 05:56:46 -07:00
11 gcc: use callFile instead of callPackage for builder.nix 2023-07-07 05:56:46 -07:00
12 gcc: use callFile instead of callPackage for builder.nix 2023-07-07 05:56:46 -07:00
13 gcc: use callFile instead of callPackage for builder.nix 2023-07-07 05:56:46 -07:00
common gcc: revert "do not install sys-include headers for cross-compilers." 2023-07-26 16:40:42 +01:00
ada-cctools-as-detection-configure.patch gnat12: Add support for x86_64-darwin 2023-01-07 18:32:12 +11:00
fix-bug-80431.patch gcc{6..11}: import a patch into nixpkgs 2023-05-26 12:55:25 +02:00
gcc-12-gfortran-driving.patch
gcc-12-no-sys-dirs.patch
gfortran-darwin-NXConstStr.patch
gfortran-driving.patch
gnat-cflags-11.patch
gnat-cflags.patch
gnat-darwin-dylib-install-name.patch gnat12: Fix GNAT Darwin dylib install names 2023-01-11 09:03:43 +11:00
libgomp-dont-force-initial-exec.patch
libphobos.patch
libsanitizer-no-cyclades-9.patch
libsanitizer-no-cyclades.patch
libstdc++-netbsd-ctypes.patch
libstdc++-target.patch
no-sys-dirs-riscv-gcc9.patch
no-sys-dirs-riscv.patch
no-sys-dirs.patch
parallel-bconfig.patch
ppc-musl.patch
res_state-not-declared.patch
sigsegv-not-declared.patch
struct-sigaltstack-4.9.patch
struct-sigaltstack.patch
struct-ucontext-4.5.patch
struct-ucontext-4.8.patch
struct-ucontext-libjava.patch
struct-ucontext.patch
update-mcfgthread-patches.sh
use-source-date-epoch.patch