Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149843 - media-libs/netpbm fails parallel make
Summary: media-libs/netpbm fails parallel make
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 160947 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-02 05:26 UTC by Jiri Tyr
Modified: 2010-09-20 16:37 UTC (History)
5 users (show)

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


Attachments
2649-netpbm-10.34.log (2649-netpbm-10.34.log,20.16 KB, text/plain)
2006-10-02 08:38 UTC, Jiri Tyr
Details
Build log (netpbm-10.51.00:20100919-004917.log,255.53 KB, text/plain)
2010-09-20 11:39 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Tyr 2006-10-02 05:26:59 UTC
If I tried to compile the media-libs/netpbm-10.34 I have got this error:

i686-pc-linux-gnu-gcc -Wall -c -I /var/tmp/portage/netpbm-10.34/work/netpbm-10.34 -I /var/tmp/portage/netpbm-10.34/work/netpbm-10.34/lib/util/.. -DNDEBUG -march=athlon-mp -O3 -pipe -fomit-frame-pointer -fPIC \
    -o nstring.o nstring.c
make[2]: Leaving directory `/var/tmp/portage/netpbm-10.34/work/netpbm-10.34/lib/util'
make[2]: Leaving directory `/var/tmp/portage/netpbm-10.34/work/netpbm-10.34/lib/util'
make[1]: Leaving directory `/var/tmp/portage/netpbm-10.34/work/netpbm-10.34/lib'
make: *** [lib/all] Error 2

!!! ERROR: media-libs/netpbm-10.34 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  netpbm-10.34.ebuild, line 97:   Called die


If I have changed MAKEOPTS in make.conf from -j3 to -j1, then it works fine.

My emerge --info:
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.12.5 i686)
=================================================================
System uname: 2.6.12.5 i686 AMD Athlon(tm) MP 2400+
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5-r2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.6-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo ftp://mirror.gentoo.sk"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow alsa apache2 berkdb cli crypt dlloader dri eds emboss esd fortran gdbm gif gpm gstreamer imlib ipv6 isdnlog jpeg libg++ libwww mmx motif mp3 ncurses nls nptl ogg pam pcre perl png posix pppd python qt3 qt4 readline reflection sdl session spl sse ssl udev unicode vorbis xml xorg zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nv video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2006-10-02 07:23:47 UTC
post a full log ... what you posted doesnt contain an error and i can build these things with -j on my amd64 ...
Comment 2 Jiri Tyr 2006-10-02 08:38:32 UTC
Created attachment 98608 [details]
2649-netpbm-10.34.log

Full compilation log of the netpbm 10.34.
Comment 3 Jiri Tyr 2006-10-02 08:40:24 UTC
Now I have tried to reemerge media-libs/netpbm-10.34 with -j3 and it didn't failed. I don't know what was wrong before.
Comment 4 SpanKY gentoo-dev 2006-10-02 08:55:37 UTC
that's the fun thing with race conditions ;)

ln: creating symbolic link `importinc/wordaccess.h' to `/var/tmp/portage/netpbm-10.34/work/netpbm-10.34/lib/util/wordaccess.h': File exists
Comment 5 Kieran Simpson 2006-11-05 22:18:18 UTC
I just had the same problem, with -jN where N > 1.  Is there a patch for the race condition??
Comment 6 SpanKY gentoo-dev 2007-01-09 13:09:13 UTC
*** Bug 160947 has been marked as a duplicate of this bug. ***
Comment 7 Timothy Redaelli (RETIRED) gentoo-dev 2007-01-11 22:01:36 UTC
It fails also on Gentoo/FreeBSD
Comment 8 SpanKY gentoo-dev 2007-01-12 04:31:04 UTC
wtf does this have to do with the release process
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-21 19:25:53 UTC
I've forced -j1 in the ebuild (both stable and ~arch), it's better than having this package fail for three months now.
Comment 10 SpanKY gentoo-dev 2007-01-21 20:43:27 UTC
that doesnt fix anything
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-21 20:51:00 UTC
Then please fix, in the mean time at least users won't get it to die, and releng is not forced to run the build at -j1...
Comment 12 Chris Gianelloni (RETIRED) gentoo-dev 2007-02-14 03:39:37 UTC
I'm removing the snapshot bug from this one, since there is a workaround in place.
Comment 13 SpanKY gentoo-dev 2010-09-18 14:03:32 UTC
probably fixed in 10.51.00
Comment 14 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-09-20 11:39:16 UTC
Not fixed yet…
Comment 15 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-09-20 11:39:32 UTC
Created attachment 248131 [details]
Build log
Comment 16 SpanKY gentoo-dev 2010-09-20 16:37:32 UTC
use the right bug: 337984