emerge --nocolor --ask --update --deep --newuse --verbose world These are the packages that would be merged, in order: Calculating world dependencies... done! [ebuild R ] sys-devel/gcc-3.4.6-r1 USE="fortran gtk nls (-altivec) -bootstrap -boundschecking -build -doc -gcj (-hardened) - ip28 -ip32r10k% (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test% -vanilla" 0 kB [ebuild R ] sys-kernel/linux-headers-2.4.26-r1 USE="gcc64%*" 30,051 kB [ebuild R ] sys-apps/sysvinit-2.86-r5 USE="(-ibm) (-selinux) -static (-bootstrap%) (-build%)" 0 kB [ebuild U ] x11-libs/libXfont-1.2.2 [1.2.0-r2] USE="ipv6 -debug" 583 kB [ebuild R ] sys-apps/file-4.17-r1 USE="python (-build%)" 0 kB [ebuild R ] sys-apps/busybox-1.1.3 USE="-debug -make-symlinks -netboot -savedconfig -static (-floppyboot%)" 0 kB [ebuild R ] sys-apps/gawk-3.1.5-r2 USE="nls (-build%)" 0 kB [ebuild R ] dev-perl/XML-Parser-2.34 USE="(-minimal%)" 0 kB [ebuild R ] sys-apps/net-tools-1.60-r11 USE="nls -static (-build%)" 220 kB [ebuild R ] sys-kernel/sparc-sources-2.4.32-r6 USE="-build -livecd -symlink -ultra1 (-doc%)" 0 kB Total size of downloads: 30,854 kB Would you like to merge these packages? [Yes/No] y multilib.h is unchanged echo timestamp > s-mlib stage1/xgcc -Bstage1/ -B/usr/sparc-unknown-linux-gnu/bin/ -m32 -O2 -mcpu=ultrasparc -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -o genmodes \ genmodes.o errors.o ../libiberty/libiberty.a In file included from /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/protoize.c:25: ./tm.h:14:29: insn-constants.h: No such file or directory ./tm.h:15:25: insn-flags.h: No such file or directory stage1/xgcc -Bstage1/ -B/usr/sparc-unknown-linux-gnu/bin/ -m32 -O2 -mcpu=ultrasparc -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \ gengenrtl.o ../libiberty/libiberty.a stage1/xgcc -Bstage1/ -B/usr/sparc-unknown-linux-gnu/bin/ -c -m32 -O2 -mcpu=ultrasparc -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/. -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/../include /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/gencheck.c -o gencheck.o rm -rf libcpp.a ar rc libcpp.a cpplib.o cpplex.o cppmacro.o cppexp.o cppfiles.o cpptrad.o cpphash.o cpperror.o cppinit.o cppcharset.o hashtable.o line-map.o mkdeps.o cpppch.o sparc-unknown-linux-gnu-ranlib libcpp.a ./genmodes -h > tmp-modes.h /bin/sh /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/move-if-change tmp-modes.h insn-modes.h ./genmodes -m > tmp-min-modes.c /bin/sh /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/move-if-change tmp-min-modes.c min-insn-modes.c ./genmodes > tmp-modes.c /bin/sh /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/move-if-change tmp-modes.c insn-modes.c echo timestamp > s-modes ./gengenrtl -h > tmp-genrtl.h /bin/sh /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/move-if-change tmp-genrtl.h genrtl.h ./gengenrtl > tmp-genrtl.c /bin/sh /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/move-if-change tmp-genrtl.c genrtl.c echo timestamp > s-genrtl stage1/xgcc -Bstage1/ -B/usr/sparc-unknown-linux-gnu/bin/ -m32 -O2 -mcpu=ultrasparc -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -o gencheck \ gencheck.o ../libiberty/libiberty.a stage1/xgcc -Bstage1/ -B/usr/sparc-unknown-linux-gnu/bin/ -c -m32 -O2 -mcpu=ultrasparc -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/. -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/../include /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/gengtype.c -o gengtype.o make[2]: *** [unprotoize.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.6-r1/work/build/gcc' make[1]: *** [stage2_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.6-r1/work/build/gcc' make: *** [bootstrap-lean] Error 2 !!! ERROR: sys-devel/gcc-3.4.6-r1 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile ebuild.sh, line 1255: Called toolchain_src_compile toolchain.eclass, line 24: Called gcc_src_compile toolchain.eclass, line 1530: Called gcc_do_make toolchain.eclass, line 1404: Called die !!! emake failed with bootstrap-lean
gcc -v Reading specs from /usr/lib/gcc/sparc-unknown-linux-gnu/3.4.6/specs Configured with: /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/configure --prefix=/usr --bindir=/usr/sparc-unknown-linux-gnu/gcc-bin/3.4.6 --includedir=/usr/lib/gcc/sparc-unknown-linux-gnu/3.4.6/include --datadir=/usr/share/gcc-data/sparc-unknown-linux-gnu/3.4.6 --mandir=/usr/share/gcc-data/sparc-unknown-linux-gnu/3.4.6/man --infodir=/usr/share/gcc-data/sparc-unknown-linux-gnu/3.4.6/info --with-gxx-include-dir=/usr/lib/gcc/sparc-unknown-linux-gnu/3.4.6/include/g++-v3 --host=sparc-unknown-linux-gnu --build=sparc-unknown-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9) Portage 2.1.1 (default-linux/sparc/sparc64/2006.0/2.4, gcc-3.4.6, glibc-2.3.6-r4, 2.4.32-sparc-r6 sparc64) ================================================================= System uname: 2.4.32-sparc-r6 sparc64 sun4u Gentoo Base System version 1.12.4 Last Sync: Wed, 13 Sep 2006 11:59:01 +0000 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.4.26-r1 ACCEPT_KEYWORDS="sparc" AUTOCLEAN="yes" CBUILD="sparc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=ultrasparc -pipe" CHOST="sparc-unknown-linux-gnu" CONFIG_PROTECT="/etc /etc/X11/xorg.conf /etc/conf.d/gpm.conf /etc/conf.d/local.start /etc/conf.d/local.stop /etc/conf.d/ntp-client /etc/domainname /etc/hostname /etc/ntp.conf /etc/rc.conf /etc/ssh/sshd_config /etc/xinetd.conf /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -mcpu=ultrasparc -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="" MAKEOPTS="-j2" 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" SYNC="rsync://10.31.0.129/gentoo-portage" USE="sparc 64bit X apache2 arts audiofile automount avi berkdb bitmap-fonts bzip2 cdr chroot cli cracklib crypt ctype cups dba dlloader dri eds elibc_glibc encode esd ethereal exif expat fam fastbuild fbcon foomaticdb force-cgi-redirect fortran ftp gcc64 gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile idn imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux lcms libg++ libwww logrotate mad memlimit mikmod mng motif mozilla mp3 mpeg ncurses nls ogg opengl oss pam pcre pdflib perl png posix pppd python qt qt3 quicktime readline reflection samba sdl session simplexml slang soap sockets spell spl ssl tcltk tcpd threads tiff tokenizer truetype truetype-fonts type1-fonts userland_GNU video_cards_ati video_cards_dummy video_cards_fbdev video_cards_glint video_cards_mga video_cards_savage video_cards_sisusb video_cards_sunbw2 video_cards_suncg14 video_cards_suncg3 video_cards_suncg6 video_cards_sunffb video_cards_sunleo video_cards_tdfx video_cards_v4l video_cards_voodoo vorbis xinetd xml xml2 xmms xorg xsl xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
if you build with MAKEOPTS=-j1 does that make a difference ?
This also happens to me on alpha: if test no = yes \ || test -n ""; then \ /bin/sh /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/genmultilib \ "" \ "" \ "" \ "" \ "" \ "" \ "" \ "no" \ > tmp-mlib.h; \ else \ /bin/sh /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/genmultilib '' '' '' '' '' '' '' no \ > tmp-mlib.h; \ fi In Datei, eingefgt von /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/protoize.c:25: ./tm.h:12:29: insn-constants.h: Datei oder Verzeichnis nicht gefunden ./tm.h:13:25: insn-flags.h: Datei oder Verzeichnis nicht gefunden /bin/sh /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/move-if-change tmp-mlib.h multilib.h multilib.h is unchanged echo timestamp > s-mlib stage1/xgcc -Bstage1/ -B/usr/alpha-unknown-linux-gnu/bin/ -c -mieee -O2 -mcpu=ev4 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/. -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/../include /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/genmodes.c -o genmodes.o stage1/xgcc -Bstage1/ -B/usr/alpha-unknown-linux-gnu/bin/ -c -mieee -O2 -mcpu=ev4 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/. -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/../include /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/errors.c -o errors.o stage1/xgcc -Bstage1/ -B/usr/alpha-unknown-linux-gnu/bin/ -c -mieee -O2 -mcpu=ev4 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/. -I/var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/../include /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/gengenrtl.c -o gengenrtl.o make[2]: *** [unprotoize.o] Fehler 1 make[2]: *** Warte auf noch nicht beendete Prozesse... make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.6-r1/work/build/gcc' make[1]: *** [stage2_build] Fehler 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.6-r1/work/build/gcc' make: *** [bootstrap-lean] Fehler 2 !!! ERROR: sys-devel/gcc-3.4.6-r1 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile ebuild.sh, line 1248: Called toolchain_src_compile toolchain.eclass, line 24: Called gcc_src_compile toolchain.eclass, line 1529: Called gcc_do_make toolchain.eclass, line 1403: Called die !!! emake failed with bootstrap-lean As suggested I'll try with -j1 now.
(In reply to comment #2) > if you build with MAKEOPTS=-j1 does that make a difference ? FYI, I had to use -j1 to upgrade gcc on my sparc: terry ~ # emerge --info Portage 2.1.1 (default-linux/sparc/sparc64/2006.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.12-gentoo-r6 sparc64) ================================================================= System uname: 2.6.12-gentoo-r6 sparc64 sun4u Gentoo Base System version 1.12.4 Last Sync: Thu, 14 Sep 2006 04:50:01 +0000 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r3 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 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.17 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r6 ACCEPT_KEYWORDS="sparc ~sparc" AUTOCLEAN="yes" CBUILD="sparc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=v9 -pipe" CHOST="sparc-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -mcpu=ultrasparc -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://polly.a.la.maison/gentoo ftp://ftp.easynet.nl/mirror/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo" LINGUAS="" MAKEOPTS="-j2" 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://polly/portage" USE="apache2 avi berkdb cli crypt cups curl dba dlloader dri eds elibc_glibc encode foomaticdb gcc64 gd gdbm gstreamer imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog kernel_linux libwww mikmod ncurses nls nptl nptlonly ogg pam pcre pdflib perl pppd python qt3 readline reflection ruby session sparc spell spl ssl symlink udev unicode userland_GNU video_cards_ati video_cards_dummy video_cards_fbdev video_cards_glint video_cards_mga video_cards_savage video_cards_sisusb video_cards_sunbw2 video_cards_suncg14 video_cards_suncg3 video_cards_suncg6 video_cards_sunffb video_cards_sunleo video_cards_tdfx video_cards_v4l video_cards_voodoo vorbis xml xorg zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS terry ~ # cat /proc/cpuinfo cpu : TI UltraSparc II (BlackBird) fpu : UltraSparc II integrated FPU promlib : Version 3 Revision 25 prom : 3.25.0 type : sun4u ncpus probed : 2 ncpus active : 2 Cpu0Bogo : 587.77 Cpu0ClkTck : 0000000011a47d11 Cpu1Bogo : 587.77 Cpu1ClkTck : 0000000011a47d11 MMU Type : Spitfire State: CPU0: online CPU1: online
Successfully built with -j1 on alpha.
Changing MAKEOPTS to MAKEOPTS=-j1 resolves the issue
This is not RESOLVED, it used to work and anyway the ebuild should handle it.
I saw this as well on Alpha trying to compile gcc-3.4.6-r2 with -j3 make flags
Using -j1 does resolve this on alpha
*** Bug 148541 has been marked as a duplicate of this bug. ***
Anything new here? This breaks stage builds, or any gcc build with MAKEOPTS > -j1 for that matter.
*** Bug 152580 has been marked as a duplicate of this bug. ***
Using -j1 worked for me on sparc64.
+1 on sparc64
*** Bug 153128 has been marked as a duplicate of this bug. ***
*** Bug 156184 has been marked as a duplicate of this bug. ***
i finally hit this myself so i decided it's about time i fix it ;) backported changes from the 4.1 branch to fix 3.4.6-r2