-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Python 3.11.4: Running "make test" fails under gcc 4.8.5 because both -std=gnu11 and -std=c++11 are specified when compiling _testcpp11ext #105776
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
Comments
I closed issue #107084 as a duplicate of this one. |
s390x RHEL7 buildbots are affected by the same issue. Example on the main branch when running test_cppext: https://buildbot.python.org/all/#/builders/179/builds/5253
AMD64 RHEL7 3.x and PPC64LE RHEL7 3.x buildbots are not affected. AMD64 RHEL7 3.x (ok): test.pythoninfo
PPC64LE RHEL7: test.pythoninfo
s390x: test.pythoninfo
Oh, AMD64 and PPC64LE use 8.3.1, whereas s390x use GCC 4.8.5. The |
Ok, the problem is not really the GCC version (4.8.5), but how GCC is called:
Python uses
|
Fix test_cppext when the C compiler command "-std=c11" option: remove "-std=" options from the compiler command.
Fix test_cppext when the C compiler command has the "-std=c11" option. Remove "-std=" options from the compiler command.
…thonGH-108343) Fix test_cppext when the C compiler command has the "-std=c11" option. Remove "-std=" options from the compiler command. (cherry picked from commit 9173b2b) Co-authored-by: Victor Stinner <[email protected]>
…thon#108343) Fix test_cppext when the C compiler command has the "-std=c11" option. Remove "-std=" options from the compiler command. (cherry picked from commit 9173b2b)
…H-108343) (#108345) gh-105776: Fix test_cppext when CC contains -std=c11 option (GH-108343) Fix test_cppext when the C compiler command has the "-std=c11" option. Remove "-std=" options from the compiler command. (cherry picked from commit 9173b2b) Co-authored-by: Victor Stinner <[email protected]>
Looks like everything is done here? Thanks @gtzampanakis and @vstinner for the issue and PRs! |
In Python 3.11.4, running "make test" fails under gcc 4.8.5 because both -std=gnu11 and -std=c++11 are specified when compiling _testcpp11ext.
Run the following:
./configure make make test EXTRATESTOPTS=test_cppext
Output:
Your environment
Linked PRs
The text was updated successfully, but these errors were encountered: