Not planned
Description
Bug report
Bug description:
Tried to install Python3.13.4 from source. Installation fails testing the building. All modules o.k. except hashlib.py
The new Python3.12.11, Python3.11.13, Python3.10.18, Python3.9.23 can be built and installed without problems. The same holds true for Python3.13.3.
I do not find any log.file for errors.
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Activity
ZeroIntensity commentedon Jun 4, 2025
Hi, what do you mean by "Installation fails testing the building"? What shows up?
Kadelka commentedon Jun 4, 2025
I configure with (o.K. for all other versions)
./configure --prefix=/usr/local --enable-ipv6 --enable-optimizations --enable-shared ; make
Then compilation with gcc, version 15.1.
Building of Modules o.K. with some warnings. Problem starts with
(The other versions of Python don't fail here).
After make altinstall the program behaves strangely.
ZeroIntensity commentedon Jun 4, 2025
Would you mind posting the tracebacks for the failures?
Kadelka commentedon Jun 4, 2025
I don't know if this is what you mean: Compilation stops with
Is there any log I can publish?
I've replaced hashlib.py with hashlib.py from version 3.13.3 (I know this is ugly). Same problem.
StanFromIreland commentedon Jun 4, 2025
It does build, it is just a test that fails.
Can you please give the test traceback and what system you are on, this may be a duplicate.
Kadelka commentedon Jun 4, 2025
I Have Suse Leap 15.6 (Linux) with local gcc-15.1 (works fine). python indeed builds, the test in the Makefile fails:
and then make stops.
make install
installs version 3.13.4, but this version does not behave correctly. After closing python the local program starts profiling.
ZeroIntensity commentedon Jun 4, 2025
Maybe there are some old build artifacts that shouldn't be there? Try running
make clean
or using a fresh clone of 3.13 and then building.Kadelka commentedon Jun 4, 2025
With
./configure --prefix=/usr/local --enable-ipv6 --enable-shared ; make
(without --enable-optimizations) Python3.13.4 can be built without problems. Of course this is not a complete solution of this problem, since Python3.13.3 can be installed with
--enable-optimizations
StanFromIreland commentedon Jun 4, 2025
I could recreate, I nuked
build/
and it was fine. Somehow my permissions had changed on a dir, magic maybe?make clean
was useless as a result. I'll look into returning it to that state again, it caused some odd errors.Edit: Thought: My system uses a non-utf8 locale, maybe this is the issue after it has been made default recently.
ZeroIntensity commentedon Jun 4, 2025
Not on 3.13
Kadelka commentedon Jun 4, 2025
Meanwhile the problem is solved, at least for me. The "solution" is strange. First I had to install Python3.13.4 with configuration
./configure --prefix=/usr/local --enable-ipv6 --enable-shared ; make ; make altinstall
then removing directory Python3.13.4, loading directory Python3.13.4 anew and then
./configure --prefix=/usr/local --enable-ipv6 --enable-optimization --enable-shared ; make ; make altinstall
installed python3.13 as intended.
I think, Makefile uses simultaneously two versions of python (the new built one and a system wide python) in the building process.
vstinner commentedon Jun 5, 2025
Would you mind to run test_hashlib in verbose mode and copy/paste the output? Something like:
LD_LIBRARY_PATH=/install/Python-3.13.4 ./python -m test test_hashlib -v
9 remaining items