Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80434 - gcc-3.4.3-r1.ebuild breaks config (libstdc++.so.6: cannot open shared object file: No such file or directory)
Summary: gcc-3.4.3-r1.ebuild breaks config (libstdc++.so.6: cannot open shared object...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 80412 80419 80442 80451 80467 80491 80492 80502 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-02 02:20 UTC by Bernhard
Modified: 2005-06-03 11:16 UTC (History)
17 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 Bernhard 2005-02-02 02:20:48 UTC
After emerging gcc-3.4.3-r1 various applications cannot start. Somehow they cannot find libstd++.so.6
Applications that fail to load include: firefox, doxygen, umbrello, inkscape,...
Adding "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/" to $LD_LIBRARY_PATH allows programs to run.
Is there an error in the ebuild - 3.4.4 instead of 3.4.3 ?



Reproducible: Didn't try
Steps to Reproduce:
1. emerge gcc-3.4.3-r1.ebuild
2. attempt to start any program that uses libstdc++
3.

Actual Results:  
Prog fails with error message:
myprog: error while loading shared libraries: libstdc++.so.6: cannot open shared
object file: No such file or directory

Expected Results:  
program starts normally

a directory "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/" exists on my system
containing vaious gcc libs. I do not have gcc-3.4.4 installed on my system. I
only have gcc-3.4.3.
Comment 1 Patrick Fourniols 2005-02-02 03:18:15 UTC
to solve just add /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/ in /etc/env.d/05gcc and run env-update
and so idem here ;)
Comment 2 Patrick Fourniols 2005-02-02 03:21:12 UTC
euh in LDDPATH= of course :(
you must have the line:
LDPATH="/usr/lib/gcc/i686-pc-linux-gnu/3.4.3:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.4:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4"
Comment 3 Jörg Gollnick 2005-02-02 03:32:29 UTC
Same problem here on amd64.
If I run gcc -dumpversion I get 3.4.4.
Changing LDPATH in 05gcc helps.

 
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-02 04:02:27 UTC
*** Bug 80442 has been marked as a duplicate of this bug. ***
Comment 5 Olivier Castan 2005-02-02 04:11:51 UTC
Please correct this bug quickly because it breaks any program linked against libstdc++.so :
$ firefox
No running windows found
/usr/lib/MozillaFirefox/firefox-bin: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

All the files affected on ppc arch :
# grep /3.4.4/ /var/db/pkg/sys-devel/gcc-3.4.3-r1/CONTENTS
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/ncrti.o beb14f635e43034ed19e320795e29217 1107316808
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/include
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/include/unwind.h cae2ee1f5160be95378ef151ac13a346 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/include/stddef.h 60e59b30c1de005330d295313e8e7b12 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/include/spe.h fc68ddb8310668f910a1bd6668b7b2ca 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/include/altivec.h 05224225702a90e33adf95bc69b1f0df 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/include/float.h 143d9eb1e7d7cc3a6c181fa57e344d0d 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/include/stdbool.h 213baee904954855afe6b742d0dad427 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/include/limits.h 5c2f45596d3a8b5fa26653e2f71c4296 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/include/stdarg.h 2f4dffb1e27eac29d9981caa8ddbba08 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/include/iso646.h 378da2dd3f4a6d9df12f8b0a43615739 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/include/README 455903ad4ff71fa5c5340ef7ae41a0e6 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/include/varargs.h 8d9ecf0d6ef93c79623ce1d27a32a2cb 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/include/ppc-asm.h 14cec5dfbee9d3f12e63eb6631f6c0cc 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/mkheaders.conf 75c4cff8d3d27bbd8e020334cad14837 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/gsyslimits.h c32a1d882e7039afe158bb9e59b65223 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/crtend.o 0b0c60c2efaff4656edca3c2c703af12 1107316808
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/unwind.h cae2ee1f5160be95378ef151ac13a346 1107316808
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/openssl
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/stddef.h 60e59b30c1de005330d295313e8e7b12 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/spe.h fc68ddb8310668f910a1bd6668b7b2ca 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/syslimits.h c32a1d882e7039afe158bb9e59b65223 1107316808
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/gc
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/gc/private
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/root
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/root/usr
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/root/usr/lib
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/root/usr/lib/mozilla
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/root/usr/lib/mozilla/include
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/root/usr/lib/mozilla/include/js
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/root/usr/lib/mozilla/include/nss
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/root/usr/lib/mozilla/include/dbm
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/netatalk
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/altivec.h 05224225702a90e33adf95bc69b1f0df 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/float.h 143d9eb1e7d7cc3a6c181fa57e344d0d 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/stdbool.h 213baee904954855afe6b742d0dad427 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/limits.h 5c2f45596d3a8b5fa26653e2f71c4296 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/stdarg.h 2f4dffb1e27eac29d9981caa8ddbba08 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/g2c.h 7f8c83b27618576735e76c7980e6a564 1107316808
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/linux
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/scsilib
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/scsilib/scg
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/iso646.h 378da2dd3f4a6d9df12f8b0a43615739 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/README 455903ad4ff71fa5c5340ef7ae41a0e6 1107316808
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/atalk
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/varargs.h 8d9ecf0d6ef93c79623ce1d27a32a2cb 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/ppc-asm.h 14cec5dfbee9d3f12e63eb6631f6c0cc 1107316808
dir /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/include/bits
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/libstdc++.a 9cddbecad0beb0d164acc88c6246fabb 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/crtendS.o 0b0c60c2efaff4656edca3c2c703af12 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/libgcov.a 666ed26302a02059c7debcafcc1cc398 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/crtbegin.o 4cf95c386e7446c6aae8ab670bfd0e4e 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/ecrti.o 558e6da0ea127d72d69e05ba2098fdb7 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/libgcc_eh.a 982761e52e62bb5db8f888457be5d66d 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/libsupc++.a 71a1a5796f63acf819b1a10f33f6de04 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/specs c69a58a0e427b5e6284f998e1277e23f 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/crtsavres.o 7050b1c8ea1c2e79d0921ad6a8663f63 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/ecrtn.o 82785a9df81831bfa6b68b255dfd7c8c 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/libgcc.a 68c1329f350ff5772b059fb240913eac 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/libstdc++.la bb65ba9eef7570584cf39d8d9254be12 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/crtbeginS.o e2a8dcbdbf69989ad932682d977ac311 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/libsupc++.la ea04af944e69f993ba3ce8f177452654 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/libgcc_s.so.1 9b005ff74be27720a7d91c2b7706eed9 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/crtbeginT.o cbbc874c9cfb8b53bf71c73d297adf2d 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/ncrtn.o 523c3e52bc5d604fd07117c3e62d716d 1107316808
obj /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/libstdc++.so.6.0.3 8b115f9a3f70dec0e531e81782eb6f33 1107316808
dir /usr/libexec/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools
obj /usr/libexec/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/mkheaders 580da16f325288b9ca3c3698ba4bcbab 1107316808
obj /usr/libexec/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/fixinc.sh 053831fb64c48229d8356349d8ca06f4 1107316808
obj /usr/libexec/gcc/powerpc-unknown-linux-gnu/3.4.4/install-tools/fixincl ed088fdb21eb724fb3c248ff76676c0c 1107316808
obj /usr/libexec/gcc/powerpc-unknown-linux-gnu/3.4.4/collect2 0de981245005d730971c8eae12f27371 1107316808
obj /usr/libexec/gcc/powerpc-unknown-linux-gnu/3.4.4/cc1 a7a2ae1f52690a96543ecc8bdbb2a466 1107316808
obj /usr/libexec/gcc/powerpc-unknown-linux-gnu/3.4.4/cc1plus a51b8afa617cc7500c44faca46fa6bb1 1107316808
obj /usr/libexec/gcc/powerpc-unknown-linux-gnu/3.4.4/f771 c8c9758efdf711bb8a7775c46efcf284 1107316808
sym /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/libstdc++.so.6 -> libstdc++.so.6.0.3 1107316860
sym /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/libgcc_s.so -> libgcc_s.so.1 1107316860
sym /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/libstdc++.so -> libstdc++.so.6.0.3 1107316860

2 paths are affected :
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/
/usr/libexec/gcc/powerpc-unknown-linux-gnu/3.4.4/
Comment 6 Sven Wegener gentoo-dev 2005-02-02 05:53:23 UTC
*** Bug 80451 has been marked as a duplicate of this bug. ***
Comment 7 Octavio Ruiz (Ta^3) 2005-02-02 06:05:48 UTC
Change rep_platform field from x86 to All. :-)

