Hello I've tried to install djbdns-1.05-r7 with MAKEOPTS="-j4". And the compilation crashes everytime. Here is the output <-------------> ./compile log.c ./compile cache.c ./choose c trydrent direntry.h1 direntry.h2 > direntry.h In file included from cache.c:7: dns.h:63: parse error before "iopause_fd" dns.h:64: parse error before '*' token make: *** [cache.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: net-dns/djbdns-1.05-r7 failed. !!! Function src_compile, Line 39, Exitcode 2 !!! emake failed <-------------> I have disabled the MAKEOPTS in /etc/make.conf and all is ok right now, so the ebuild process should avoid the use of jobserv for djbdns. Please not a I have a true SMP machine. 2 P4 XEON 2.4Ghz + 1Mb L2 cache. Reproducible: Always Steps to Reproduce: 1. Set MAKEOPTS=-j4 2. Use a TRUE MultiProcessors Plateform 3. Emerge the PAckage Actual Results: The compliation fails Expected Results: Unset MAKEOPTS Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.19-gentoo-r10 i686 AMD Athlon(tm) XP 1500+ GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /var/bind /usr/X 11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/co nfig" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg gnome libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts svga guile X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gtk qt kde motif opengl cdr -java" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -mcpu=i686 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
try -j1 and/or remove ccache
Same problem here, using -J1 allows installation to complete. If possible, the ebuild should force -J1
The ebuild needs to force -j1 for MAKEOPTS, removing ccache doesn't help at all. Of course retrying multiple times will eventually get it to build as well, but its definately not thread safe, even on a singel CPU system. I wasted tons of time trying to figure out how to get this to build!
Add djbdns ebuilds have been updated with MAKEOPTS="-j1"