when emerge gcc-4.2.0 in the bootstrap period, got this error: ld: fatal: file elf_i386: open failed: No such file or directory collect2: ld returned 1 exit status make[4]: *** [libgcc_s.so] Error 1 make[4]: Leaving directory `/export/home/hej/gentoo/var/tmp/portage/sys-devel/gcc-4.2.0/work/build/gcc' make[3]: *** [stmp-multilib] Error 2 make[3]: Leaving directory `/export/home/hej/gentoo/var/tmp/portage/sys-devel/gcc-4.2.0/work/build/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/export/home/hej/gentoo/var/tmp/portage/sys-devel/gcc-4.2.0/work/build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/export/home/hej/gentoo/var/tmp/portage/sys-devel/gcc-4.2.0/work/build' $ emerge --info Portage 2.2.00.7595-prefix (default-prefix/sunos/solaris/5.10/x86, gcc-4.0.3, unavailable, 5.11 i86pc) ================================================================= System uname: 5.11 i86pc i386 Unknown Host Operating System Timestamp of tree: Unknown sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.16 ACCEPT_KEYWORDS="x86-solaris ~x86-solaris" AUTOCLEAN="yes" CBUILD="i386-pc-solaris2.10" CHOST="i386-pc-solaris2.10" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" DISTDIR="/export/home/hej/gentoo/usr/portage/distfiles" EPREFIX="/export/home/hej/gentoo" FEATURES="collision-protect distlocks metadata-transfer sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-L/export/home/hej/gentoo/usr/lib -R/export/home/hej/gentoo/usr/lib -L/export/home/hej/gentoo/lib -R/export/home/hej/gentoo/lib" PKGDIR="/export/home/hej/gentoo/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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/export/home/hej/gentoo/var/tmp" PORTDIR="/export/home/hej/gentoo/usr/portage" SYNC="svn+http://overlays.gentoo.org/svn/proj/alt/trunk/prefix-overlay" USE="cracklib midi ncurses prefix readline ssl x86-solaris zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="SunOS" INPUT_DEVICES="keyboard mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" Unset: CFLAGS, CTARGET, CXXFLAGS, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Reproducible: Always Steps to Reproduce: 1. emerge -e system 2. 3.
Is this issue related to binutils? I want to find what cause this problems... Can somebody give a hint?
gcc-4.1.2 dos not has this problem, only gcc-4.2 will fail.
Try gcc-4.2.2