emerge info
Portage 2.0.51-r15 (default-linux/amd64/2005.0, gcc-3.4.3-r1, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Comment 8 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-02-02 07:28:02 UTC
The same on ~x86. gcc-3.4.3-r1 created 3.4.4 directory and claims to be 3.4.4:

nelchael@nelchael ~$ gcc --version
gcc (GCC) 3.4.4 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

nelchael@nelchael ~$ emerge -p gcc

These are the packages that I would merge, in order:

Calculating dependencies   ...done!
[ebuild   R   ] sys-devel/gcc-3.4.3-r1  
nelchael@nelchael ~$ 
Comment 9 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-02 08:19:11 UTC
*** Bug 80467 has been marked as a duplicate of this bug. ***
Comment 10 Simone Piunno 2005-02-02 08:59:45 UTC
Problem is bigger than just adjusting LDPATH

Now compiling Qt I get:

g++ -o qmake project.o property.o main.o makefile.o unixmake2.o unixmake.o msvc_nmake.o borland_bmake.o mingw_make.o msvc_dsp.o msvc_vcproj.o option.o winmakefile.o projectgenerator.o metrowerks_xml.o  pbuilder_pbx.o msvc_objectmodel.o meta.o qtmd5.o qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o qdatastream.o qgarray.o qbuffer.o qglist.o qptrcollection.o qfile.o qfile_unix.o qregexp.o qgvector.o qgcache.o qbitarray.o qdir.o quuid.o qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o qconfig.o qunicodetables.o qsettings.o qlocale.o
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
gmake: *** [qmake] Error 1
qmake failed to build. Aborting.

This is because g++ believes to be 3.4.4 but some files are still under 3.4.3:

# equery belongs libgcc_s.so.1
[ Searching for file(s) libgcc_s.so.1 in*... ]
sys-devel/gcc-3.4.3-r1 (/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libgcc_s.so.1)

# ls /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3
hardenednopie.specs
hardenednossp.specs
hardened.specs
include
libfrtbegin.a
libg2c.a
libg2c.la
libg2c.so
libg2c.so.0
libg2c.so.0.0.0
libgcc_s_32.so
libgcc_s.so
libgcc_s.so.1
vanilla.specs
Comment 11 Marien Zwart (RETIRED) gentoo-dev 2005-02-02 09:00:27 UTC
The line:

sed -e 's/3\.4\.4/3.4.3/' -i ${S}/gcc/version.c

was removed from src_unpack recently. This looks highly suspicious. I'm having someone on #gentoo with this problem recompile gcc with the sed put back in now...

Comment 12 Kenyon Ralph 2005-02-02 09:13:37 UTC
Yeah it works fine with that line put back in.  See Bug #80412 Comment #3.
Comment 13 Haroon Rafique 2005-02-02 09:29:24 UTC
Here's the changelog straight from viewcvs:
http://www.gentoo.org/cgi-bin/viewcvs.cgi/sys-devel/gcc/gcc-3.4.3-r1.ebuild?r1=1.20&r2=1.21

Looks like "eradicator" omitted the sed line going from revision 1.20 to 1.21
Comment 14 Robert T Childers 2005-02-02 09:46:24 UTC
Until they get this sorted out, mask gcc-3.4.3-r1 and emerge gcc.
Comment 15 Robert T Childers 2005-02-02 09:52:21 UTC
Oh and if you were running gnome 2.8 when this bit you and your gnome fails to load properly, delete /home/(user)/.gnome2/session  . Then restart gnome.
Comment 16 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-02 10:26:16 UTC
fixed in cvs.
Comment 17 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-02 12:49:10 UTC
*** Bug 80502 has been marked as a duplicate of this bug. ***
Comment 18 Martin Schlemmer (RETIRED) gentoo-dev 2005-02-02 13:05:45 UTC
Can we bump the revision to get the fix propagated?
Comment 19 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-03 04:51:26 UTC
*** Bug 80412 has been marked as a duplicate of this bug. ***
Comment 20 SpanKY gentoo-dev 2005-02-03 13:42:38 UTC
*** Bug 80491 has been marked as a duplicate of this bug. ***
Comment 21 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-04 02:29:42 UTC
*** Bug 80419 has been marked as a duplicate of this bug. ***
Comment 22 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-04 02:31:18 UTC
marking fixed.
Comment 23 solar (RETIRED) gentoo-dev 2005-02-07 23:00:15 UTC
eradicator
Not sure if your fix got it right or not yet. I think this might be related.
 
On fresh install we now fail on groff cuz libgcc is not anywhere that gcc can find. A few days after your fix for this one, bug #81073 poped up.

I synced up and have only groff left in 'system' before we can roll stages

equery belongs libgcc_s.so.1
[ Searching for file(s) libgcc_s.so.1 in *... ]
sys-devel/gcc-3.4.2-r2 (/usr/lib/gcc-lib/x86_64-pc-linux-gnu/lib64/libgcc_s.so.1)

gcc -print-file-name=libgcc_s.so.1
libgcc_s.so.1

It should read as 
gcc -print-file-name=libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/libgcc_s.so.1
Comment 24 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-08 02:29:59 UTC
*** Bug 80492 has been marked as a duplicate of this bug. ***
Comment 25 Jozef Behran 2005-06-03 11:16:12 UTC
It also occurs with gcc-3.4.3 being updated to gcc-3.4.4. This bug when manifested  
renders Portage unusable as Python is linked against libstdc++. I guess the bug is  
in the gcc-3.4.4 ebuild when the ebuild forgets to switch to the new compiler before  
the old one is unmerged. After I added the pth to the new libstdc++ to  
LD_LIBRARY_PATH I was able to switch the GCC configuration and then  
everything worked as expected.