Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[libstdc++.la]Not found. I tried a lot and; finaly [Solved]
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
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Sat Apr 16, 2005 11:45 am    Post subject: [libstdc++.la]Not found. I tried a lot and; finaly [Solved] Reply with quote

When i emerge kde-meta, it fails on the khangman package with a libstdc++.la file not found error (posted below).
The error is very common, and i found a lot of good topics, even a FAQ.
But i tried all the remedies in those threads and without result. (threads listed below)
Being fairly out of options i tried a:
Code:
emerge -e system && emerge -e system
but also without results.
When i encounter so much bumps on a windoze machine i normaly format the hell out of it, and start from scratch.
But somebody told my that in Linux/Gentoo it is not necessery to start from scratch, u should always be able to fix the particular problem. So that's what i would like to do, but i'm stranded and i need some HELP.

I've read these topic's:
GF18: Emerge fails after upgrading gcc. libstdc++.la missing
libstdc++.la: No such file or directory - errors and tips
Comment on the topic: I don't have the variable: GCC_VERSION, so ${GCC_VERSION} doesn't work. I tried entering my version manualy dirtyepics way:
HOWTO 'Could not run/locate "i386-pc-linux-gnu-gcc"
Comment on the topic: Most of the time fix_libtool_files.sh fixes a lot. (don't realy know what, but i see the word fix alot).

I've also read these, but i think there were no solutions in there for me:
libstdc++.la: No such file or directory .. thread feedback
[resolved] Problems after upgrade gcc to 3.3.5

Here are some outputs with lots of information about my machine:
(I will add some more on request :D)
equery list gcc
gcc-config -l
ls -al /bla/bla/bla/libstdc++.la
tail /var/log/emerge.log
tail /var/log/portage/khangman.log
/etc/make.conf
emerge --info
lsmod
lspci
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |


Last edited by Sade on Sat Apr 16, 2005 7:14 pm; edited 2 times in total
Back to top
View user's profile Send private message
Pithlit
l33t
l33t


Joined: 27 Dec 2003
Posts: 887
Location: fuhen

PostPosted: Sat Apr 16, 2005 12:35 pm    Post subject: Reply with quote

Quote:
* /usr/bin/gcc-config: Profile does not exist or invalid setting for
* /etc/env.d/gcc/i686-pc-linux.gnu-3.4.3-20050110


OK these might be stupid questions but I really can't guess what you did or did not do just by reading those threads so... bare with me.

Did you update your profile? Did you try reemerging gcc? Have you tried a different gcc?
For the time being I'd try changing my gcc profile back to 3.3.5 and see if that fixes things.
_________________
If someone solves a problem for you say thanks... and put [SOLVED] in the title!
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Sat Apr 16, 2005 1:32 pm    Post subject: Reply with quote

First of all, I have not read all the links you provided, sorry if this is a duplicate.

Code:

jpc etc # gcc-config -l > /mnt/hdb2/gentoo.txt/gcc-config.txt
/usr/bin/gcc-config: line 1: /etc/env.d/gcc/i686-pc-linux.gnu-3.4.3-20050110:
No such file or directory
 * /usr/bin/gcc-config: Profile does not exist or invalid setting for
 * /etc/env.d/gcc/i686-pc-linux.gnu-3.4.3-20050110


This is bad. At least I have a /etc/env.d/gcc/i686-pc-linux.gnu-3.4.3-20050110
Mine is:
Code:

PATH="/usr/i686-pc-linux-gnu/gcc-bin/3.4.3-20050110"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/3.4.3-20050110"
LDPATH="/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110"
GCCBITS="32"
MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3-20050110/man"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3-20050110/info"
STDCXX_INCDIR="g++-v3"

You may want to create the file.

SUGGESTION 1) create the file, reemegre libstdc++-v3, and see if that helps.

SUGGESTION 2)
That file missing may mean that there is something more wrong with gcc install, so I suggest you resintall gcc, like this:

