When emerging gnucash with MAKEOPTS="-j5", compile sometimes fails with libtool errors about relinking libgnc-file-backend.la several times from different jobs. Emerging with MAKEOPTS="-j1" seems to fix this. Reproducible: Sometimes Steps to Reproduce: 1. MAKEOPTS="-j5" emerge gnucash 2. 3. Actual Results: Compile sometimes fails with libtool errors. Expected Results: Successful emerge When setting MAKEOPTS="-j1" and reemerging, emerge was successful last two times.
Reopen with full emerge log attached showing the errors, really cannot guess.
Created attachment 147105 [details] Build log for the failed emerge of gnucash Same error, but not using MAKEOPTS="-j5" using -j3 on mine. Have not tried the -j1. The part failing mentioned in build log is: collect2: ld returned 1 exit status libtool: install: error: relink `libgncmod-backend-file.la' with the above command before installing it make[6]: *** [install-pkglibLTLIBRARIES] Error 1 make[6]: *** Waiting for unfinished jobs....
Well, does work if change MAKEOPTS="-j1". Have it running finally, but going to try again, cause there is still bugs on guile and gnucash to deal with. I emerge gnucash with nodeps this time to see if would compile cause couldn't start it with the newer versions of guile. But thats another bug.
Reopen...
The ebuilds already use "emake -j1". So whatever number of jobs you set in MAKEOPTS it should be reduced to only one job.
So what would you like us to do? Willing to work on it.
I can confirm this on amd64. Emerging gnucash-2.2.3 stopped for me about 5 times with the error: libtool: install: error: relink `libgncmod-backend-file.la' with the above command before installing it After changing MAKEOPTS="-j3" to MAKEOPTS="-j1" in /etc/make.conf the emerge worked the first time.
Ok, they've just changed the gnome2.eclass. It now uses emake (which respects MAKEOPTS). <http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gnome2.eclass?r1=1.83&r2=1.84>
Back to one job for make install. (In reply to comment #6) > So what would you like us to do? Willing to work on it. It would be great if someone fixes the build system and makes it parallel make safe. Thanks for the bug report.
*** Bug 214813 has been marked as a duplicate of this bug. ***