Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65129 - GCC-3.4.2: binaries report missing libstdc++.so.6
Summary: GCC-3.4.2: binaries report missing libstdc++.so.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Highest blocker (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 63973
Blocks:
  Show dependency tree
 
Reported: 2004-09-23 13:06 UTC by Rumen Yotov
Modified: 2004-12-11 13:14 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rumen Yotov 2004-09-23 13:06:58 UTC
Firstly the config: all~x86, hardened-2.6.7-r8, GCC-3.4.2-r3.
Had some minor problems after emerging the three apps (Mz,FF,TB), did
the thing (BUG) with the compreg.dat file, just to be sure and occasionally
had problems with FF (on some sites in random places) it just exited (broke).
Yesterday FF,TB,Mz refused to run at all.
All three apps exit with equal errors: -> error while loading shared libraries: libstdc++.so.6:cannot open shared object file: No such file or directory).
i remember that when initially emerged GCC-3.4.x before it i emerged
some libstdc++... (due to some kind of BUG) and everything was OK.
First was gcc-3.4.2, then went down to 3.4.1 (sse2 bug think), yesterday again 3.4.2-r2.
Later (now) tried to reemerge libstdc++-3.3.4 but this didn't solved FF,TB etc
start (work) problem. 
Solved the hot /no working web browser :-)/ problem by unmerging
firefox_1PR, Thunderbird-0.8 and Mozilla-1.7.3 and merging firefox-bin
and mozilla-bin versions- all are working now. (shared lib error).
PS:gcc-config -l also doesn't work any more.
Rumen

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Gentoo Base System version 1.5.3
Portage 2.0.51_rc1 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.1,
glibc-2.3.4.20040808-r0, 2.6.7-hardened-r8 i686)
=================================================================
System uname: 2.6.7-hardened-r8 i686 AMD Athlon(tm) XP 2200+
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /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/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.itdnet.net/gentoo
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.oregonstate.edu
http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo.internet-bg.net/gentoo-portage"
USE="3dnow X X509 aalib acl acpi apache2 avi berkdb bitmap-fonts bonobo caps cdr
chroot clamav crypt cups curl dedicated directfb dvd dvdr encode esd evo ffmpeg
flac foomaticdb freetype gd gdbm gif gnome gpm gtk gtk2 gtkhtml guile hardened
hardenedphp imap imlib ipv6 java javascript jpeg kde ldap libg++ libwww mad
maildir matroska mikmod mmx motif mpeg mpeg4 mysql ncurses nls nvidia oggvorbis
opengl oss pam pdflib perl png postgres ppds prelude python qt quicktime
readline samba sdl skey slang speex spell sse ssl svg svga tcltk tcpd tetex
theora tiff transcode truetype unicode usb x86 xml xml2 xmms xprint xv xvid zlib
linguas_bg linguas_en"
Comment 1 Rumen Yotov 2004-09-24 22:46:23 UTC
Hi again,
Some things have become more clear. Problem seems not to be with Mz,FF,TB but with GCC-3.4.2.
There are such libstdc++.so.6 in GCC-3.4.2 but sometihing broke up.
Unmerged all GCC-3.4.x (even gcc-3.3.4 by mistake) happily has GCC-3.4.1 binary so emerged it (fix_libtoo.sh, ldconfig etc.). gcc-config works again.
Now seems i have a sane system at last. Not very sure still.
Rumen
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-28 03:00:48 UTC
Toolchain:
I've raised this to blocker, as it can stop every c++ binary from working (as they are all linked against libstdc++).

Re-merging the packages does NOT solve it.

