emerge -U system pulls in gcc 3.4.1, which fails to compile Reproducible: Always Steps to Reproduce: 1. emerge -U system 2. 3. Actual Results: Adding multilib support to Makefile in /var/tmp/portage/gcc-3.4.1/work/gcc- 3.4.1/libstdc++-v3 multidirs=32 with_multisubdir= Running configure in multilib subdirs 32 pwd: /var/tmp/portage/gcc-3.4.1/work/build/x86_64-pc-linux-gnu/libstdc++-v3 Running configure in multilib subdir 32 pwd: /var/tmp/portage/gcc-3.4.1/work/build/x86_64-pc-linux-gnu mkdir 32 configure: creating cache ./config.cache checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/gcc- 3.4.1/work/build/gcc/xgcc -B/var/tmp/port$ checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. make[1]: *** [configure-target-libstdc++-v3] Error 1 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.1/work/build' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.1 failed. !!! Function src_compile, Line 656, Exitcode 2 !!! (no error message) Expected Results: gcc 3.4.1 emerged successfully Portage 2.0.50-r8 (gcc34-amd64-2004.1, gcc-3.4.0, glibc-2.3.4.20040605-r0, 2.6.7-ck3) ================================================================= System uname: 2.6.7-ck3 x86_64 5 Gentoo Base System version 1.5.1 distcc 2.14 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -march=k8 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb - frename-registers -funit-at-a-time -ftracer -pipe" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2 /share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=k8 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb - frename-registers -funit-at-a-time -ftracer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache digest sandbox" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X alsa amd64 apm arts avi berkdb cdr chroot cups curl dedicated dga divx4linux dnd dvd dvdr encode faac faad ffmpeg flac foomaticdb freetype gb gcj gd gdbm gif gimp gimpprint ginac glut gphoto2 gpm gs gtk gtk2 gtkhtml imagemagick imlib imlib2 java jikes joystick jpeg kde lcd lesstif libdsk libg++ libwww lzw lzw-tiff mad maildir matrox mbox mcal md5sum mikmod mmap mng motif mozilla moznocompose moznoirc moznomail mozp3p mozsvg mozxmlterm mpeg mplayer multilib ncurses net nptl offensive ofx oggvorbis ooo-kde openal opengl oss pam parse-clocks pdflib perl physfs pic png ppds python qt quicktime readline samba scanner sdl slang sox spell ssl svg tcpd theora threads tiff transcode truetype type1 usb v4l v4l2 videos wifi wmf wxwindows xface xft xml xml2 xmms xosd xprint xrandr xv xvid yv12 zlib"
can you try again with FEATURES="-sandbox"? this is a known issue if that fixes the bug, as there isnt a 32bit sandbox present.
That got me most of the way. The build still fails building gcj, so I removed that from my USE flags and 3.4.1 finally built. eported only once for each function it appears in.) ./include/java-signal-aux.h: At global scope: ./include/java-signal-aux.h:125: warning: 'void restore()' declared `static' but never defined make[5]: *** [prims.lo] Error 1 make[5]: Leaving directory `/var/tmp/portage/gcc-3.4.1/work/build/x86_64-pc-linux-gnu/32/libjava' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/var/tmp/portage/gcc-3.4.1/work/build/x86_64-pc-linux-gnu/32/libjava' make[3]: *** [multi-do] Error 1 make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.1/work/build/x86_64-pc-linux-gnu/libjava' make[2]: *** [all-multi] Error 2 make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.1/work/build/x86_64-pc-linux-gnu/libjava' make[1]: *** [all-target-libjava] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.1/work/build' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.1 failed. !!! Function src_compile, Line 656, Exitcode 2 !!! (no error message)
gcj is known to fail with mulilib enabled, unfortunately. i dont think i can fix this until after some multilib edits to glibc :/