Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15025 - Cannot link/find libstdc++
Summary: Cannot link/find libstdc++
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 14350 15027 15066 15288 18041 19879 19896 20125 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-03 05:28 UTC by Seth Chandler
Modified: 2004-02-13 11:28 UTC (History)
11 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 Seth Chandler 2003-02-03 05:28:20 UTC
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor -Wn
            o-long-long -Wundef -Wall -pedantic -W -Wpointer-arith
-Wmissing-prototypes -Wwr             ite-strings -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -D             NDEBUG -DNO_DEBUG -O2
-mcpu=athlon-mp -O3 -pipe -fno-exceptions -fno-check-new -            
DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST    -o libkdeeducore.la.closure libkdeeduc
            ore_la_closure.lo -L/usr/X11R6/lib -L/usr/qt/3/lib
-L/usr/kde/3.1/lib  -no-undef             ined -version-info 1:0 keduvocdata.lo
-lkdecore -lqt-mt  -lpng -lz -lm -lXext -l             X11 -lresolv -lSM -lICE
-lpthread 
libtool: link: cannot find the library `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1
            /libstdc++.la'
make[4]: *** [libkdeeducore.la.closure] Error 1
make[4]: Leaving directory `/var/tmp/portage/kdeedu-3.1-r1/work/kdeedu-3.1/libkd
            eedu/kdeeducore'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdeedu-3.1-r1/work/kdeedu-3.1/libkd
            eedu/kdeeducore'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdeedu-3.1-r1/work/kdeedu-3.1/libkd
            eedu'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdeedu-3.1-r1/work/kdeedu-3.1'
make: *** [all] Error 2

!!! ERROR: kde-base/kdeedu-3.1-r1 failed.
!!! Function kde_src_compile, Line 115, Exitcode 2
!!! died running emake, kde_src_compile:make

sbc sethbc # 


sbc sethbc # emerge info
Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.20-lolo-r1 i686 AMD Athlon(TM) MP 2100+
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 -3dfx 3dnow aalib -acl -acpi -alsa apache2 -apm arts atlas avi berkdb
bonobo -canna -cjk cdr crypt cups dga -directfb doc dvd encode esd evo fbcon
flash -freewnn gb gd gdbm ggi -ggz gif gnome gphoto2 gpm gps gtk gtk2 gtkhtml
guile -icc -icc-pgo imap imlib innodb ipv6 java -jike jpeg junit kde kerberos
lcms -ldap leim libg++ libgda libwww -matrox maildir -mbox mikmod mmx motif
mozilla mpeg mule mysql -nas ncurses nls oav -oci8 odbc oggvorbis opengl oss pam
-pcmcia pda pdflib perl pic plotutils png pnp postgres python qt qtmt quicktime
readline ruby samba sasl scanner sdl -slang slp snmp -socks5 spell sse ssl svga
tcltk tcpd tetex tiff truetype -voodoo3 wmf X xface xml xml2 xmms xv -zeo zlib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-mp -O3 -pipe"
CXXFLAGS="-mcpu=athlon-mp -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86 &x86"
MAKEOPTS="-j3"
AUTOCLEAN="yes"
SYNC="cvs://sethbc@gentoo.org/gentoo-x86"
FEATURES="sandbox ccache buildpkg digest noauto"

sbc sethbc #
Comment 1 Hannes Mehnert (RETIRED) gentoo-dev 2003-02-03 09:36:22 UTC
*** Bug 15027 has been marked as a duplicate of this bug. ***
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-03 13:38:16 UTC
Ok, to fix:

nosferatu root # emerge rsync

nosferatu root # cd /usr/portage/sys-devel/gcc/files/
nosferatu files # ./fix_libtool_files.sh 3.2.1
 * Scanning /usr/lib/opengl/nvidia/lib...
 * Scanning /usr/lib/mozilla...
 * Scanning /usr/X11R6/lib...
 * Scanning /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386...
 * Scanning /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386/native_threads...
 * Scanning /usr/qt/3/lib...
 * Scanning /lib...
 * Scanning /usr/lib...
 *   FIXING: /usr/lib/gst/libgstarts.la
 * Scanning /usr/local/lib...
nosferatu files #


Make sure that /usr/portage/sys-devel/gcc/files/awk/fixlafiles.awk is
at CVS revision 1.5:

-------------------------------------------------------
azarah@nosferatu awk $ grep fixlafiles /usr/portage/sys-devel/gcc/files/awk/fixlafiles.awk
# $Header: /home/cvsroot/gentoo-x86/sys-devel/gcc/files/awk/fixlafiles.awk,v 1.5 2003/02/03 18:35:40 azarah Exp $
azarah@nosferatu awk $ 
-------------------------------------------------------

