View previous topic :: View next topic |
Author |
Message |
MurphyG n00b
Joined: 19 Oct 2010 Posts: 26
|
Posted: Wed Oct 30, 2024 6:58 pm Post subject: Python 3.13.0 ebuild disk space requirements |
|
|
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 |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1992
|
Posted: Wed Oct 30, 2024 7:22 pm Post subject: |
|
|
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 |
|
|
MurphyG n00b
Joined: 19 Oct 2010 Posts: 26
|
Posted: Wed Oct 30, 2024 7:37 pm Post subject: |
|
|
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 |
|
|
lagalopex Guru
Joined: 16 Oct 2004 Posts: 565
|
|
Back to top |
|
|
MurphyG n00b
Joined: 19 Oct 2010 Posts: 26
|
Posted: Thu Oct 31, 2024 9:38 pm Post subject: |
|
|
Good option, thank you! |
|
Back to top |
|
|
|