nixpkgs/pkgs/development/compilers/gcc
Sergei Trofimovich 8f00857bf9 pkgsMusl.gcc12: backport build fix (PR106102)
Without the change gcc-12 on musl fails to build due to system headers
poisoning:

    /build/build/./prev-gcc/xg++ ... ../../gcc-13-20220626/gcc/cp/mapper-resolver.cc
        In file included from /<<NIX>>/musl-1.2.3-dev/include/pthread.h:30,
                 from /build/build/prev-x86_64-unknown-linux-musl/libstdc++-v3/include/x86_64-unknown-linux-musl/bits/gthr-default.h:35,
                 ....
                 from /build/build/prev-x86_64-unknown-linux-musl/libstdc++-v3/include/memory:77,
                 from ../../gcc-13-20220626/gcc/../libcody/cody.hh:24,
                 from ../../gcc-13-20220626/gcc/cp/../../c++tools/resolver.h:25,
                 from ../../gcc-13-20220626/gcc/cp/../../c++tools/resolver.cc:23,
                 from ../../gcc-13-20220626/gcc/cp/mapper-resolver.cc:32:
    /<<NIX>>/musl-1.2.3-dev/include/sched.h:84:7: error: attempt to use poisoned "calloc"
       84 | void *calloc(size_t, size_t);
          |       ^
    /<<NIX>>/musl-1.2.3-dev/include/sched.h:124:36: error: attempt to use poisoned "calloc"
      124 | #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
          |                                    ^

The change pulls upstream fix as is.
2022-07-09 09:35:25 +01:00
..
4.8
4.9 gcc49: Fix build on darwin 2022-06-23 10:42:39 -04:00
6
7
8
9 gcc9: 9.3.0 -> 9.5.0 2022-06-05 23:24:46 +02:00
10 gcc10: 10.3.0 -> 10.4.0 2022-06-29 10:07:32 +02:00
11 gdc: match gcc version 2022-05-20 13:49:55 +02:00
12 pkgsMusl.gcc12: backport build fix (PR106102) 2022-07-09 09:35:25 +01:00
common gcc49: Fix build on darwin 2022-06-23 10:42:39 -04:00
builder.sh
gcc-12-gfortran-driving.patch gcc12, gfortran12, gnat12: init at 12.1.0 2022-05-07 13:50:47 +01:00
gcc-12-no-sys-dirs.patch gcc12, gfortran12, gnat12: init at 12.1.0 2022-05-07 13:50:47 +01:00
gfortran-darwin-NXConstStr.patch
gfortran-driving.patch
gnat-cflags-11.patch
gnat-cflags.patch
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