Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 136387

Summary: missing libstdc++.so.6 with emerge gcc-3.4.6-r1
Product: Gentoo Linux Reporter: Jon <bicyus>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: VERIFIED INVALID    
Severity: normal CC: ferdy
Priority: High    
Version: 2006.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Log of emerge gcc
MAKEOPTS=-j1 emerge --debug gcc >& log2

Description Jon 2006-06-11 05:32:03 UTC
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
Comment 1 Jon 2006-06-11 05:40:03 UTC
it reproduce every time I reinstall gcc from source (emerge gcc)

Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-06-11 05:48:28 UTC
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)
Comment 3 SpanKY gentoo-dev 2006-06-11 05:56:07 UTC
run `MAKEOPTS=-j1 emerge gcc >& log` and post the log as an attachment
Comment 4 Jon 2006-06-11 06:23:45 UTC
Created attachment 88900 [details]
Log of emerge gcc
Comment 5 SpanKY gentoo-dev 2006-06-11 06:47:43 UTC
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
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-06-11 06:57:12 UTC
*** Bug 136396 has been marked as a duplicate of this bug. ***
Comment 7 Jon 2006-06-11 07:05:19 UTC
(In reply to comment #5)

> edit the toolchain.eclass file, 


Please can you explain where is that toolchain.eclass file??

Comment 8 SpanKY gentoo-dev 2006-06-11 07:11:56 UTC
actually just run emerge with --debug

i'll pick out the details from your log
Comment 9 Jon 2006-06-11 07:41:53 UTC
Created attachment 88912 [details]
MAKEOPTS=-j1 emerge --debug gcc >& log2
Comment 10 SpanKY gentoo-dev 2006-06-11 08:01:52 UTC
ok, that shows the problem
Comment 11 SpanKY gentoo-dev 2006-06-11 08:02:26 UTC
PEBKAC: you wrongly have build in USE
Comment 12 Jon 2006-06-11 08:18:01 UTC
(In reply to comment #11)
> PEBKAC: you wrongly have build in USE
> 

OK THANKS everyone, DON'T use 'build' option in USE FLAGS.