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
Can't compile with -O3, on ARM, with gcc 3.4.4 #48844
Comments
I downloaded the source to Python 3.0 onto my Nokia N810, an ARM-based Now, this isn't really Python's fault; gcc really shouldn't be crashing. |
Well, Python does have a way - the way you have been using. However, as yet another way, you can set the OPT environment variable,
I'm opposed. Selecting such a thing by platform and compiler version |
The OPT env var is good. Maybe it could be documented in configure --help? And, yeah, recognizing the platform is messy. I'll dig and see whether |
OK, nope, gcc 3.4.6 on x86-64 builds fine. So, please, just have |
Can you contribute a patch? I'm skeptical it whether it is even possible |
You may be right; I haven't used autoconf before, so I don't know. But I'll give it a shot. |
Any progress? |
The new CFLAGS logic is capable of overriding configure options and $ make CFLAGS="-O2"
gcc -pthread -c -ftest-coverage -fprofile-arcs -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -O2 -I. -IInclude -I./Include -DPy_BUILD_CORE -o Objects/bytesobject.o Objects/bytesobject.c |
OK, sounds reasonable. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: