Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Python 3.13.0 ebuild disk space requirements
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
MurphyG
n00b
n00b


Joined: 19 Oct 2010
Posts: 25

PostPosted: Wed Oct 30, 2024 6:58 pm    Post subject: Python 3.13.0 ebuild disk space requirements Reply with quote

On a laptop with 8 GB RAM I get the following error for a current world build:

Code:
>>> Failed to emerge dev-lang/python-3.13.0, Log file:

>>>  '/var/tmp/portage/dev-lang/python-3.13.0/temp/build.log'

>>> Running pre-merge checks for sys-kernel/linux-firmware-20241017-r3

>>> Running pre-merge checks for net-libs/nodejs-22.4.1-r1

 * Messages for package dev-lang/python-3.13.0:

 * There is NOT at least 5500 MiB disk space at "/var/tmp/portage/dev-lang/python-3.13.0/temp"
 *
 * Memory or space constraints set in the ebuild were not met!
 * The build will most probably fail, you should:
 * - enhance the memory (reduce MAKEOPTS, add swap), or
 * - add more space
 * as required depending on the failed tests.
 *
 * ERROR: dev-lang/python-3.13.0::gentoo failed (pretend phase):
 *   Build requirements not met!
 *
 * Call stack:
[...]


The maximum size of the /var/tmp FS seems to be calculated automatically:

Code:
$ df /var/tmp
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           3,9G   94M  3,8G   3% /var/tmp


I can probably tweak the size in /etc/fstab, but I'm hesitant, because that might also decrease the available RAM for the actual build process. Also, what would you do on a system with 4 GB of memory or even less; are those supposed to be left behind by Gentoo from now on?

So, is that space actually required to build a recent Python? And what are my options to work around that?
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1938

PostPosted: Wed Oct 30, 2024 7:22 pm    Post subject: Reply with quote

Note that it looks like the requirement is only for USE=pgo or tests. And yeah, I think tmpfs defaults to to 50% of RAM. I would just not use tmpfs if you're low on RAM -- that doesn't mean you're left behind, as you've chosen to put /var/tmp on tmpfs (it's not the default).
Back to top
View user's profile Send private message
MurphyG
n00b
n00b


Joined: 19 Oct 2010
Posts: 25

PostPosted: Wed Oct 30, 2024 7:37 pm    Post subject: Reply with quote

Checking for pgo was a really good hint; getting rid of that use flag would let me build it.

I can't remember why exactly I've made /var/tmp a tmpfs; it was probably either because it was recommended in some Gentoo setup docs, or because I wanted to relieve the SSD from all those write cycles and speed up the build a bit... (Edit: I was probably following https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs back then, and that might have had a different content.) Yes, disabling that at least temporarily would also be a (not favourited) option.
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 565

PostPosted: Thu Oct 31, 2024 5:14 am    Post subject: Reply with quote

I have a per package fallback to a non-tmpfs build folder as described in the wiki page you linked. https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs#Per-package_choices_at_compile_time
The examples from the article give a good starting point Is use it for some years already without problems.
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