Skip to content

test_cppext fails on s390x RHEL7 Refleaks 3.x: option ‘-std=gnu11’ is valid for C/ObjC but not for C++ (GCC 4.8.5) #107084

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
vstinner opened this issue Jul 22, 2023 · 4 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@vstinner
Copy link
Member

s390x RHEL7 Refleaks 3.x: https://buildbot.python.org/all/#/builders/129/builds/828

test test_cppext failed -- multiple errors occurred; run in verbose mode for details
(...)
      gcc -std=gnu11 -pthread -fno-strict-overflow -Wsign-compare -g -Og -Wall -fPIC -I/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.refleak/build/build/test_python_34724æ/test_python_worker_42721æ/tempcwd/env/include -I/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.refleak/build/Include -I/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.refleak/build -c /home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.refleak/build/Lib/test/_testcppext.cpp -o build/temp.linux-s390x-cpython-313-pydebug/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.refleak/build/Lib/test/_testcppext.o -Werror -std=c++03
      cc1plus: error: command line option ‘-std=gnu11’ is valid for C/ObjC but not for C++ [-Werror]
      cc1plus: all warnings being treated as errors
      error: command '/usr/bin/gcc' failed with exit code 1

@vstinner vstinner added the type-bug An unexpected behavior, bug, or error label Jul 22, 2023
@vstinner
Copy link
Member Author

test.pythoninfo:

CC.version: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)

@vstinner vstinner changed the title test_cppext fails on s390x RHEL7 Refleaks 3.x: option ‘-std=gnu11’ is valid for C/ObjC but not for C++ test_cppext fails on s390x RHEL7 Refleaks 3.x: option ‘-std=gnu11’ is valid for C/ObjC but not for C++ (GCC 4.8.5) Jul 22, 2023
@vstinner
Copy link
Member Author

Maybe I can just skip the test on old GCC versions, like GCC 4.8.

@stratakis: Do we care about testing C++ support of Python 3.13 on RHEL7?

@dtrodrigues
Copy link
Contributor

This appears to be a dupe of #105776 introduced by #104925

@vstinner
Copy link
Member Author

Ok, I close this issue, let's continue in issue #105776.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants
@vstinner @dtrodrigues and others