Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling python 3.13
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 445

PostPosted: Sat Nov 02, 2024 8:52 am    Post subject: Compiling python 3.13 Reply with quote

Code:

Total duration: 20 min 12 sec
Total tests: run=37,097 failures=17 skipped=1,374
Total test files: run=425/434 failed=10 skipped=32 resource_denied=9
Result: FAILURE


So I think I've managed to reduce the scope of the build failures.

1. Went back to native "bare" cflags.
2. Tried to compile on hardware machine with same setup that did work succesful
3. Removed tmpfs from equation
4. Removed pgo from equation

Am starting to suspect the container environment being the culprit.

Will do some test with compiler versions, but so far python 3.13 seems to have issues for my portage setup in a container. On a system with over 2000 packages that did not have this problem before.
Spent more than a day now to figure out why python 3.13 does not want to build in a container environment, but does want to do so outside with the _exact_ same useflag, toolchain etc.
It is currently blocking build chain, but I guess the short answer is to hard block >=3.13 for the moment, until it's fixed.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22592

PostPosted: Sat Nov 02, 2024 2:18 pm    Post subject: Reply with quote

Which tests fail? Are they the same ones that fail with USE=pgo? If I recall correctly, the USE=pgo failures were because Python was trying to write and then execute in /tmp (presumably, ignoring $TMPDIR being set to some other directory), and when /tmp is noexec, that failed. I wonder if your container environment has set noexec on some other directories that are normally not mounted noexec.

Can you pastebin the full build.log of a failed build?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1899

PostPosted: Sat Nov 02, 2024 2:24 pm    Post subject: Reply with quote

It is not recommended to enable test in FEATURES unless you are managing the package. For simple daily use, including test in FEATURES will cause many packages to fail.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22592

PostPosted: Sat Nov 02, 2024 2:33 pm    Post subject: Reply with quote

I recently tried to build dev-lang/python:3.13 with USE=pgo and without FEATURES=test. It failed, with errors relating to trying to execute things in /tmp. That build apparently runs at least some tests without being asked to do so. I subsequently discovered dev-lang/python-3.13.0[pgo] build fails with /tmp mounted noexec, which matched my situation. I did not particularly need USE=pgo, so I disabled it and then python:3.13 installed successfully for me.
Back to top
View user's profile Send private message
sdauth
l33t
l33t


Joined: 19 Sep 2018
Posts: 644
Location: Ásgarðr

PostPosted: Sat Nov 02, 2024 5:15 pm    Post subject: Reply with quote

Hu wrote:
That build apparently runs at least some tests without being asked to do so.


Same here, I don't have test enabled but it still runs tests anyway.
For now I masked it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum