If I use PGO, I cannot compile Python 3.13.4
due to a failure in the sqlite3
test.
Works fine:
pyenv install --verbose 3.13.4
Does not work:
env PYTHON_CONFIGURE_OPTS='--enable-optimizations --with-lto' PYTHON_CFLAGS='-march=native -mtune=native' PROFILE_TASK='-m test.regrtest --pgo -j0' pyenv install --verbose 3.13.4
Error:
[...]
0:01:01 load avg: 1.09 [36/43] test_sqlite3
test test_sqlite3 failed
[...]
Total duration: 1 min 16 sec
Total tests: run=9,361 skipped=211
Total test files: run=43/43 failed=1
Result: FAILURE
make: *** [Makefile:902: profile-run-stamp] Error 2
BUILD FAILED (Debian 12 using python-build 20180424)
Inspect or clean up the working tree at /tmp/python-build.20250604105140.3042159
Results logged to /tmp/python-build.20250604105140.3042159.log
Last 10 log lines:
0:01:13 load avg: 1.08 [42/43] test_xml_etree
0:01:14 load avg: 1.15 [42/43] test_xml_etree passed
0:01:14 load avg: 1.15 [43/43] test_xml_etree_c
0:01:16 load avg: 1.15 [43/43] test_xml_etree_c passed
Total duration: 1 min 16 sec
Total tests: run=9,361 skipped=211
Total test files: run=43/43 failed=1
Result: FAILURE
make: *** [Makefile:902: profile-run-stamp] Error 2
Checking why command:
LD_LIBRARY_PATH=/tmp/python-build.20250604060611.2726127/Python-3.13.4 ./python -m test.regrtest --verbose3 test_sqlite3
Error:
======================================================================
ERROR: test_open_undecodable_uri (test.test_sqlite3.test_dbapi.OpenTests.test_open_undeco
dable_uri)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/python-build.20250604060611.2726127/Python-3.13.4/Lib/test/test_sqlite3/test
_dbapi.py", line 729, in test_open_undecodable_uri
with contextlib.closing(sqlite.connect(uri, uri=True)) as cx:
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
sqlite3.OperationalError: unable to open database file
======================================================================
ERROR: test_open_undecodable_uri (test.test_sqlite3.test_dbapi.OpenTests.test_open_undeco
dable_uri)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/python-build.20250604060611.2726127/Python-3.13.4/Lib/test/support/os_helper
.py", line 346, in unlink
_unlink(filename)
~~~~~~~^^^^^^^^^^
OSError: [Errno 84] Invalid or incomplete multibyte or wide character: b'@test_2791983_tm
p\xe7w\xf0'
======================================================================
ERROR: test_open_with_undecodable_path (test.test_sqlite3.test_dbapi.OpenTests.test_open_
with_undecodable_path)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/python-build.20250604060611.2726127/Python-3.13.4/Lib/test/test_sqlite3/test
_dbapi.py", line 682, in test_open_with_undecodable_path
with contextlib.closing(sqlite.connect(path)) as cx:
~~~~~~~~~~~~~~^^^^^^
sqlite3.OperationalError: unable to open database file
======================================================================
ERROR: test_open_with_undecodable_path (test.test_sqlite3.test_dbapi.OpenTests.test_open_
with_undecodable_path)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/python-build.20250604060611.2726127/Python-3.13.4/Lib/test/support/os_helper
.py", line 346, in unlink
_unlink(filename)
~~~~~~~^^^^^^^^^^
OSError: [Errno 84] Invalid or incomplete multibyte or wide character: b'@test_2791983_tm
p\xe7w\xf0'
----------------------------------------------------------------------
Ran 487 tests in 0.974s
FAILED (errors=4, skipped=4)
test test_sqlite3 failed
0:00:01 load avg: 5.74 [1/1/1] test_sqlite3 failed (4 errors)
== Tests result: FAILURE ==
1 test failed:
test_sqlite3
Total duration: 1.3 sec
Total tests: run=487 skipped=4
Total test files: run=1/1 failed=1
Result: FAILURE
I've installed all mentioned dependencies for my system (Debian 12) from the README and build issues wiki, so I'm not sure what I'm missing.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4