Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Example on aarch64 Debian Clang LTO + PGO 3.x: https://buildbot.python.org/all/#/builders/1084/builds/4019
0:02:04 load avg: 5.35 [290/473/1] test_peg_generator failed (22 errors) -- running (2): test_io (32.6 sec), test_socket (32.8 sec)
(...)
Successfully installed setuptools-67.6.1 wheel-0.43.0
(...)
test_ternary_operator (test.test_peg_generator.test_c_parser.TestCParser.test_ternary_operator) ... warning: profile data may be out of date: of 9 functions, 1 has mismatched data that will be ignored [-Wprofile-instr-out-of-date]
1 warning generated.
./parse.o: file not recognized: file format not recognized
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ERROR
======================================================================
ERROR: test_ternary_operator (test.test_peg_generator.test_c_parser.TestCParser.test_ternary_operator)
----------------------------------------------------------------------
(...)
distutils.errors.LinkError: command '/usr/local/bin/clang' failed with exit code 1
Linked PRs
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
vstinner commentedon Apr 15, 2024
I can reproduce the issue on Fedora 39 with:
vstinner commentedon Apr 15, 2024
It seems like it's a regression introduced by the change: commit 1ddbeae.
cc @erlend-aasland
erlend-aasland commentedon Apr 15, 2024
Yes, I suspected this. Perhaps we should revert that change and just don't support the
make -C buildscenario.erlend-aasland commentedon Apr 15, 2024
I still think we should keep 396b831, though.
vstinner commentedon Apr 15, 2024
For git bisect, I used:
For old commits, it seems like test_ternary_operator() didn't exist, so instead I ran:
pythongh-117889: Fix PGO test in test_peg_generator
vstinner commentedon Apr 15, 2024
The test_peg_generator check for PGO build no longer works since the variable contains a shell command:
I wrote PR gh-117893 to fix the test.
pythongh-117889: Fix PGO test in test_peg_generator
gh-117889: Fix PGO test in test_peg_generator (#117893)
pythongh-117889: Fix PGO test in test_peg_generator (pythonGH-117893)
[3.12] gh-117889: Fix PGO test in test_peg_generator (GH-117893) (#11…
pythongh-117889: Fix PGO test in test_peg_generator (python#117893)