Bug 214339 - app-office/gnucash-2.2.3 parallel install fails
Bug#: 214339 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: tove@gentoo.org Reported By: travis.hunter@gmail.com
Component: Applications
URL: 
Summary: app-office/gnucash-2.2.3 parallel install fails
Keywords:  
Status Whiteboard: 
Opened: 2008-03-23 04:22 0000
Description:   Opened: 2008-03-23 04:22 0000
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.

------- Comment #1 From Jakub Moc (RETIRED) 2008-03-23 08:27:58 0000 -------
Reopen with full emerge log attached showing the errors, really cannot guess.

------- Comment #2 From Decibels 2008-03-24 12:47:42 0000 -------
Created an attachment (id=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....

------- Comment #3 From Decibels 2008-03-24 13:01:21 0000 -------
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.

------- Comment #4 From Jakub Moc (RETIRED) 2008-03-24 13:02:48 0000 -------
Reopen...

------- Comment #5 From Torsten Veller 2008-03-24 21:25:04 0000 -------
The ebuilds already use "emake -j1". So whatever number of jobs you set in
MAKEOPTS it should be reduced to only one job.

------- Comment #6 From Decibels 2008-03-24 21:55:52 0000 -------
So what would you like us to do? Willing to work on it.

------- Comment #7 From Marc Champion 2008-03-24 22:44:05 0000 -------
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.

------- Comment #8 From Torsten Veller 2008-03-25 03:15:56 0000 -------
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>

------- Comment #9 From Torsten Veller 2008-03-25 03:47:40 0000 -------
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.

------- Comment #10 From Torsten Veller 2008-03-26 07:49:09 0000 -------
*** Bug 214813 has been marked as a duplicate of this bug. ***