Building gcc-4.5.3-r1 on ~x86-linux gives the subject line plus: In file included from /usr/include/features.h:378:0, from /usr/include/stdio.h:28, from /storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc/../gcc/tsystem.h:87, from /storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc/../gcc/libgcc2.c:29: /usr/include/gnu/stubs.h:9:27: fatal error: gnu/stubs-64.h: No such file or directory compilation terminated. make[5]: *** [_muldi3.o] Error 1 make[5]: *** Waiting for unfinished jobs.... /storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/xgcc -B/storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./gcc/ -B/storage/strogdon/gentoo/usr/i686-pc-linux-gnu/bin/ -B/storage/strogdon/gentoo/usr/i686-pc-linux-gnu/lib/ -isystem /storage/strogdon/gentoo/usr/i686-pc-linux-gnu/include -isystem /storage/strogdon/gentoo/usr/i686-pc-linux-gnu/sys-include -g -march=core2 -O2 -pipe -O2 -g -march=core2 -O2 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../.././gcc -I/storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc -I/storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc/. -I/storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc/../gcc -I/storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc/../include -I/storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _clear_cache.o -MT _clear_cache.o -MD -MP -MF _clear_cache.dep -DL_clear_cache -c /storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc/../gcc/libgcc2.c \ -fvisibility=hidden -DHIDE_EXPORTS In file included from /usr/include/features.h:378:0, from /usr/include/stdio.h:28, from /storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc/../gcc/tsystem.h:87, from /storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc/../gcc/libgcc2.c:29: /usr/include/gnu/stubs.h:9:27: fatal error: gnu/stubs-64.h: No such file or directory compilation terminated. make[5]: *** [_negdi2.o] Error 1 make[5]: Leaving directory `/storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/i686-pc-linux-gnu/64/libgcc' make[4]: *** [multi-do] Error 1 make[4]: Leaving directory `/storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/i686-pc-linux-gnu/libgcc' make[3]: *** [all-multi] Error 2 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/i686-pc-linux-gnu/libgcc' make[2]: *** [all-stage1-target-libgcc] Error 2 make[2]: Leaving directory `/storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/storage/strogdon/gentoo/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build' make: *** [bootstrap-lean] Error 2 emake failed ---------- emerge -pqv =sys-devel/gcc-4.5.3-r1: [ebuild R ] sys-devel/gcc-4.5.3-r1 [4.5.3-r1] USE="cxx fortran mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk (-hardened) (-libffi) (-libssp) -lto (-multilib) -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test (-vanilla)" ----------- I've tried several times to build gcc-4.5.3-r1 with the same result. This gcc did build previously on 12/12/2011 and it still builds on ~amd64-linux. The host OS is debian with an "older" glibc. The host file /usr/include/gnu/stubs.h seems to be standard. It would appear that something is defining __x86_64__ , for then __WORDSIZE is set to "64" resulting in an attempt to include /usr/include/gnu/stubs-64.h which doesn't exist. ----------- emerge --info =sys-devel/gcc-4.5.3-r1: Portage 2.2.01.20239-prefix (prefix/linux/x86, gcc-4.5.3, unavailable, 2.6.32-5-686 i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.32-5-686-i686-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-debian-6.0.4 Timestamp of tree: Thu, 01 Mar 2012 16:11:54 +0000 ccache version 3.1.4 [enabled] app-shells/bash: 4.2_p20::gentoo_prefix dev-java/java-config: 2.1.11-r3::gentoo_prefix dev-lang/python: 2.7.2-r3::sage-on-gentoo dev-util/ccache: 3.1.4::gentoo_prefix dev-util/cmake: 2.8.7-r3::gentoo_prefix dev-util/pkgconfig: 0.26::gentoo_prefix sys-apps/sandbox: 2.5::gentoo_prefix sys-devel/autoconf: 2.13::gentoo_prefix, 2.68::gentoo_prefix sys-devel/automake: 1.11.1::gentoo_prefix sys-devel/binutils: 2.22-r1::gentoo_prefix sys-devel/gcc: 4.4.6-r1::gentoo_prefix, 4.5.3-r1::gentoo_prefix sys-devel/gcc-config: 1.5-r2::gentoo_prefix sys-devel/libtool: 2.4-r4::gentoo_prefix sys-devel/make: 3.82::gentoo_prefix sys-kernel/linux-headers: 3.1::gentoo_prefix Repositories: gentoo_prefix local-overlay sage-on-gentoo sage-on-prefix my-gentoo-sage sage-flask Installed sets: ACCEPT_KEYWORDS="~x86-linux" ACCEPT_LICENSE="* -@EULA dlj-1.1 Oracle-BCLA-JavaSE" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/storage/strogdon/gentoo/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n" FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks ebuild-locks fixlafiles force-prefix news parallel-fetch preserve-libs protect-owned sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/storage/strogdon/gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/storage/strogdon/gentoo/" PORTAGE_RSYNC_EXTRA_OPTS="--delete-after --timeout=500" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/storage/strogdon/gentoo/var/tmp" PORTDIR="/storage/strogdon/gentoo/usr/portage" PORTDIR_OVERLAY="/storage/strogdon/gentoo/usr/local/portage /storage/strogdon/gentoo/usr/local/portage/sage-on-gentoo /storage/strogdon/gentoo/usr/local/portage/sage-on-prefix /storage/strogdon/gentoo/usr/local/portage/my-gentoo-sage /storage/strogdon/gentoo/usr/local/portage/sage-flask" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pcre pppd prefix readline session ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS ================================================================= Package Settings ================================================================= sys-devel/gcc-4.5.3-r1 was built with the following: USE="cxx fortran mudflap nls nptl openmp (prefix) (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk (-hardened) (-libffi) (-libssp) -lto (-multilib) -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test (-vanilla)"
Created attachment 304069 [details] build log
*** Bug 406705 has been marked as a duplicate of this bug. ***
I've reverted libtool.eclass back to rev 60240 http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/eclass/toolchain.eclass?rev=60240 and the subject gcc builds. Revision 60251 didn't work. Perhaps someone having this issue could confirm this.
libtool or toolchain?
(In reply to comment #4) > libtool or toolchain? Sorry. I've test so many of these things. Yes, it should toolchain. The link is correct.
ok, I just synced it to the latest changes. Need to look into detail what has changed there that made it break.
think it'll be this: 1231 # if the target can do biarch (-m32/-m64), enable it. overhead should 1232 # be small, and should simplify building of 64bit kernels in a 32bit 1233 # userland by not needing sys-devel/kgcc64. #349405 1234 case $(tc-arch) in 1235 ppc|ppc64) tc_version_is_at_least 3.4 && confgcc+=" --enable-targets=all" ;; 1236 sparc) tc_version_is_at_least 4.4 && confgcc+=" --enable-targets=all" ;; 1237 amd64|x86) tc_version_is_at_least 4.3 && confgcc+=" --enable-targets=all" ;; 1238 esac we don't want this in Prefix
Ok, I disabled that piece of code now in the eclass. I hope that actually fixes this problem.
Good deal. The subject gcc now builds with the latest toolchain.eclass.
cool, closing then, thanks!