root@hevesy-int /usr/portage/dev-java # ldd /usr/bin/jikes
        linux-gate.so.1 =>  (0xffffe000)
        libstdc++.so.6 => not found
        libm.so.6 => /lib/libm.so.6 (0x40030000)
        libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 (0x40053000)
        libc.so.6 => /lib/libc.so.6 (0x4005c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Jikes does NOT link against any library directly.

Tracing the problem, it seems that /etc/env.d/05gcc still contains references to gcc-3.4.1, which causes a bad /etc/ld.so.conf to be generated (without the 3.4.2 directory). So the new gcc-3.4.2-r2 isn't using gcc-config properly I suspect, but I can't figure out why.

Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-28 03:06:36 UTC
toolchain:
It's gcc-config is being dumb.
When it gets called, it gives the 'Profile does not exist' message, and so doesn't fix up 05gcc.
Comment 4 John Shaw 2004-09-28 07:12:04 UTC
I had been having the same problem.  Not sure if I have a newer version of gcc-config (from when I originally emerged gcc-3.4.2-r2) or what, but when I run it now it does in fact correctly change the LDPATH in /etc/env.d/05gcc.

I guess that means this bug can be marked as resolved?
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-28 10:32:12 UTC
jtshaw: until gcc-3.4.2-r2 installs correct without breaking things like this, this bug should stay open.
Comment 6 Dewet Diener 2004-09-28 11:31:44 UTC
I have a similar problem;  although my firefox and mozilla works fine, I can't compile some applications:

[...]ngox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
grep: /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/libstdc++.la' is not a valid libtool archive
make[3]: *** [libgtkmm_generate_extra_defs-2.0.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/gtkmm-2.2.12/work/gtkmm-2.2.12/tools/extra_defs_gen'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gtkmm-2.2.12/work/gtkmm-2.2.12/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gtkmm-2.2.12/work/gtkmm-2.2.12'
make: *** [all] Error 2

!!! ERROR: dev-cpp/gtkmm-2.2.12 failed.
!!! Function gnome2_src_compile, Line 40, Exitcode 2
!!! compile failure
!!! If you need support, post the topmost build error, NOT this status message.

I had gcc-3.4.1 installed, but updated to 3.4.2 recently.  I'm seeing this on two systems, trying to compile gtkmm and php.
Comment 7 solar (RETIRED) gentoo-dev 2004-09-28 15:41:06 UTC
there is a patch on bug #63973 which probably solves this problem.
Comment 8 Travis Tilley (RETIRED) gentoo-dev 2004-10-02 05:28:36 UTC
gcc-config should now be fixed in cvs. once it reaches rsync, update to gcc-config-1.3.6-r2 and do:

gcc-config <arch>-3.4.2
fix_libtool_files.sh <previous compiler version>

where <arch> is probably i686-pc-linux-gnu on x86 and x86_64-pc-linux-gnu on amd64.... and <previous compiler version> is probably 3.4.1 or 3.3.3.
Comment 9 p cooper 2004-12-11 13:14:04 UTC
I hinka a similar problem has broken my system - i merge -u'd some stuff and got prompted t update portage  , followed by some instructions to change some other stuff 

its has this in 
/etc/env.d/gcc/config
CURRENT=i586-pc-linux-gnu-3.4.1

- but
router gcc # pwd
/etc/env.d/gcc
router gcc # ls -l
total 32
-rw-r--r--  1 root root  32 Dec 11 19:35 config
-rw-r--r--  1 root root 294 May  2  2003 i586-pc-linux-gnu-3.2.2
-rw-r--r--  1 root root 294 Aug 13 00:48 i586-pc-linux-gnu-3.3.4
-rw-r--r--  1 root root 293 Dec 11 00:41 i586-pc-linux-gnu-3.4.3
-rw-r--r--  1 root root 357 Dec 11 00:41 i586-pc-linux-gnu-3.4.3-hardened
-rw-r--r--  1 root root 362 Dec 11 00:41 i586-pc-linux-gnu-3.4.3-hardenednopie
-rw-r--r--  1 root root 362 Dec 11 00:41 i586-pc-linux-gnu-3.4.3-hardenednossp
router gcc #  

i cant emerge anything and manpages dont work.
ie 

"error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory"
outer gcc # emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.4.24 i586)
=================================================================
System uname: 2.4.24 i586 AMD-K6(tm) 3D processor
Gentoo Base System version 1.6.7
Python:              dev-lang/python-2.1.3-r1,dev-lang/python-2.3.4,dev-lang/python-2.2.3-r5 [2.3.4 (#1, Aug 12 2004, 22:37:28)]
distcc 2.17 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.1.3-r1, 2.3.4, 2.2.3-r5
sys-devel/autoconf:  2.59-r4
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r5
virtual/os-headers:  2.4.19-r1, 2.4.22
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=k6-3 -O3 -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k6-3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ ftp://ftp.easynet.nl/mirror/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="3dnow X aalib apache2 avi berkdb bitmap-fonts crypt cups dba dedicated encode f77 foomaticdb fortran gd gdbm gif gtk gtk2 imagemagick imap java jpeg junit ldap libg++ libwww maildir mmx motif mpeg mysql ncurses nls odbc pam pdflib perl php png postgres python qt quicktime readline samba sasl sdl slang snmp spell ssl svga tcpd tiff truetype vhosts x86 xml2 xmms xv zlib"