Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libstdc++ problems
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Android
n00b
n00b


Joined: 05 Jan 2005
Posts: 6

PostPosted: Sun Jan 09, 2005 7:56 pm    Post subject: libstdc++ problems Reply with quote

I have installed gentoo yesterday and everything has gone smoothly until now. When I try and emerge some packages such as xine and mplayer gcc returns this error:
Code:
grep: /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
libtool-nofpic: link: `/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive


It makes sense because there is no /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/. I don't know why gcc doesn't go to /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/ where libstdc++.la is contained.
I did manage to make it work by creating a i386-pc-linux-gnu/3.3.4/ directory and placing a link to /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la in there but this doesn't seem right and I'm sure it's going to muck something else up in the future. Have I set something up wrong? Any suggestions would be great. :)
Back to top
View user's profile Send private message
theotherjoe
Guru
Guru


Joined: 22 Nov 2003
Posts: 393

PostPosted: Sun Jan 09, 2005 8:22 pm    Post subject: Reply with quote

emerge sys-libs/libstdc++-v3 ??
Back to top
View user's profile Send private message
Android
n00b
n00b


Joined: 05 Jan 2005
Posts: 6

PostPosted: Sun Jan 09, 2005 8:45 pm    Post subject: Reply with quote

theotherjoe wrote:
emerge sys-libs/libstdc++-v3 ??

Thanks for the reply but I just tried that, still no luck. :(
Back to top
View user's profile Send private message
theotherjoe
Guru
Guru


Joined: 22 Nov 2003
Posts: 393

PostPosted: Sun Jan 09, 2005 9:11 pm    Post subject: Reply with quote

ok Android, no idea about the i386 path.
what is gcc -v telling you where it does pick up
its specs and so on?
if you cant find a fix it might be a good idea to rebuild
gcc, anyway :(
Back to top
View user's profile Send private message
Android
n00b
n00b


Joined: 05 Jan 2005
Posts: 6

PostPosted: Sun Jan 09, 2005 9:19 pm    Post subject: Reply with quote

theotherjoe wrote:
ok Android, no idea about the i386 path.
what is gcc -v telling you where it does pick up
its specs and so on?
if you cant find a fix it might be a good idea to rebuild
gcc, anyway :(

I have rebuilt gcc about three times now trying different versions.
The output of gcc -v is:
Code:
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: /var/tmp/portage/gcc-3.4.1-r3/work/gcc-3.4.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77 --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions--enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3 --with-local-prefix=/usr/local --disable-werror --enable-shared --enable-nls --without-included-gettext--disable-multilib --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.1 20040803 (Gentoo Linux 3.4.1-r3, ssp-3.4-2, pie-8.7.6.5)

Thanks for your continued help!


Last edited by Android on Sun Jan 09, 2005 10:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
theotherjoe
Guru
Guru


Joined: 22 Nov 2003
Posts: 393

PostPosted: Sun Jan 09, 2005 9:33 pm    Post subject: Reply with quote

curioser and curioser...gcc-config -l ?
regarding a different gcc version, I have
upgrade my private systems to 3.4.3 and
I'd say it's worth it.
Back to top
View user's profile Send private message
Android
n00b
n00b


Joined: 05 Jan 2005
Posts: 6

PostPosted: Sun Jan 09, 2005 9:54 pm    Post subject: Reply with quote

Thanks for your advice. I going to upgrade reboot and see what happens.

Edit:
This is the output of gcc-config -l:
Code:
[1] i686-pc-linux-gnu-3.3.4
[2] i686-pc-linux-gnu-3.4.1 *
Back to top
View user's profile Send private message
Android
n00b
n00b


Joined: 05 Jan 2005
Posts: 6

PostPosted: Mon Jan 10, 2005 5:55 pm    Post subject: Reply with quote

I am still having problems with this, it's stopping me from intalling quite a few packages. :(
Back to top
View user's profile Send private message
dek
l33t
l33t


Joined: 16 May 2002
Posts: 657
Location: Germany

PostPosted: Tue Jan 11, 2005 8:57 pm    Post subject: Reply with quote

This is what i get with some emerges after upgrading from gcc-3.3.4-r1 to gcc-3.3.5-r1. :?
Code:
grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive

I have never used anything but stable (x86) versions of gcc.
Code:
# gcc-config -l
[1] i686-pc-linux-gnu-3.3.5 *
[2] i686-pc-linux-gnu-3.3.5-hardened
[3] i686-pc-linux-gnu-3.3.5-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-hardenednossp
Back to top
View user's profile Send private message
suid77
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2003
Posts: 81
Location: Seattle

PostPosted: Tue Jan 11, 2005 9:07 pm    Post subject: Reply with quote

im seeing the exact same thing. withing the past 24 hours emerge -uD world brought my gcc version up to 3.3.5 but various emerges are failing because they're looking in the 3.3.4 directories.

there are still some references to the previous versions---
in my etc directory:

Code:
root@laptop etc # grep -R "3.3.4" *
env.d/05gcc:LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4"
ld.so.conf:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4
make.profile/packages:>=sys-devel/gcc-3.3.4-r1


gcc-config -l shows the same thing for me too....

fix_libtool_files.sh doesn't seem to have any effect either...

hrm
Back to top
View user's profile Send private message
jourbans
n00b
n00b


Joined: 16 Jan 2004
Posts: 34
Location: Chicago, IL, USA

PostPosted: Tue Jan 11, 2005 9:10 pm    Post subject: Reply with quote

I had a similar problem after upgrading to gcc 3.3.5. Try running fix_libtool_files.sh to correct it. fix_libtool_files.sh with no arguments will show you usage. In my case, I ran:

Code:
# fix_libtool_files.sh 3.3.4


... and that fixed the problem.

suid77 --> have you sourced /etc/profile or run emerge from a different shell since you upgraded?
Back to top
View user's profile Send private message
dek
l33t
l33t


Joined: 16 May 2002
Posts: 657
Location: Germany

PostPosted: Tue Jan 11, 2005 9:21 pm    Post subject: Reply with quote

There's always a script you have never heard of. :)
Worked for me - thanks jourbans!
Back to top
View user's profile Send private message
Shaman
Apprentice
Apprentice


Joined: 12 Sep 2002
Posts: 167
Location: Kingston, ON

PostPosted: Tue Jan 11, 2005 9:31 pm    Post subject: Reply with quote

It didn't fix my issue.

emerge nasm:

groff: error while loading shared libraries: libstdc++.so.6: cannot open sharedobject file: No such file or directory

Same issue in several other programs.
Back to top
View user's profile Send private message
Shaman
Apprentice
Apprentice


Joined: 12 Sep 2002
Posts: 167
Location: Kingston, ON

PostPosted: Tue Jan 11, 2005 9:39 pm    Post subject: Reply with quote

There the library is in the i686-pc-linux-gnu directory, but not in the lib directories. I've executed gcc-config of course...

./lib/libstdc++.so.2.7.2.8
./lib/libstdc++-2-libc6.1-1-2.9.0.so
./lib/libstdc++-v3
./lib/libstdc++-v3/libstdc++.so.5
./lib/libstdc++-v3/libstdc++.so.5.0.6
./lib/libstdc++-3-libc6.2-2-2.10.0.so
./lib/gcc-lib/i686-pc-linux-gnu/3.4.3/libstdc++.la
./lib/gcc-lib/i686-pc-linux-gnu/3.4.3/libstdc++.so
./lib/gcc-lib/i686-pc-linux-gnu/3.4.3/libstdc++.a
./lib/gcc-lib/i686-pc-linux-gnu/3.4.3/libstdc++.so.6
./lib/gcc-lib/i686-pc-linux-gnu/3.4.3/libstdc++.so.6.0.3
./lib/libstdc++-libc6.2-2.so.3
./lib/libstdc++.so.2.8
./lib/libstdc++.so.2.9
./lib/libstdc++.so.2.7.2
./lib/libstdc++.so.2.8.0
./lib/libstdc++.so.2.9.0
Back to top
View user's profile Send private message
jourbans
n00b
n00b


Joined: 16 Jan 2004
Posts: 34
Location: Chicago, IL, USA

PostPosted: Tue Jan 11, 2005 11:45 pm    Post subject: Reply with quote

Hrmm, you've definitely got something screwy going on there. Maybe switch back to 3.3.4, unemerge 3.3.5 and see if you can get an emerge to work (basically getting to where you were before you had problems. Then reemerge 3.3.5 and hope for the best.

Of course, I'd definitely resync with the portage tree before all of this (then maybe just rebuild 3.3.5). Could be you caught a bug that was fixed without a version bump.
Back to top
View user's profile Send private message
suid77
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2003
Posts: 81
Location: Seattle

PostPosted: Tue Jan 11, 2005 11:52 pm    Post subject: Reply with quote

got it working now. Thanks jourbans!

source /etc/profile
fix_libtool_files.sh 3.3.4

fix_libtool_files.sh didn't see any problems until I re-sourced /etc/profile. Now it seems fine.
Back to top
View user's profile Send private message
Android
n00b
n00b


Joined: 05 Jan 2005
Posts: 6

PostPosted: Wed Jan 12, 2005 7:02 pm    Post subject: Reply with quote

Worked for me too, thanks! :D
Back to top
View user's profile Send private message
m0x
n00b
n00b


Joined: 18 Dec 2003
Posts: 26
Location: Montreal, Canada

PostPosted: Wed Jan 12, 2005 8:53 pm    Post subject: Reply with quote

source /etc/profile
fix_libtool_files.sh 3.3.4

This fixed my problem too! The answer is always somewhere in this forum!
Back to top
View user's profile Send private message
ova
Retired Dev
Retired Dev


Joined: 06 Nov 2003
Posts: 120
Location: Russia, Moscow

PostPosted: Wed Jan 12, 2005 9:16 pm    Post subject: Reply with quote

May be somebody, who knows English better then me writes a bug on it?

This seems to be common error after upgrade.
Back to top
View user's profile Send private message
reesm
n00b
n00b


Joined: 02 Mar 2003
Posts: 39
Location: AB, Canada

PostPosted: Wed Jan 12, 2005 10:36 pm    Post subject: Reply with quote

Maybe an admin can make this a sticky? Yeah, i've never heard of this before, and have been using gentoo for quite a while (2+ yrs). Has the format of the libs changed in the new versions of glibc and libstdc++? I know they go through a revision every once in a while. Did I miss a Gentoo Newsletter? Maybe this should go in the next one. I know i probably missed tons of stuff that scrolled by after I emerge gcc-3.3.5-r1.

At least with gentoo you can learn why your system is screwy. Thanks posters! :D
Back to top
View user's profile Send private message
derelm
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2002
Posts: 95

PostPosted: Wed Jan 12, 2005 11:00 pm    Post subject: Reply with quote

hi,

i ran the fix_libtool_files.sh script and it really did bad things to my kde (3.3.2) installation.
actually it cannot find a single .la file, konsole is about the only program i can run without getting an error (from inside gnome, as kde refuses to start)!
Back to top
View user's profile Send private message
mobtek
n00b
n00b


Joined: 20 Aug 2004
Posts: 42

PostPosted: Thu Jan 13, 2005 12:00 am    Post subject: kde 3.3.2 Reply with quote

Did you fix the problem with kde-3.3.2?
I'm not upgrading world until some of these issues are sorted out, fine I can run fix_libtool_files.sh but then how do I fix the kde probs? Re-emerge kde?

cheers Pete

PS mebbe some packages need a bit more testing before being released? I still can't install glibc-2.3.4.20040808-r1 even though I've filed a bug report and all :P
Back to top
View user's profile Send private message
Shaman
Apprentice
Apprentice


Joined: 12 Sep 2002
Posts: 167
Location: Kingston, ON

PostPosted: Thu Jan 13, 2005 12:01 am    Post subject: Reply with quote

I solved my issue by using gcc-config with the FULL compiler string rather than the shortcut (1/2/3/4, etc.). That seemed to sort it out - or it fixed itself in a sync, I don't really know which.
Back to top
View user's profile Send private message
jourbans
n00b
n00b


Joined: 16 Jan 2004
Posts: 34
Location: Chicago, IL, USA

PostPosted: Thu Jan 13, 2005 12:22 am    Post subject: Reply with quote

Well, it's sorted out, which is good to hear. g/l!
Back to top
View user's profile Send private message
derelm
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2002
Posts: 95

PostPosted: Thu Jan 13, 2005 5:24 pm    Post subject: Reply with quote

i just noticed, that i cannot use kde anymore, as fix_libtool_files.sh changed my .la files to be rwx only by root, not as user!

i'll have a look into the script to see if there is evidence for this...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum