When I use MAKEOPTS="-j9" (yes, I have a dual quad-core box) net-libs/daq-0.3 fails to build. Using MAKEOPTS="-j3" allows the package to build. Reproducible: Always Steps to Reproduce: 1. set MAKEOPTS="-j9" 2. emerge '=net-libs/daq-0.3' 3. build fails Actual Results: Build fails with message: mv: cannot stat 'y.tab.c': No such file or directory make[2]: *** [tokdefs.h] Error 1 Expected Results: Build completes. Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.2-r3, 2.6.33-gentoo-r2 x86_64) ================================================================= System uname: Linux-2.6.33-gentoo-r2-x86_64-Intel-R-_Xeon-R-_CPU_E5405_@_2.00GHz-with-gentoo-1.12.13 Timestamp of tree: Wed, 17 Nov 2010 09:30:23 +0000 app-shells/bash: 4.0_p37 dev-lang/python: 2.5.4-r3, 2.6.5-r2, 3.1.2-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.65 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.1.2, 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81 virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=nocona" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=nocona" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/TRUE-Assessments /usr/local/portage" SYNC="rsync://rsync.eval/desa-gentoo-portage" USE="acl amd64 apache2 bash-completion berkdb bzip2 caps cli cracklib crypt cups cxx dri fortran gdbm gpm iconv iproute2 ipv6 kerberos ldap logrotate mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline session sse sse2 ssl syfs sysfs tcpd unicode xattr xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user dbd deflate dir filter log_config logio mime mime_magic rewrite so unique_id mod_vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #0) > When I use MAKEOPTS="-j9" (yes, I have a dual quad-core box) net-libs/daq-0.3 > fails to build. Using MAKEOPTS="-j3" allows the package to build. I've determined that any value less than 8 (MAKEOPTS="-j8") works.
(In reply to comment #1) > (In reply to comment #0) > > When I use MAKEOPTS="-j9" (yes, I have a dual quad-core box) net-libs/daq-0.3 > > fails to build. Using MAKEOPTS="-j3" allows the package to build. > > I've determined that any value less than 8 (MAKEOPTS="-j8") works. > Actually it's worse than that. Any value larger than 1 may or may not trigger this issue. The chance of hitting it just goes up with larger values ...
And fixed by forcing makeopts to -j1. Didn't bump ebuild as it doesn't affect the results if it installed before ...
(In reply to comment #3) > And fixed by forcing makeopts to -j1. Didn't bump ebuild as it doesn't affect > the results if it installed before ... > The problem still exists in net-libs/daq-0.4 where makeopts was not forced to -j1. Should we reopen this bug or file a new one?
+ 07 Jan 2011; Patrick Lauer <patrick@gentoo.org> daq-0.4.ebuild: + Fix parallel make issue for 0.4 too #345915 + Oops, that was a synchronization issue. Should be fixed now, thanks for the report