nixpkgs-suyu/pkgs
Maximilian Bosch e10ea9608a
gcc{7,9,10}: apply patches for asan w/glibc-2.34
This should fix a few broken cc-wrapper tests that also check for
libasan[1][2][3]:

    [...]
    checking whether sanitizers are fully functional... ==243==ERROR: AddressSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22)
    [...]

The underlying issue is that `SIGSTKSZ` isn't a compile-time constant
anymore, but in this case the uninitialized `kAltStackSize` was
initialized early enough to evalute to `0`[4].

The issue is already fixed in gcc11 and there's  GCC 8.5 which also
contains the patch, however the backports to v9 and v10 aren't released
yet, so we have to apply patches on our own here.

For GCC 7.5 I applied the patch from gcc8 as it doesn't seem as if
there's an official upstream backport.

[1] https://hydra.nixos.org/build/163102264
[2] https://hydra.nixos.org/build/163624687
[3] https://hydra.nixos.org/build/163619227
[4] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100114
2022-02-27 10:26:58 +01:00
..
applications clingcon: fix build w/glibc-2.34 2022-02-27 10:26:56 +01:00
build-support Merge branch 'master' into staging-next 2022-02-26 21:04:25 -03:00
common-updater
data Merge branch 'master' into staging-next 2022-02-26 21:04:25 -03:00
desktops Merge branch 'master' into staging-next 2022-02-26 21:04:25 -03:00
development gcc{7,9,10}: apply patches for asan w/glibc-2.34 2022-02-27 10:26:58 +01:00
games nethack-qt: fix build w/glibc-2.34 2022-02-27 10:26:53 +01:00
misc Merge branch 'staging-next' into staging 2022-02-27 09:24:31 +01:00
os-specific tiscamera: fix build w/glibc-2.34 2022-02-27 10:26:52 +01:00
pkgs-lib
servers ursadb: fix build w/glibc-2.34 2022-02-27 10:26:52 +01:00
shells Merge branch 'master' into staging-next 2022-02-26 21:04:25 -03:00
stdenv stdenv-bootstrap: force using new libc from stage2 2022-02-27 10:25:33 +01:00
test
tools djmount: fix build w/glibc-2.34 2022-02-27 10:26:56 +01:00
top-level Merge branch 'staging-next' into staging 2022-02-27 09:24:31 +01:00