-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cysignals does not compile with -Wp,-D_FORTIFY_SOURCE=2 #80
Comments
Where do these flags come from?
No, the problem is |
To be honest, I consider this a bug on your system: why are you using That doesn't mean that I refuse to fix it, but it does mean that I feel no pressure to fix it. I'm certainly open for pull requests... |
I just ran "pip install cysignals" in a new virtual env on an unchanged AWS Linux AMI. I saw recent commits in this repo were designed to work around this and thought I'd report it didn't seem to work. I can work around it so not a major issue for my purposes. |
Just in case anyone is interested, "-Wp,-D_FORTIFY_SOURCE=2" is in /usr/bin/python3.4m-x86_64-config, and appears in the output of |
Thanks for the info. Anyway, the fix is to add |
to run with pip: |
By the way, the rationale for Redhat using commit 1518ff2d14377c05ecf7cf9428e42964516883b4
Author: Elliot Lee <sopwith@redhat.com>
Date: Wed Feb 9 15:09:11 2005 +0000
Fix java builds
diff --git a/macros b/macros
index 7cbe282..18c61b5 100644
--- a/macros
+++ b/macros
@@ -151,4 +151,4 @@ unset DISPLAY\
%__find_provides /usr/lib/rpm/redhat/find-provides
%__find_requires /usr/lib/rpm/redhat/find-requires
-%__global_cflags -O2 -g -pipe -D_FORTIFY_SOURCE=2
+%__global_cflags -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 In other words, I have no clue... |
i was having the same problem in centos 7 . This solves my problem |
This solves my problem in centos 7. |
This is the gcc command created by pip install version 1.6.9 on an Amazon Linux AMI:
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -U_FORTIFY_SOURCE -Isrc/cysignals -Ibuild/src -Ibuild/src/cysignals -I/usr/include/python3.4m -c build/src/cysignals/signals.c -o build/temp.linux-x86_64-3.4/build/src/cysignals/signals.o
And the error:
So maybe U_FORTIFY_SOURCE doesn't work in conjunction with also setting D_FORTIFY_SOURCE?
The text was updated successfully, but these errors were encountered: