www-client/firefox-7.0.1 fails to compile. I get this error: collect2: ld terminated with signal 9 [Killed] make[5]: *** [libxul.so] Error 1 * The specific snippet of code: * CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" MOZ_MAKE_FLAGS="${MAKEOPTS}" emake -f client.mk || die "emake failed"; Reproducible: Always Steps to Reproduce: 1. emerge =www-client/firefox-7.0.1
Created attachment 288521 [details] emerge --info
It needs 3.5gb to link, have you tried in a more large PORTAGE_TMPDIR?
(In reply to comment #2) > It needs 3.5gb to link, have you tried in a more large PORTAGE_TMPDIR? My PORTAGE_TMPDIR is in the same partition as / , so I have 350GB free.
How much RAM (including swap) is available? Mind sharing the dmesg output after the failure? Are there any resource limits for the portage user? If you see an Out of Memory warning then: Remove pipe from CFLAGS and CXXFLAGS and use MAKEOPTS=-j1 to reduce the memory strain although it will mean longer compilation times.
(In reply to comment #4) > How much RAM (including swap) is available? Mind sharing the dmesg output after > the failure? Are there any resource limits for the portage user? > > If you see an Out of Memory warning then: > Remove pipe from CFLAGS and CXXFLAGS and use MAKEOPTS=-j1 to reduce the memory > strain although it will mean longer compilation times. I have 2GB of ram and no swap. The portage user is root. I have this in the dmesg output: [92454.289835] Out of memory: Kill process 30155 (ld) score 563 or sacrifice child I'm going to try removing pipe and changing MAKEOPTS to -j1. Thanks.
You need to provide the build.log, it is impossible to track down why the failure is occuring without it.
nothing ebuilds can really do about OOM *** This bug has been marked as a duplicate of bug 20600 ***