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
*** This bug has been marked as a duplicate of 136387 ***
.