I Don't know why, but "emerge gcc" doesn't install libstdc++.so.6 file. I had to download http://tinderbox.x86.dev.gentoo.org/default-linux/x86/2005.1/sys-devel/gcc-3.4.6-r1.tbz2, to install precompiled gcc with c++ libraries. GCC version 3.4.6-r1 Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-suspend2-r4 i686) ================================================================= System uname: 2.6.16-suspend2-r4 i686 Intel(R) Pentium(R) M processor 1.70GHz Gentoo Base System version 1.6.14 dev-lang/python: 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-O2 -march=pentium-m -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/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'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://tenkanet.com/gentoo-portage" USE="x86 S3TC X acpi alsa amarok amr amrr apache2 avi berkdb bitmap-fonts bluetooth build cddb cli cpudetection crypt css cups dbus dhcp dri dvd dvdread eds emboss encode esd evo fbsplash foomaticdb fortran gatos gdbm gif gnome gnome-print gphoto2 gpm gps gstreamer gtalk gtk gtk2 h323 hdaps imlib iproute2 ipv6 irmc isdnlog j2ee jpeg kde libg++ libwww lm_sensors mad madwifi mikmod mmx mono motif mp3 mp4 mp4live mpeg mpeg2 mplayer ncurses nls nptl ogg oggvorbis opengl openssh pam pcre pdflib perl pmu png ppds pppd python qt quicktime rar readline real reflection reiserfs rtc sdk sdl sensord session sftp spell spl sse sse2 ssl subtitles symlink tcpd truetype truetype-fonts type1-fonts udev vorbis wifi win32codecs xml xmms xorg xpm xv zlib elibc_glibc kernel_linux userland_GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
it reproduce every time I reinstall gcc from source (emerge gcc)
Hmmm... $ equery b `slocate libstdc++.so.6` [ Searching for file(s) /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6,/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6.0.3,/usr/lib/debug/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6.0.3.debug in *... ] sys-devel/gcc-3.4.6-r1 (/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6.0.3) sys-devel/gcc-3.4.6-r1 (/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6 -> libstdc++.so.6.0.3) sys-devel/gcc-3.4.6-r1 (/usr/lib/debug/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6.0.3.debug)
run `MAKEOPTS=-j1 emerge gcc >& log` and post the log as an attachment
Created attachment 88900 [details] Log of emerge gcc
your gcc is being built with only C support: --enable-languages=c edit the toolchain.eclass file, go down to where gcc-compiler-configure() is defined, and add this line to the top of the function: set -x then at the end of the function where it says 'configuring for GCC_LANG', put: set +x then re-run the emerge again and post the new log
*** Bug 136396 has been marked as a duplicate of this bug. ***
(In reply to comment #5) > edit the toolchain.eclass file, Please can you explain where is that toolchain.eclass file??
actually just run emerge with --debug i'll pick out the details from your log
Created attachment 88912 [details] MAKEOPTS=-j1 emerge --debug gcc >& log2
ok, that shows the problem
PEBKAC: you wrongly have build in USE
(In reply to comment #11) > PEBKAC: you wrongly have build in USE > OK THANKS everyone, DON'T use 'build' option in USE FLAGS.