Skip to content
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

error: "cysignals must be compiled without _FORTIFY_SOURCE" #194

Open
orlitzky opened this issue Dec 1, 2023 · 0 comments
Open

error: "cysignals must be compiled without _FORTIFY_SOURCE" #194

orlitzky opened this issue Dec 1, 2023 · 0 comments

Comments

@orlitzky
Copy link

orlitzky commented Dec 1, 2023

#73 is back for the third time. When building with clang on Gentoo,

$ CC=clang python setup.py build
running build
running build_py
...
In file included from build/src/cysignals/signals.c:2365:
build/src/cysignals/implementation.c:27:2: error: "cysignals must be compiled without _FORTIFY_SOURCE"
#error "cysignals must be compiled without _FORTIFY_SOURCE"

The constant __USE_FORTIFY_LEVEL=3 is built in to the compiler, so the two different hacks that we have to work around this are ineffective (and yes, the result still crashes if I remove the guard). I have yet to find a third workaround.

This is also Gentoo bug 918934.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant