Compiling sys-devel/gcc-4.3.3-r2 fails in bootstrap-lean make[4]: Entering directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/libiberty/testsuite' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/libiberty/testsuite' /bin/sh: /bin/true: Success make[3]: *** [all] Error 1 make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/libiberty' make[2]: *** [all-stage1-libiberty] Error 2 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build' make: *** [bootstrap-lean] Error 2 emerge --info Portage 2.1.6.13 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.8_p20080602-r1, 2.6.28-hardened-r9 x86_64) ================================================================= System uname: Linux-2.6.28-hardened-r9-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-glibc2.3.2 Timestamp of tree: Wed, 15 Jul 2009 17:45:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.4-r2 dev-python/pycrypto: 2.0.1-r8 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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 /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1" MAKEOPTS="-j1" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 apache2 authdaemond authlib berkdb bzip2 caps cracklib crypt geoip gmp hardened imagemagick jpeg justify midi multilib mysql mysqli nptl nptlonly pam pic png postfix readline sasl spamassassin ssl sysfs tcpd urandom 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="*" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 intel mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always
Created attachment 198088 [details] build.log of the failed compilation
=sys-devel/gcc-4.3.3-r2 compiles with =sys-devel/gcc-3.4.6-r2 on amd64/hardened/multilib just fine here. Please post the full output of 'emerge -pv =sys-devel/gcc-4.3.3-r2'.
# emerge -pv =sys-devel/gcc-4.3.3-r2 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild NS ] sys-devel/gcc-4.3.3-r2 [3.4.6-r2] USE="hardened mudflap multilib nptl (-altivec) -bootstrap -build -doc (-fixed-point) -fortran -gcj -gtk -ip28 -ip32r10k -libffi -multislot (-n32) (-n64) -nls -nocxx -nopie -objc -objc++ -objc-gc -openmp -test -vanilla" 0 kB Total: 1 package (1 in new slot), Size of downloads: 0 kB # gcc -v Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/specs Configured with: /var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.6 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.6 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.6/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.6/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/include/g++-v3 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-nls --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --enable-multilib --disable-libgcj --enable-languages=c,c++,treelang --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.4.6 (Gentoo Hardened 3.4.6-r2 p1.5, ssp-3.4.6-1.0, pie-8.7.10)
Created attachment 198175 [details] Full output of emerge -pv =gcc-4.3.3-r2
Created attachment 198176 [details] Full output of emerge -pv =gcc-3.4.6-r2
Interestingly I found that I cannot even rebuild gcc-3.4.6-r2. The failure seems to origin from this line: checking type of array argument to getgroups... /bin/sh: /bin/true: Success The build of gcc-4.3.3-r2 has a similar line: checking whether string.h and strings.h may both be included... /bin/sh: /bin/true: Success it seems s.th. is wrong with my build-chain.
Found it: my /bin/true was a zero-byte file Restoring a working /bin/true solved the issue. Closed bug as INVALID