diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-06-08 00:26:10 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2018-01-03 23:06:44 +0200 |
commit | 8e7ec29df4289a12f56f6f8f997868a048339e4f (patch) | |
tree | b645307435b3e32b2aa1bd660aee5c690acd5c85 /gnu/packages/patches/gcc-asan-missing-include.patch | |
parent | 7bbc708a4e5849158a6b688da0a0958b275f9eea (diff) | |
download | guix-8e7ec29df4289a12f56f6f8f997868a048339e4f.tar guix-8e7ec29df4289a12f56f6f8f997868a048339e4f.tar.gz |
gnu: gcc@4.8: Fix libsanitizer cross-compilation.
This patch is modified from the original patch targeting gcc@5.
* gnu/packages/patches/gcc-asan-missing-include.patch: New file.
* gnu/packages/gcc.scm (gcc@4.8)[source](patches): Add it.
* gnu/local.mk (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/patches/gcc-asan-missing-include.patch')
-rw-r--r-- | gnu/packages/patches/gcc-asan-missing-include.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/patches/gcc-asan-missing-include.patch b/gnu/packages/patches/gcc-asan-missing-include.patch new file mode 100644 index 0000000000..74b10c4a44 --- /dev/null +++ b/gnu/packages/patches/gcc-asan-missing-include.patch @@ -0,0 +1,20 @@ +Add missing include that triggers a build failure on PowerPC: + + ../../../../gcc-5.4.0/libsanitizer/asan/asan_linux.cc: In function ‘bool __asan::AsanInterceptsSignal(int)’: + ../../../../gcc-5.4.0/libsanitizer/asan/asan_linux.cc:222:20: error: ‘SIGSEGV’ was not declared in this scope + return signum == SIGSEGV && common_flags()->handle_segv; + ^ +From <https://patchwork.ozlabs.org/patch/725596/>. + +diff --git a/libsanitizer/asan/asan_linux.cc b/libsanitizer/asan/asan_linux.cc +index c504168..59087b9 100644 +--- a/libsanitizer/asan/asan_linux.cc ++++ b/libsanitizer/asan/asan_linux.cc +@@ -29,6 +29,7 @@ + #include <dlfcn.h> + #include <fcntl.h> + #include <pthread.h> ++#include <signal.h> + #include <stdio.h> + #include <unistd.h> + #include <unwind.h> |