Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Labels
type-bugAn unexpected behavior, bug, or error
@gtzampanakis

Description

@gtzampanakis

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_cppext

Output:

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)

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp