To prevent emerge starting extreme swapping or running OoM, it could be a solution to have a local config file, which package should be build on it own, without running other concurrent jobs. The option could be named --single-job <package>/<file with pkg list> or --build-alone or --one-and-only. If you have a strong machine (core/ram ratio re compiling) then you can build a big package with the default MAKEOPTS="-j" options. If you have a slower machine you can even combine the emerge limit with a lower make -j values on a per package base. Thanks to ezakimak. See also https://bugs.gentoo.org/184128 [TRACKER] portage "job control" functionality Reproducible: Always
The spi *** This bug has been marked as a duplicate of bug 737098 ***
Note that https://wiki.gentoo.org/wiki//etc/portage/package.env may help.