./xgcc -B./ -B/usr/x86_64-pc-linux-gnu/bin/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -L/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc/../ld -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -DHAVE_SYSLOG -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -D_LIBC_PROVIDES_SSP_ -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/32/libgcc.map -o 32/libgcc_s.so.1.tmp -m32 libgcc/32/_muldi3.o libgcc/32/_negdi2.o libgcc/32/_lshrdi3.o libgcc/32/_ashldi3.o libgcc/32/_ashrdi3.o libgcc/32/_cmpdi2.o libgcc/32/_ucmpdi2.o libgcc/32/_floatdidf.o libgcc/32/_floatdisf.o libgcc/32/_fixunsdfsi.o libgcc/32/_fixunssfsi.o libgcc/32/_fixunsdfdi.o libgcc/32/_fixdfdi.o libgcc/32/_fixunssfdi.o libgcc/32/_fixsfdi.o libgcc/32/_fixxfdi.o libgcc/32/_fixunsxfdi.o libgcc/32/_floatdixf.o libgcc/32/_fixunsxfsi.o libgcc/32/_fixtfdi.o libgcc/32/_fixunstfdi.o libgcc/32/_floatditf.o libgcc/32/_clear_cache.o libgcc/32/_enable_execute_stack.o libgcc/32/_trampoline.o libgcc/32/__main.o libgcc/32/_absvsi2.o libgcc/32/_absvdi2.o libgcc/32/_addvsi3.o libgcc/32/_addvdi3.o libgcc/32/_subvsi3.o libgcc/32/_subvdi3.o libgcc/32/_mulvsi3.o libgcc/32/_mulvdi3.o libgcc/32/_negvsi2.o libgcc/32/_negvdi2.o libgcc/32/_ctors.o libgcc/32/_ffssi2.o libgcc/32/_ffsdi2.o libgcc/32/_clz.o libgcc/32/_clzsi2.o libgcc/32/_clzdi2.o libgcc/32/_ctzsi2.o libgcc/32/_ctzdi2.o libgcc/32/_popcount_tab.o libgcc/32/_popcountsi2.o libgcc/32/_popcountdi2.o libgcc/32/_paritysi2.o libgcc/32/_paritydi2.o libgcc/32/_stack_smash_handler.o libgcc/32/_divdi3.o libgcc/32/_moddi3.o libgcc/32/_udivdi3.o libgcc/32/_umoddi3.o libgcc/32/_udiv_w_sdiv.o libgcc/32/_udivmoddi4.o libgcc/32/unwind-dw2.o libgcc/32/unwind-dw2-fde-glibc.o libgcc/32/unwind-sjlj.o libgcc/32/gthr-gnat.o libgcc/32/unwind-c.o -lc && rm -f libgcc_s_32.so && if [ -f 32/libgcc_s.so.1 ]; then mv -f 32/libgcc_s.so.1 32/libgcc_s.so.1.backup; else true; fi && mv 32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s 32/libgcc_s.so.1 libgcc_s_32.so /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libc.so when searching for -lc /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libc.a when searching for -lc /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc /usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lc collect2: ld returned 1 exit status make[3]: *** [32/libgcc_s_32.so] Error 1 make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc' make[2]: *** [stmp-multilib] Error 2 make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.3.20050110-r1 failed. !!! Function gcc_do_make, Line 1165, Exitcode 2 !!! make failed with profiledbootstrap !!! If you need support, post the topmost build error, NOT this status message.
multilib bug
Please paste the output of emerge info. What version of emul-linux-x86-glibc do you have installed?
I have the same problem: gentoo64 ~ # emerge info Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20050125-r1, 2.6.11.3 x86_64) ================================================================= System uname: 2.6.11.3 x86_64 AMD Athlon(tm) 64 Processor 3400+ Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 20 2005, 20:12:05)] ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r6 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O3 -pipe -fomit-frame-pointer -march=k8 -fno-inline-functions" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -pipe -fomit-frame-pointer -march=k8 -fno-inline-functions" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aac acpi alsa apache2 arts audiofile avantgo berkdb bitmap-fonts bluetooth bonobo boundschecking bzlib c++ ccache cdparanoia cdr chroot cjk clamav clanJavaScript clanVoice codecs crypt cscope cups curl dcc dga directfb doc dts dvd dvdr dvdread emacs emoticon erandom esd exif faac faad fam fftw firefox flac font-server foreign-package fortran freetts freetype ftp gcj gdbm gif gimp gnokii gnomedb gnuplot gphoto2 gpm gprof gs gstreamer gtk gtkhtml hal iconv icq idea imagemagick imlib ipv6 irmc j2ee java javacomm javadoc jce jikes jit jp2 jpeg junit kde koffice-plugin ldap libwww lua lzo lzw lzw-tiff mad maildir matroska md5sum mikmod monkey motif mozcalendar mozilla mp3 mpeg4 msn multilib mysql ncurses nls oggvorbis ooo-kde opengl oscar oss pam pcre pda pdf perl png python pyzor qdbm qt radeon razor readline recode ruby samba sdl slang sox spamassassin speex sqlite ssl tcltk tcpd tetex theora thunderbird tiff timidity transcode truetype truetype-fonts type1-fonts usb userlocales vim vim-with-x vnc wxwin wxwindows xinerama xml xml2 xmms xpm xrandr xv xvid xvmc zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Portage 2.0.51.19 (gcc34-amd64-2004.1, gcc-3.4.3, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r2 x86_64) ================================================================= System uname: 2.6.11-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 17 2005, 22:24:38)] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r2, 2.15.92.0.2-r6 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d/ /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks" GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.ccccom.com ftp://gentoo.ccccom.com" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa amd64 apm avi bash-completion berkdb bitmap-fonts cdr crypt cups directfb divx4linux dvd dvdr eds encode flac font-server gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml imlib ipv6 java javascript jpeg libg++ libwww mad motif mozdevelop mozilla moznoirc moznomail mp3 mpeg multilib mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb videos x xinerama xml xml2 xmms xprint xv xvid zlib video_cards_radeon" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY emul-linux-x86-glibc is 2.3.4.20041102
Are your lib32 symlinks sane? please post the output of: file /lib32 /usr/lib32 Charles: you might want to upgrade your profile. 2004.1 is old and unsupported.
gentoo64 ~ # file /lib32 /usr/lib32 /lib32: symbolic link to `emul/linux/x86/lib' /usr/lib32: symbolic link to `../../emul/linux/x86/usr/X11R6/lib32'
Gian: rm -f /usr/lib32 ln -s ../../emul/linux/x86/usr/lib /usr/lib32 emerge gcc Let us know if that solves it.
Compilation goes further now: checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 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.3.20050110-r1/work/build' make: *** [profiledbootstrap] Error 2 I tried gentoo64 ~ # USE=-sandbox emerge gcc with the same effect.
>I tried >gentoo64 ~ # USE=-sandbox emerge gcc Then try: FEATURES=-sandbox emerge gcc if there is still a problem, please attach your config.log
The following solved it for me: rm -f /usr/lib32 ln -s ../../emul/linux/x86/usr/lib /usr/lib32 FEATURES=-sandbox emerge gcc
*** Bug 86665 has been marked as a duplicate of this bug. ***
*** Bug 86975 has been marked as a duplicate of this bug. ***
Problem only appears in 2004.3 stages, everyone involved please upgrade and use the new release =) I've also had confirmation that the fix described above in Comment #10 work - so it's a RESOLVED FIXED all round! :-D
*** Bug 87195 has been marked as a duplicate of this bug. ***
*** Bug 88769 has been marked as a duplicate of this bug. ***
*** Bug 91486 has been marked as a duplicate of this bug. ***
*** Bug 93769 has been marked as a duplicate of this bug. ***
My bug, 93769 was dup'd to this bug. However, I tried all the solutions in this bug _before_ I sent my bug. As stated in my bug, this doesn't work. Attaching again my error: multidirs=32 with_multisubdir= Running configure in multilib subdirs 32 pwd: /var/tmp/portage/gcc-3.4.3-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3 Running configure in multilib subdir 32 pwd: /var/tmp/portage/gcc-3.4.3-r1/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.3-r1/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 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.3-r1/work/build' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.3-r1 failed. !!! Function gcc_do_make, Line 1161, Exitcode 2 !!! emake failed with profiledbootstrap !!! If you need support, post the topmost build error, NOT this status message. # file /lib32 /usr/lib32 /lib32: symbolic link to `../emul/linux/x86/lib' /usr/lib32: symbolic link to `../emul/linux/x86/usr/lib' And it was with FEATURES=-sandbox See bug 93769 if you need to see the emerge info, I don't wanna clog this comment more than needed...
shimi: Please come talk to me on IRC. What's the contents of /etc/ld.so.conf?
(In reply to comment #19) > shimi: Please come talk to me on IRC. Sent you a PM > What's the contents of /etc/ld.so.conf? # ld.so.conf autogenerated by env-update; make all changes to # contents of /etc/env.d directory /usr/local/lib /lib /usr/lib /usr/local/lib /lib32 /usr/lib32 /usr/local/lib32 /usr/x86_64-pc-linux-gnu/lib /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3 /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2 /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2/32 /emul/linux/x86/lib /emul/linux/x86/usr/lib /usr/lib/libstdc++-v3/