Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141131 - gedit requires MAKEOPTS="-j1"
Summary: gedit requires MAKEOPTS="-j1"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 155397 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-20 00:46 UTC by Pieter Van den Abeele (RETIRED)
Modified: 2006-11-29 17:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pieter Van den Abeele (RETIRED) gentoo-dev 2006-07-20 00:46:27 UTC
Most of the time gedit compiles just fine, however, I've had 

while emerge --oneshot gedit >gedit.log 2>&1; do true; done

running for a whole night on a quad core system and it seems that simetimes gedit fails to get through the compile stage with an error like:

if ! test -d de/; then mkdir de/; fi
case "." in /*) sd=".";; *) sd="../.";;	esac; \
	if [ -f "C/legal.xml" ]; then d="../"; else d="$sd/"; fi; \
	(cd de/ && \
	  `which xml2po` -e -p \
	    "${d}de/de.po" \
	    "${d}C/legal.xml" > legal.xml.tmp && \
	    cp legal.xml.tmp legal.xml && rm -f legal.xml.tmp)
Traceback (most recent call last):
  File "/usr/bin/xml2po", line 800, in ?
    doSerialize(doc)
  File "/usr/bin/xml2po", line 551, in doSerialize
    outtxt += doSerialize(child)
  File "/usr/bin/xml2po", line 545, in doSerialize
    (starttag, content, endtag, translation) = processElementTag(node, repl, 1)
  File "/usr/bin/xml2po", line 458, in processElementTag
    myrepl.append(processElementTag(child, myrepl, 1))
  File "/usr/bin/xml2po", line 458, in processElementTag
    myrepl.append(processElementTag(child, myrepl, 1))
  File "/usr/bin/xml2po", line 458, in processElementTag
    myrepl.append(processElementTag(child, myrepl, 1))
  File "/usr/bin/xml2po", line 458, in processElementTag
    myrepl.append(processElementTag(child, myrepl, 1))
  File "/usr/bin/xml2po", line 458, in processElementTag
    myrepl.append(processElementTag(child, myrepl, 1))
  File "/usr/bin/xml2po", line 458, in processElementTag
    myrepl.append(processElementTag(child, myrepl, 1))
  File "/usr/bin/xml2po", line 470, in processElementTag
    translation = getTranslation(outtxt, isSpacePreserveNode(node))
  File "/usr/bin/xml2po", line 248, in getTranslation
    gt = gettext.GNUTranslations(file)
  File "/usr/lib/python2.4/gettext.py", line 177, in __init__
    self._parse(fp)
  File "/usr/lib/python2.4/gettext.py", line 280, in _parse
    raise IOError(0, 'File is corrupt', filename)
IOError: [Errno 0] File is corrupt: '.xml2po.mo'
make[2]: *** [bg/gedit.xml] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gedit-2.14.3/work/gedit-2.14.3/help'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gedit-2.14.3/work/gedit-2.14.3'
make: *** [all] Error 2

!!! ERROR: app-editors/gedit-2.14.3 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  ebuild.sh, line 1254:   Called gnome2_src_compile
  gnome2.eclass, line 64:   Called die

!!! compile failure
!!! If you need support, post the topmost build error, and the call stack if relevant.

This goes away after setting MAKEOPTS to -j1
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-07-20 01:02:34 UTC
I feel lucky now because I compiled it with -j6 forever
Comment 2 Pieter Van den Abeele (RETIRED) gentoo-dev 2006-07-20 07:59:56 UTC
It really builds fine most of the times and only occasionally fails. 

 * app-editors/gedit

   Total builds: 382
   Global build time: 24 hours, 12 minutes and 34 seconds.
   Average merge time: 3 minutes and 48 seconds.

   Info about currently installed ebuild:

   * app-editors/gedit-2.14.3
   Install date: Thu Jul 20 09:19:04 2006
   USE="spell python"
   CFLAGS="-O2 -mcpu=970 -mtune=970 -mabi=altivec -maltivec -fno-strict-aliasing -pipe"
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-07-20 08:33:57 UTC
maybe it is the arch :)
well I cannot refuse a good experiment so it seems fair to add this to the ebuild. There are some ebuilds in gnome which are already filtering MAKEOPTS for a long time, maybe you could test those too to see if the filtering is still needed.
Comment 4 Lars Weiler (RETIRED) gentoo-dev 2006-07-23 04:50:42 UTC
I can verify this problem during release-building.  Please make sure, that in the ebuild ppc will be set to MAKEOPTS="-j1".  Currently it's a release-blocker.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-11-16 11:21:55 UTC
*** Bug 155397 has been marked as a duplicate of this bug. ***
Comment 6 Saleem Abdulrasool (RETIRED) gentoo-dev 2006-11-29 17:58:18 UTC
Added a makeopts restrict for ppc only.