<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>198774</bug_id>
          
          <creation_ts>2007-11-11 07:53 0000</creation_ts>
          <short_desc>net-misc/radvd-1.1 fails to build with parallel make</short_desc>
          <delta_ts>2008-11-18 23:59:16 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>const@mimas.ru</reporter>
          <assigned_to>ipv6@gentoo.org</assigned_to>
          <cc>uberlord@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>const@mimas.ru</who>
            <bug_when>2007-11-11 07:53:36 0000</bug_when>
            <thetext>With MAKEOPTS=&quot;-j3&quot; I have:

gcc -DPATH_RADVD_CONF=\&quot;/etc/radvd.conf\&quot; -DPATH_RADVD_LOG=\&quot;/var/log/radvd.log\&quot; -DLOG_FACILITY=LOG_DAEMON -DPATH_RADVD_PID=\&quot;/var/run/radvd/radvd.pid\&quot; -DVERSION=\&quot;1.0\&quot; -DINET6=1 -I. -I.    -pipe -O2 -march=nocona -Wall -Wpointer-arith  -Wcast-qual -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -c scanner.c
scanner.l:20:18: error: gram.h: No such file or directory
scanner.l: In function &apos;yylex&apos;:
scanner.l:44: error: &apos;T_INTERFACE&apos; undeclared (first use in this function)
...and many error below...

I suppose gram.h was unfortunately generated after gcc tries to search it.
With forced MAKEOPTS=&quot;-j1&quot; all is happy.

Reproducible: Sometimes

Steps to Reproduce:




Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r9 x86_64 Intel(R) Pentium(R) D CPU 2.80GHz
Timestamp of tree: Sat, 10 Nov 2007 01:47:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS=&quot;amd64&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-pipe -O2 -march=nocona&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/share/X11/xkb /var/bind&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-pipe -O2 -march=nocona&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;en_US.UTF-8&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/portage/local/const-portage /usr/portage/local/misc /usr/portage/local/x4x-portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X a52 alsa amd64 bitmap-fonts bzip2 cairo cli cups curl djvu dri dvd emacs encode fftw flac ftp gd gif glut gmp iconv idn imagemagick ipv6 jpeg jpeg2k leim mad midi mikmod mmap mmx mp3 mudflap ncurses nptl nptlonly nsplugin ogg opengl openmp pam pdf png ppds python readline sdl sse sse2 ssl startup-notification svg tetex threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis x264 xcomposite xml xorg xulrunner xv xvid zlib&quot; ALSA_PCM_PLUGINS=&quot;dsnoop rate route&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;evdev&quot; KERNEL=&quot;linux&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nvidia vesa&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2008-06-25 07:28:29 0000</bug_when>
            <thetext>confirmed here, using -j1 it compiles fine</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2008-06-25 07:29:38 0000</bug_when>
            <thetext>ehrrr... same issue still with 1.1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2008-11-18 23:59:16 0000</bug_when>
            <thetext>Fixed in 1.1 CVS.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>