Note the 'v 1.5' ...
Comment 3 Voicu Liviu 2003-02-03 13:43:40 UTC
thanks, good job gentoo team, bcoz of this people like gentoo :-) 
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-03 14:28:15 UTC
Err, that is a confirmation that the fix work ?
Comment 5 Throstur Svanbergsson 2003-02-05 15:51:48 UTC
It worked for me, had the same error in kdelibs.
Comment 6 Brad Cowan (RETIRED) gentoo-dev 2003-02-09 13:35:55 UTC
I had the same error with many programs....the script seems to work, but I noticed the same thing on my other boxes, the script error/doesn't run correctly from the gcc3.2.2 ebuild. Stupid me then tried running the script manually, but used 3.2.2 as an argument which didn't fix the problem, so I ended up grepping for 3.2.1/libstdc++.la and recompiling each package :) until I see that u need the old 
version as an argument which works great.
Comment 7 Brad Cowan (RETIRED) gentoo-dev 2003-02-09 13:37:26 UTC
I still wish I knew whats up with the line wrapping now
Comment 8 Dan Armak (RETIRED) gentoo-dev 2003-02-11 16:03:48 UTC
AFAICS this is fixed, reopen if I'm wrong. 
 
Comment 9 Jonathan Nall 2003-02-18 07:29:46 UTC
*** Bug 15066 has been marked as a duplicate of this bug. ***
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-13 23:57:47 UTC
*** Bug 14350 has been marked as a duplicate of this bug. ***
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-13 23:59:31 UTC
*** Bug 15288 has been marked as a duplicate of this bug. ***
Comment 12 Clint Silvester 2003-03-14 13:05:27 UTC
I guess my bug #14350 has been marked as a dupe of this bug, but the fix for this bug did not fix my problem.  I want to make clear that when my gcc is built, there is no libstdc++.so.5, libstdc++.so.5.2, or libstdc++.so in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2.  

ls -al /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libstdc++*
-rw-r--r--    1 root     root      7932070 Mar 13 16:47 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libstdc++.a
-rwxr-xr-x    1 root     root          909 Mar 13 16:47 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libstdc++.la

That's all I got.  I was told to run this script before, and it did seem to fix some things up, but the only reason I still have a working system is that some binary gcc I downloaded kept some files in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/ and that's still in my path, so python will work, but anything that tries to use that file will die with the time_put_w error.  I don't think I have the same problem as these folks.  Also, a weird thing, when I run gcc-config i686-pc-linux-gnu-3.2.2 i get /bin/cp: cannot stat `/usr/lib/gcc-config/wrapper': No such file or directory over and over and it ends with [ ok ].  Something maybe wrong with gcc-config?
Comment 13 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-15 09:21:52 UTC
Clint: Check that bug for your answer ...
Comment 14 Martin Holzer (RETIRED) gentoo-dev 2003-04-28 16:16:46 UTC
*** Bug 20125 has been marked as a duplicate of this bug. ***
Comment 15 Martin Holzer (RETIRED) gentoo-dev 2003-04-28 16:42:11 UTC
*** Bug 18041 has been marked as a duplicate of this bug. ***
Comment 16 Martin Holzer (RETIRED) gentoo-dev 2003-04-28 16:43:08 UTC
*** Bug 19879 has been marked as a duplicate of this bug. ***
Comment 17 Martin Holzer (RETIRED) gentoo-dev 2003-04-28 16:43:28 UTC
*** Bug 19896 has been marked as a duplicate of this bug. ***
Comment 18 laughingplant 2004-02-07 20:47:00 UTC
I just installed a new and shiny Gentoo system a couple of weeks ago :-). I have the same problem upgrading from gcc-3.2.3 to gcc-3.3.2. I don't know if the fix in this report works. I just followed bug number 11391 before I found this one, then re-emerged python, and finally deleted the copied files (see bug 11391). Emerge is working again, now. This bug just seems be sticking around!
Comment 19 jon 2004-02-09 20:47:27 UTC
Same problem here upgrading gcc. 
Fixed by replacing 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3
with
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2
in /e	tc/ld.so.conf
Is anyone working on fixing this?
Comment 20 Caleb Tennis (RETIRED) gentoo-dev 2004-02-10 04:52:58 UTC
Did you run fix_libtool_files.sh?
Comment 21 laughingplant 2004-02-13 11:28:59 UTC
Question: Do you need to run fix_libtool_files.sh everytime you upgrade gcc? I mean, it is quite a shock to a gentoo-newcomer when emerge doesn't work anymore...