Code:

gcc-config i686-pc-linux-gnu-3.3.5                 # set 3.3.5 as active compiler
emerge --unmerge gcc-3.4*                           # get rid of possibly broken gcc 3.4.3
<unmask stuff>
<emerge current ~x86 gcc ( 3.4.3.20050110-r2  ) >
<switch to gcc 3.4.3>
emerge --unmerge gcc-3.3*                           # get rid of an old , possibly conflict-causing , compiler I don't know why someone would want to have
<emerge current ~x86 libstdc++-v3 ( 3.3.4 ) >


This is a just a suggestion. I am not an expert on the matter. I never even had this problem.
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Sat Apr 16, 2005 1:36 pm    Post subject: Reply with quote

One more thing, I just noticed.

This is from you:
Quote:

-rwxr-xr-x 1 root root 970 Mar 11 02:39 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la
-rwxr-xr-x 1 root root 984 Apr 16 08:51 /usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/libstdc++.la


While I have:
Quote:

obelix@home ~ $ locate libstdc++.la
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.3-20050110/libstdc++.la


You may try copying yor 3.4.3 libstdc++.la to the same place as mine ( /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.3-20050110/ ).
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Sat Apr 16, 2005 2:21 pm    Post subject: Reply with quote

Pithlit wrote:
Quote:
* /usr/bin/gcc-config: Profile does not exist or invalid setting for
* /etc/env.d/gcc/i686-pc-linux.gnu-3.4.3-20050110


OK these might be stupid questions but I really can't guess what you did or did not do just by reading those threads so... bare with me.

Did you update your profile? Did you try reemerging gcc? Have you tried a different gcc?
For the time being I'd try changing my gcc profile back to 3.3.5 and see if that fixes things.



Haha, ofcourse u can't guess that, but it's very hard to make a complete startpost on such a topic. What i meant with reading ofcourse includes trying all suggestion that i thoughed that could work (e.g. almost all).

I did try reemerging gcc, and reemerging the toolchain (glibc, binutils, gcc). and i did a emerge -e system twice. Those compiles worked fine, and finished without error's.

I don't realy know why to env-update nor source /etc/profile, but i do realise they are importend to let the system know something has changed. And i thought it couldn't realy hurt to do it too often.
Code:
env-update && source /etc/profile
So i used the command a lot, almost between every build or fix_libtool.sh.
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Sat Apr 16, 2005 2:24 pm    Post subject: Reply with quote

IvanYosifov wrote:
<snip>SUGGESTION 1) create the file, reemegre libstdc++-v3, and see if that helps.

SUGGESTION 2)
That file missing may mean that there is something more wrong with gcc install, so I suggest you resintall gcc, like this:
<snip>

This is a just a suggestion. I am not an expert on the matter. I never even had this problem.

hey it's worth a try, i'll copy the file from your second post first, then i'll try (1) and (2). let's hope it works.
I'll report back in a sec.

[EDIT]
ok, when i did this (suggestion 2)
Code:


gcc-config i686-pc-linux-gnu-3.3.5                 # set 3.3.5 as active compiler
emerge --unmerge gcc-3.4*                           # get rid of possibly broken gcc 3.4.3
<unmask stuff>
<emerge current ~x86 gcc ( 3.4.3.20050110-r2  ) >
<switch to gcc 3.4.3>
emerge --unmerge gcc-3.3*                           # get rid of an old , possibly conflict-causing , compiler I don't know why someone would want to have
<emerge current ~x86 libstdc++-v3 ( 3.3.4 ) >

After the emerge --unmerge gcc-3.4* all borks.
now emerge, env-update and equery all give the same error:
Code:
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

I think this is a bad thing, not holding you or anyone responible but myself, but i'm sincerly beginning to doubt if my system will be saved from this point.
Should i give up? Reinstall?
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
Pithlit
l33t
l33t


Joined: 27 Dec 2003
Posts: 887
Location: fuhen

PostPosted: Sat Apr 16, 2005 2:51 pm    Post subject: Reply with quote

Quote:
After the emerge --unmerge gcc-3.4* all borks.
Please tell me that was a typo and you didn't just unmerge 3.4.3 (that you just emerged). Reinstall isn't a solution tho. You could try the binaries tho. You can find them here. Unmerge all your existing gcc copies and install the binary of your choice. Old gcc copies shouldn't be conflicting with new ones tho
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
[5] i686-pc-linux-gnu-3.4.3 *
[6] i686-pc-linux-gnu-3.4.3-hardened
[7] i686-pc-linux-gnu-3.4.3-hardenednopie
[8] i686-pc-linux-gnu-3.4.3-hardenednossp
I've been living with that for a while now without any problems.
_________________
If someone solves a problem for you say thanks... and put [SOLVED] in the title!
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Sat Apr 16, 2005 2:57 pm    Post subject: Reply with quote

nope, that was no typo.

and i can't realy unemerge anymore, since emerge doesn't work.
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Sat Apr 16, 2005 3:00 pm    Post subject: Reply with quote

Quote:

Please tell me that was a typo and you didn't just unmerge 3.4.3 (that you just emerged)

We are trying to reinstall 3.4.3. The first step is unmergeing it. What's wrong ?

Quote:

Old gcc copies shouldn't be conflicting with new ones.

They should not. However having several compilers installed in parallel is tricky and if some link , for example , points to the wrong place weird things can happen. I just wanted to simplify the picture.

Quote:

After the emerge --unmerge gcc-3.4* all borks.

I am a little confused. After the 'gcc-config i686-pc-linux-gnu-3.3.5 ' step I should be able to unmerge any other version, right ?
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Sat Apr 16, 2005 3:02 pm    Post subject: Reply with quote

Sade, as Pithlit pointed out you can get a compiler binary from http://dev.gentoo.org/~avenj/bins/i686/
This should bring your system back on the track.
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Sat Apr 16, 2005 3:07 pm    Post subject: Reply with quote


IvanYosifov wrote:
Quote:

After the emerge --unmerge gcc-3.4* all borks.

I am a little confused. After the 'gcc-config i686-pc-linux-gnu-3.3.5 ' step I should be able to unmerge any other version, right ?

i did a source /etc/profile in between, was that a mistake?

IvanYosifov wrote:
Sade, as Pithlit pointed out you can get a compiler binary from http://dev.gentoo.org/~avenj/bins/i686/
This should bring your system back on the track.

I don't realy know what to do with a binary. let's check if google know's :)
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |


Last edited by Sade on Sat Apr 16, 2005 3:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Sat Apr 16, 2005 3:09 pm    Post subject: Reply with quote

Try doing
env-update && source /etc/profile
Does this bring emerge back on the track ?

/etc/profile is generated from config files by env-update. After editing some configs you have to env-update for the chages to go in /etc/profile.
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Sat Apr 16, 2005 3:12 pm    Post subject: Reply with quote

IvanYosifov wrote:
Try doing
env-update && source /etc/profile
Does this bring emerge back on the track ?

/etc/profile is generated from config files by env-update. After editing some configs you have to env-update for the chages to go in /etc/profile.

env-update gives the python error i posted a few posts up.
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
Pithlit
l33t
l33t


Joined: 27 Dec 2003
Posts: 887
Location: fuhen

PostPosted: Sat Apr 16, 2005 3:16 pm    Post subject: Reply with quote

Copy the binary to your / and untar it.
_________________
If someone solves a problem for you say thanks... and put [SOLVED] in the title!
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Sat Apr 16, 2005 3:19 pm    Post subject: Reply with quote

Ok. Then,
Code:

wget http://dev.gentoo.org/~avenj/bins/i686/gcc-3.3.4-r1.tbz2
tar -xvjf gcc-3.3.4-r1.tbz2 -C /

