Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
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:
./configuremakemaketest EXTRATESTOPTS=test_cppextOutput:
0:00:12 load avg: 0.92 [1/1/1] test_cppext failed (2 failures)test test_cppext failed -- multiple errors occurred; run in verbose mode for detailsrunning build_extbuilding '_testcpp03ext' extensioncreating buildcreating build/temp.linux-x86_64-cpython-311creating build/temp.linux-x86_64-cpython-311/homecreating build/temp.linux-x86_64-cpython-311/home/httpdcreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-netcreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delmecreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4creating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4/Libcreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/testgcc -std=gnu11 -pthread -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/httpd/wgvd-net/delme/Python-3.11.4/build/test_python_130531æ/test_python_worker_130534æ/tempcwd/env/include -I/home/httpd/wgvd-net/delme/Python-3.11.4/Include -I/home/httpd/wgvd-net/delme/Python-3.11.4 -c /home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/_testcppext.cpp -o build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/_testcppext.o -Werror -std=c++03cc1plus:error: command line option ‘-std=gnu11’ is valid for C/ObjC but not for C++ [-Werror]cc1plus:all warnings being treated as errorserror:command '/usr/bin/gcc' failed with exit code 1running build_extbuilding '_testcpp11ext' extensioncreating buildcreating build/temp.linux-x86_64-cpython-311creating build/temp.linux-x86_64-cpython-311/homecreating build/temp.linux-x86_64-cpython-311/home/httpdcreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-netcreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delmecreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4creating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4/Libcreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/testgcc -std=gnu11 -pthread -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/httpd/wgvd-net/delme/Python-3.11.4/build/test_python_130531æ/test_python_worker_130534æ/tempcwd/env/include -I/home/httpd/wgvd-net/delme/Python-3.11.4/Include -I/home/httpd/wgvd-net/delme/Python-3.11.4 -c /home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/_testcppext.cpp -o build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/_testcppext.o -Werror -std=c++11cc1plus:error: command line option ‘-std=gnu11’ is valid for C/ObjC but not for C++ [-Werror]cc1plus:all warnings being treated as errorserror:command '/usr/bin/gcc' failed with exit code 1== Tests result: FAILURE ==1 test failed: test_cppext0:00:12 load avg: 0.920:00:12 load avg: 0.92 Re-running failed tests in verbose mode0:00:12 load avg: 0.92 Re-running test_cppext in verbose mode (matching: test_build_cpp03, test_build_cpp11)test_build_cpp03 (test.test_cppext.TestCPPExt.test_build_cpp03) ...Run:/home/httpd/wgvd-net/delme/Python-3.11.4/python -X dev -m venv envRun:env/bin/python -X dev /home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/setup_testcppext.py build_ext --verbose -std=c++03running build_extbuilding '_testcpp03ext' extensioncreating buildcreating build/temp.linux-x86_64-cpython-311creating build/temp.linux-x86_64-cpython-311/homecreating build/temp.linux-x86_64-cpython-311/home/httpdcreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-netcreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delmecreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4creating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4/Libcreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/testgcc -std=gnu11 -pthread -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/httpd/wgvd-net/delme/Python-3.11.4/build/test_python_130531æ/tempcwd/env/include -I/home/httpd/wgvd-net/delme/Python-3.11.4/Include -I/home/httpd/wgvd-net/delme/Python-3.11.4 -c /home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/_testcppext.cpp -o build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/_testcppext.o -Werror -std=c++03cc1plus:error: command line option ‘-std=gnu11’ is valid for C/ObjC but not for C++ [-Werror]cc1plus:all warnings being treated as errorserror:command '/usr/bin/gcc' failed with exit code 1ERRORtest_build_cpp11 (test.test_cppext.TestCPPExt.test_build_cpp11) ...Run:/home/httpd/wgvd-net/delme/Python-3.11.4/python -X dev -m venv envRun:env/bin/python -X dev /home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/setup_testcppext.py build_ext --verboserunning build_extbuilding '_testcpp11ext' extensioncreating buildcreating build/temp.linux-x86_64-cpython-311creating build/temp.linux-x86_64-cpython-311/homecreating build/temp.linux-x86_64-cpython-311/home/httpdcreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-netcreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delmecreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4creating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4/Libcreating build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/testgcc -std=gnu11 -pthread -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/httpd/wgvd-net/delme/Python-3.11.4/build/test_python_130531æ/tempcwd/env/include -I/home/httpd/wgvd-net/delme/Python-3.11.4/Include -I/home/httpd/wgvd-net/delme/Python-3.11.4 -c /home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/_testcppext.cpp -o build/temp.linux-x86_64-cpython-311/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/_testcppext.o -Werror -std=c++11cc1plus:error: command line option ‘-std=gnu11’ is valid for C/ObjC but not for C++ [-Werror]cc1plus:all warnings being treated as errorserror:command '/usr/bin/gcc' failed with exit code 1ERROR======================================================================ERROR:test_build_cpp03 (test.test_cppext.TestCPPExt.test_build_cpp03)----------------------------------------------------------------------Traceback (most recent call last): File"/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/test_cppext.py", line24, intest_build_cpp03self.check_build(True,'_testcpp03ext') File"/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/test_cppext.py", line39, incheck_buildself._check_build(std_cpp03, extension_name) File"/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/test_cppext.py", line80, in_check_build run_cmd('Build', cmd) File"/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/test_cppext.py", line64, inrun_cmd subprocess.run(cmd,check=True) File"/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/subprocess.py", line571, inrunraise CalledProcessError(retcode, process.args,subprocess.CalledProcessError:Command '['env/bin/python', '-X', 'dev', '/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/setup_testcppext.py', 'build_ext', '--verbose', '-std=c++03']' returned non-zero exit status 1.======================================================================ERROR:test_build_cpp11 (test.test_cppext.TestCPPExt.test_build_cpp11)----------------------------------------------------------------------Traceback (most recent call last): File"/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/test_cppext.py", line21, intest_build_cpp11self.check_build(False,'_testcpp11ext') File"/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/test_cppext.py", line39, incheck_buildself._check_build(std_cpp03, extension_name) File"/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/test_cppext.py", line80, in_check_build run_cmd('Build', cmd) File"/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/test_cppext.py", line64, inrun_cmd subprocess.run(cmd,check=True) File"/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/subprocess.py", line571, inrunraise CalledProcessError(retcode, process.args,subprocess.CalledProcessError:Command '['env/bin/python', '-X', 'dev', '/home/httpd/wgvd-net/delme/Python-3.11.4/Lib/test/setup_testcppext.py', 'build_ext', '--verbose']' returned non-zero exit status 1.----------------------------------------------------------------------
Your environment
Python 3.11.4CentOS Linux release 7.9.2009 (Core)gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)