Emerging libpng-1.2.43-r2 fails to extract the archive, with an error about "memory usage limit reached". Reproducible: Always Steps to Reproduce: 1. emerge --oneshot '=libpng-1.2.43-r2' Actual Results: >>> Unpacking source... >>> Unpacking libpng-1.2.43.tar.xz to /var/tmp/portage/media-libs/libpng-1.2.43-r2/work xz: /var/tmp/portage/media-libs/libpng-1.2.43-r2/distdir/libpng-1.2.43.tar.xz: Memory usage limit reached xz: Limit was 18 MiB, but 65 MiB would have been needed tar: This does not look like a tar archive tar: Error exit delayed from previous errors Expected Results: libpng installs. The computer in question has 48MB of physical RAM and 256MB of swap space. At the time I started the emerge, 38MB of physical RAM and 241MB of swap were free.
1.2.43-r2 emerges fine here, get more RAM or try using more swap
Put XZ_OPT="--memory=max" into your /etc/make.conf Maybe this should be the default in /etc/make.globals since I already saw many people run into this issue.
(In reply to comment #2) > Put XZ_OPT="--memory=max" into your /etc/make.conf > > Maybe this should be the default in /etc/make.globals > since I already saw many people run into this issue. That fixed it. I think this needs to be documented somewhere (maybe in the xz or libpng ebuilds?), because not all of us have the ability to increase RAM, and according to the xz man page, increasing swap won't help.
More or less a duplicate of bug 293580 and bug 303975. *** This bug has been marked as a duplicate of bug 303975 ***