Instructions are from http://dev.gentoo.org/~avenj/bins/README
I think neither wget nor tar links against libstdc++ so they should still work.
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Sat Apr 16, 2005 3:28 pm    Post subject: Reply with quote

Code:
gcc-config i686-pc-linux-gnu-3.3.4
spews out 6 errors, 5 times the python error i posted above one:
Code:
/usr/bin/gcc-config: Could net get portage CHOST
after a source /etc/profile, emerge still isn't up.

btw, thx for not giving up on me, between all the code and suggenstions i often forget to be human :)
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
Pithlit
l33t
l33t


Joined: 27 Dec 2003
Posts: 887
Location: fuhen

PostPosted: Sat Apr 16, 2005 3:42 pm    Post subject: Reply with quote

You don't need emerge for installing binaries.
_________________
If someone solves a problem for you say thanks... and put [SOLVED] in the title!
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Sat Apr 16, 2005 3:44 pm    Post subject: Reply with quote

Quote:

btw, thx for not giving up on me, between all the code and suggenstions i often forget to be human

Don't worry ;) The worst thing that can happen is reinstall, and you can keep /home and make.conf so there is nothing ot fear :wink: And sorry for getting you in this hole in the first place.

Ok... somewhat logical. To get the symlinks in place you need to have ran gcc-config which needs the symlinks. Chicken and egg problem.

On my machine I have
Code:

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.3-20050110/libstdc++.so
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.3-20050110/libstdc++.so.6
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.3-20050110/libstdc++.so.6.0.3


You should have a libstc++ in the analogous 3.3.4 location.
1) Do you have it ?
2) Is it version >= 6
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Sat Apr 16, 2005 4:06 pm    Post subject: Reply with quote

ok, i have:
Code:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5.0.6

And
Code:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.so
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.so.5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.so.5.0.7


P.S. i don't like to fall in a hole, but i do like climbing out and getting on top.
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Sat Apr 16, 2005 4:13 pm    Post subject: Reply with quote

Shit ! And portage is linked against 6 !
Ok, I see two ways out of this:

1)
Code:

# you may also try with the 3.3.5 version
cp /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5.0.6 /lib/libstdc++.so.6
ldconfig

And see if portage comes back. Most probable result is a segfault, but why not try it.
EDIT: if segfaults , rm /lib/libstdc++.so.6 ( the file we created ) and ldconfig.

2)
Get some dude on athlon-xp to mail you his libstdc++.so.6 and put it in.
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Sat Apr 16, 2005 4:25 pm    Post subject: Reply with quote

Ok, i assumed that u meant 3.3.4 insted of 3.3.5 inside the code blok.

I did a emerge --info, and that worked, also equery worked too.

although emerge -Cp gcc* doesn't see the 3.3.4 version.
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Sat Apr 16, 2005 4:29 pm    Post subject: Reply with quote

Quote:

although emerge -Cp gcc* doesn't see the 3.3.4 version.

What do you mean ? Please post the exact error.
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Sat Apr 16, 2005 4:31 pm    Post subject: Reply with quote

there's no error.

when i do a:
Code:
equery list gcc

i only see gcc.3.3.5 and gcc-config.
i don't see the gcc 3.3.4 (binary) i installed.

Should i re-emerge gcc-3.4.3 now?
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Sat Apr 16, 2005 4:33 pm    Post subject: Reply with quote

Quote:

i don't see the gcc 3.3.4 (binary) i installed.

Naturall. Portage knows only about packages installed through portage. We just extracted a tarball...

Quote:

Should i re-emerge gcc-3.4.3 now?

Yep.
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Sat Apr 16, 2005 4:38 pm    Post subject: Reply with quote

how can i remove the binary, then? after 3.4.3 has merged offcourse.
well lets not but the cariage before the horse, and wait untill it finishes.
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
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