I switched my profile from 2003.4 to 2005.0, because it was impossible to compile gcc on this profile (had the error: "configure: error: cannot run C compiled programs") I got rid of this error by carefully following the guide to switch the profile with multilib. I did everything except the gcc compile that doesn't work and the glib compile (that I have uptodate and want to compile with the new gcc). My bug is smiliar to http://bugs.gentoo.org/show_bug.cgi?id=95742 but is not the same. The error occurs here: /var/tmp/portage/gcc-3.4.4/work/build/gcc/xgcc -shared-libgcc -B/var/tmp/portage/gcc-3.4.4/work/build/gcc/ -nostdinc++ -L/var/tmp/portage/gcc-3.4.4/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src -L/var/tmp/portage/gcc-3.4.4/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs -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 -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/../../../lib32/crti.o /var/tmp/portage/gcc-3.4.4/work/build/gcc/32/crtbeginS.o .libs/allocator.o .libs/codecvt.o .libs/complex_io.o .libs/ctype.o .libs/debug.o .libs/debug_list.o .libs/functexcept.o .libs/globals_locale.o .libs/globals_io.o .libs/ios.o .libs/ios_failure.o .libs/ios_init.o .libs/ios_locale.o .libs/limits.o .libs/list.o .libs/locale.o .libs/locale_init.o .libs/locale_facets.o .libs/localename.o .libs/stdexcept.o .libs/strstream.o .libs/tree.o .libs/allocator-inst.o .libs/concept-inst.o .libs/fstream-inst.o .libs/ext-inst.o .libs/io-inst.o .libs/istream-inst.o .libs/locale-inst.o .libs/locale-misc-inst.o .libs/misc-inst.o .libs/ostream-inst.o .libs/sstream-inst.o .libs/streambuf-inst.o .libs/string-inst.o .libs/valarray-inst.o .libs/wlocale-inst.o .libs/wstring-inst.o .libs/atomicity.o .libs/codecvt_members.o .libs/collate_members.o .libs/ctype_members.o .libs/messages_members.o .libs/monetary_members.o .libs/numeric_members.o .libs/time_members.o .libs/basic_file.o .libs/c++locale.o -Wl,--whole-archive ../libmath/.libs/libmath.a ../libsupc++/.libs/libsupc++convenience.a -Wl,--no-whole-archive -L/var/tmp/portage/gcc-3.4.4/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src -L/var/tmp/portage/gcc-3.4.4/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs -lm ../libmath/.libs/libmath.a ../libsupc++/.libs/libsupc++convenience.a -L/var/tmp/portage/gcc-3.4.4/work/build/gcc/32 -L/var/tmp/portage/gcc-3.4.4/work/build/gcc -L/usr/x86_64-pc-linux-gnu/bin -L/usr/x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/../../../lib32 -L/usr/lib/gcc/x86_64-pc-linux-gnu/../.. -L/lib/../lib32 -L/usr/lib/../lib32 -lgcc_s_32 -lc -lgcc_s_32 -lgcc_s_32 -lc -lgcc_s_32 /var/tmp/portage/gcc-3.4.4/work/build/gcc/32/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/../../../lib32/crtn.o -Wl,-O1 -Wl,--version-script=libstdc++-symbol.ver -Wl,-soname -Wl,libstdc++.so.6 -o .libs/libstdc++.so.6.0.3 /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libm.so when searching for -lm /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libm.a when searching for -lm /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libm.so when searching for -lm /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libm.a when searching for -lm /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm /usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lm collect2: ld returned 1 exit status make[7]: *** [libstdc++.la] Fehler 1 make[7]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src' make[6]: *** [all-recursive] Fehler 1 make[6]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3' make[5]: *** [all] Fehler 2 make[5]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3' make[4]: *** [multi-do] Fehler 1 make[4]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/x86_64-pc-linux-gnu/libstdc++-v3' make[3]: *** [all-multi] Fehler 2 make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/x86_64-pc-linux-gnu/libstdc++-v3' make[2]: *** [all] Fehler 2 make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/x86_64-pc-linux-gnu/libstdc++-v3' make[1]: *** [all-target-libstdc++-v3] Fehler 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build' make: *** [profiledbootstrap] Fehler 2 !!! ERROR: sys-devel/gcc-3.4.4 failed. !!! Function gcc_do_make, Line 1214, Exitcode 2 !!! emake failed with profiledbootstrap !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge gcc Actual Results: gcc 3.4.4 doesn't get compiled. Expected Results: compile gcc 3.4.4. emerge info: Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.12-gentoo-r3 x86_64) ================================================================= System uname: 2.6.12-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.13 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/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 /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://ftp.rhnet.is/pub/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/" LANG="de_DE" LINGUAS="de" 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 apache2 arts avi berkdb bitmap-fonts bonobo bzlib cdr crypt cups curl dba dvd dvdr eds encode esd f77 fam flac foomaticdb fortran ftp gd gif gnome gnomeprint gpm gstreamer gtk gtk2 guile icq imagemagick imap imlib ipv6 jack java jpeg kde libwww lzw lzw-tiff mad motif mozilla mp3 mpeg mpm-worker mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl pic png ppds python qt quicktime readline samba scanner sdl session spell ssl svg tcltk tcpd tetex threads tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb userlocales vorbis wifi xine xml xml2 xmms xpm xv zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY emerge --pretend --verbose gcc: These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] sys-devel/gcc-3.4.4 [3.4.3.20050110-r2] (-altivec) -bootstrap -boundschecking -build +fortran -gcj +gtk -hardened -ip28 (-multilib)* -multislot (-n32) (-n64) +nls -nocxx -nopie -nossp -objc -static 0 kB
(In reply to comment #0) > I switched my profile from 2003.4 to 2005.0, because it was impossible to Sorry this was a spelling mistake. I switched from 2004.3 to 2005.0
*** This bug has been marked as a duplicate of 95742 ***