Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
after gcc-3.4.3 emerge, emerge itself won't work anymore
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
eniacght
n00b
n00b


Joined: 01 Mar 2005
Posts: 42
Location: Bremen

PostPosted: Thu Jun 02, 2005 6:55 pm    Post subject: after gcc-3.4.3 emerge, emerge itself won't work anymore Reply with quote

Hi,

i've just emerged gcc-3.4.3. Now my hole system seems to be trouble. I cannot emerge anything, everytime i get
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

I tried with the livecd and chroot into my system. But still the same problem. Any ideas, how i can get my system to work again?

Thanks,
Henning
Back to top
View user's profile Send private message
bkunlimited
l33t
l33t


Joined: 18 Jun 2004
Posts: 672

PostPosted: Thu Jun 02, 2005 7:09 pm    Post subject: Reply with quote

try
Code:
fix_libtool_files.sh 3.4.3


maybe this helps...
Back to top
View user's profile Send private message
eniacght
n00b
n00b


Joined: 01 Mar 2005
Posts: 42
Location: Bremen

PostPosted: Thu Jun 02, 2005 7:20 pm    Post subject: Reply with quote

I just run the command and says it fixes and fixes ... mostly kde ...

After that emerge still won't work.

I've also tried gcc-config x86_64-pc-linux-gnu-3.4.3 which tells me, that it can't locate that file in /etc/env.d/gcc/
In that folder are just all files for 3.4.2 and for 3.4.4. Now i'm wondering, as i never emerged a 3.4.4. I checked /var/tmp/portage, which says, i've emerged a gcc-3.4.3-20050110-r2
I think emerge messed something nasty up.
Back to top
View user's profile Send private message
eniacght
n00b
n00b


Joined: 01 Mar 2005
Posts: 42
Location: Bremen

PostPosted: Thu Jun 02, 2005 7:27 pm    Post subject: Reply with quote

Ok, now it starts to be quiet strange.

I ran find to search for libstdc++.so.6 and it was found under /usr/lib/gcc-lib/x86_64-linux-gnu-3.4.2 and 3.4.4, so i tried to switch to 3.4.4 with gcc-config. That command tells me, it can't find libstdc++.so.6

Now, i'm stuck. The program that is supposed to fix the problem, is also hit by the problem ...
Back to top
View user's profile Send private message
AlfaGTV
n00b
n00b


Joined: 26 Jul 2003
Posts: 57
Location: Belgium

PostPosted: Thu Jun 02, 2005 8:17 pm    Post subject: Reply with quote

I have the same problem, just did an emerge -uDv world and my system is borked.
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

edit:

I can't select a gcc version anymore

root@DUAL-ATHLON3 mathias # gcc-config -l
[1] i686-pc-linux-gnu-3.3.4
[2] i686-pc-linux-gnu-3.4.4
[3] i686-pc-linux-gnu-3.4.4-hardened
[4] i686-pc-linux-gnu-3.4.4-hardenednopie
[5] i686-pc-linux-gnu-3.4.4-hardenednopiessp
[6] i686-pc-linux-gnu-3.4.4-hardenednossp

root@DUAL-ATHLON3 mathias # gcc-config i686-pc-linux-gnu-3.4.4
* Switching to i686-pc-linux-gnu-3.4.4 compiler...
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
* /usr/bin/gcc-config: Could not get portage CHOST!
/usr/bin/gcc-config: line 1: env: command not found
* /usr/bin/gcc-config: Could not get portage CHOST!
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
* /usr/bin/gcc-config: Could not get portage CHOST!
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
* /usr/bin/gcc-config: Could not get portage CHOST!
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
* /usr/bin/gcc-config: Could not get portage CHOST! [ ok ]
_________________
Cuore Sportivo
Back to top
View user's profile Send private message
RaZoR1394
Guru
Guru


Joined: 09 Jan 2005
Posts: 356

PostPosted: Thu Jun 02, 2005 8:25 pm    Post subject: Reply with quote

Same problem here too with a ~x86 installation after updating world. In my case I upgraded too GCC 3.4.4 from 3.4.3. I have recently upgraded my ~amd64 to GCC 3.4.4 without any problems.

I would be very grateful if anyone finds a solution. I've tried fix_libtool_files.sh 3.4.4. The env-update command won't work and I´ve tried "source /etc/profile".
Back to top
View user's profile Send private message
BeesTea
n00b
n00b


Joined: 17 May 2003
Posts: 4

PostPosted: Thu Jun 02, 2005 8:35 pm    Post subject: Reply with quote

Here's a quick fix.

# ln -s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 /lib/libstdc++.so.6

# env-update

# gcc-config i686-pc-linux-gnu-3.4.4

# fix_libtool_files.sh 3.4.3

# source /etc/profile

# rm /lib/libstdc++.so.6

#EDIT change 3.4.4 to 3.4.3 and 3.4.3 to 3.whatever.you.had.before if you ran into the problem moving to 3.4.3 and not 3.4.4
Back to top
View user's profile Send private message
mac_bain
n00b
n00b


Joined: 20 Mar 2005
Posts: 5

PostPosted: Thu Jun 02, 2005 8:42 pm    Post subject: Reply with quote

Hi,
this solved the problem for me:

1. ln -s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 /usr/lib/libstdc++.so.6
2. gcc-config 1
3. fix_libtool_files.sh 3.4.4
4. fix_libtool_files.sh 3.4.3

Now you are able to switch to another gcc-config again.
See gcc-config -l.
Hope that helps.
chris

BeesTea solution wasn't online when I added mine.


Last edited by mac_bain on Thu Jun 02, 2005 8:55 pm; edited 2 times in total
Back to top
View user's profile Send private message
AlfaGTV
n00b
n00b


Joined: 26 Jul 2003
Posts: 57
Location: Belgium

PostPosted: Thu Jun 02, 2005 8:42 pm    Post subject: Reply with quote

BeesTea wrote:
Here's a quick fix.

# ln -s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 /lib/libstdc++.so.6

# env-update

# gcc-config i686-pc-linux-gnu-3.4.4

# fix_libtool_files.sh 3.4.3

# source /etc/profile

# rm /lib/libstdc++.so.6

#EDIT change 3.4.4 to 3.4.3 and 3.4.3 to 3.whatever.you.had.before if you ran into the problem moving to 3.4.3 and not 3.4.4


Thank you very much, fixed my problem :)
_________________
Cuore Sportivo
Back to top
View user's profile Send private message
RaZoR1394
Guru
Guru


Joined: 09 Jan 2005
Posts: 356

PostPosted: Thu Jun 02, 2005 9:23 pm    Post subject: Reply with quote

BeesTea Thanks a lot. Your tip fixed it.

edit:

It should be 3.4.3-20050110 not 3.4.3 when doing fix_libtool...


Last edited by RaZoR1394 on Fri Jun 03, 2005 6:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
mac_bain
n00b
n00b


Joined: 20 Mar 2005
Posts: 5

PostPosted: Thu Jun 02, 2005 10:19 pm    Post subject: Reply with quote

Got a new problem here.

Wenn I use fix_libtool_files.sh 3.4.3 it seems like everything went fine.
The output shows which files have been fixed.
But when I use fix_libtool_files.sh 3.4.3 again there are the same fixing messages again.

When I try to emerge Kile I get this:
...
libtool: link: cannot find the library `//usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/libstdc++.la'
...
Seems like fix_libtool_files.sh did'nt get it's job done.
Does anyone know what to do?
Back to top
View user's profile Send private message
mac_bain
n00b
n00b


Joined: 20 Mar 2005
Posts: 5

PostPosted: Thu Jun 02, 2005 11:08 pm    Post subject: Reply with quote

Not my my day...
Must be fix_libtool_files.sh 3.4.3-20050110 not 3.4.3
Everything works now.
Sorry ...
Back to top
View user's profile Send private message
cold
n00b
n00b


Joined: 23 Feb 2003
Posts: 66

PostPosted: Fri Jun 03, 2005 12:24 am    Post subject: Reply with quote

I have the same problem But on AMD64

I chanched ln -s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 /lib/libstdc++.so.6
in

ln -s /usr/lib64/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 /lib/libstdc++.so.6
But I still can't run env-update
I also tried ln -sf /usr/lib64/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 /lib64/libstdc++.so.6
but with the same result


Edit:
I was sleping :( it had to be ln -s /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/libstdc++.so.6 /lib64/libstdc++.so.6
Back to top
View user's profile Send private message
gigs_42
n00b
n00b


Joined: 19 Apr 2003
Posts: 46
Location: Colorado

PostPosted: Fri Jun 03, 2005 4:32 am    Post subject: Reply with quote

Here's another one of the same problem...upgrading world borked everything. However, in my case, I can't really run anything that seemed to work for everyone else on this post. fix_libtool_files.sh failed, as does env-update after linking as beestea suggested. I always get that same message:
Code:
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

Please note that I'm missing libstdc++.so.5, rather than 6, like everyone else. Any more ideas?
_________________
I like grapes.
Back to top
View user's profile Send private message
sixofseven
n00b
n00b


Joined: 08 Mar 2004
Posts: 20

PostPosted: Fri Jun 03, 2005 5:48 am    Post subject: Reply with quote

[quote="mac_bain"]Hi,
this solved the problem for me:

1. ln -s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 /usr/lib/libstdc++.so.6
2. gcc-config 1
3. fix_libtool_files.sh 3.4.4
4. fix_libtool_files.sh 3.4.3-20050110

Now you are able to switch to another gcc-config again.
See gcc-config -l.
[/quote]

Thank you ... This saved my day!
Back to top
View user's profile Send private message
John-Boy
Guru
Guru


Joined: 23 Jun 2004
Posts: 442
Location: Desperately seeking moksha in all the wrong places

PostPosted: Fri Jun 03, 2005 7:09 am    Post subject: Reply with quote

BeasTea - thanks, that helped me out as well.

I was about to start rebuilding my toolchain when I got hit with this, should I wait for Portage to fix whatever causes this, or continue - and apply the fix at the end of each emerge of gcc ? I'm assuming that I'd need to ..
_________________
Like the Roman, I seem to see "the River Tiber foaming with much blood"
Back to top
View user's profile Send private message
thomasando
Tux's lil' helper
Tux's lil' helper


Joined: 05 Apr 2003
Posts: 94

PostPosted: Fri Jun 03, 2005 10:34 am    Post subject: Reply with quote

mac_bain wrote:
Hi,
this solved the problem for me:

1. ln -s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 /usr/lib/libstdc++.so.6
2. gcc-config 1
3. fix_libtool_files.sh 3.4.4
4. fix_libtool_files.sh 3.4.3-20050110

Now you are able to switch to another gcc-config again.
See gcc-config -l.


Lifesaver!
Back to top
View user's profile Send private message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Fri Jun 03, 2005 11:11 am    Post subject: Reply with quote

thomasando wrote:
mac_bain wrote:
Hi,
this solved the problem for me:

1. ln -s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 /usr/lib/libstdc++.so.6
2. gcc-config 1
3. fix_libtool_files.sh 3.4.4
4. fix_libtool_files.sh 3.4.3-20050110

Now you are able to switch to another gcc-config again.
See gcc-config -l.


Lifesaver!


Godmode! Thanks!
Every Time, when something like this happens.
I swear, i will not use testing.

Ten hours later...hm, Wirkless-Support, and this cool new program...~x86 :D
_________________
Just you and me strogg!
Back to top
View user's profile Send private message
chratnox
n00b
n00b


Joined: 04 Aug 2004
Posts: 11
Location: Netherlands

PostPosted: Fri Jun 03, 2005 11:49 am    Post subject: Reply with quote

hoschi wrote:
thomasando wrote:
mac_bain wrote:
Hi,
this solved the problem for me:

1. ln -s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 /usr/lib/libstdc++.so.6
2. gcc-config 1
3. fix_libtool_files.sh 3.4.4
4. fix_libtool_files.sh 3.4.3-20050110

Now you are able to switch to another gcc-config again.
See gcc-config -l.


Lifesaver!


Godmode! Thanks!
Every Time, when something like this happens.
I swear, i will not use testing.

Ten hours later...hm, Wirkless-Support, and this cool new program...~x86 :D


Then why don't you just put that one package in package.keywords? :>
Back to top
View user's profile Send private message
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Fri Jun 03, 2005 12:26 pm    Post subject: Reply with quote

Hi,

I have the same problem but I even can not do
Code:
gcc-config 1

I get this output
Code:
* Switching to i686-pc-linux-gnu-3.3.5 compiler ...
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
 * /usr/bin/gcc-config: Could not get portage CHOST!
/usr/bin/gcc-config: line 81: env: command not found
 * /usr/bin/gcc-config: Could not get portage CHOST!
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
 * /usr/bin/gcc-config: Could not get portage CHOST!
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
 * /usr/bin/gcc-config: Could not get portage CHOST!
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
 * /usr/bin/gcc-config: Could not get portage CHOST!


I linked the requested shared object to /usr/lib/libstdc++.so.6
But can not find this library.

Can anyone help me.

Thanks
menschmeier
_________________
Please notice the back of this message.
Back to top
View user's profile Send private message
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Fri Jun 03, 2005 12:39 pm    Post subject: Reply with quote

Ok,

I ignored the errors and continue, now gcc seems to work, but gcc-config always complains when I try to set an other gcc version ...

menschmeier
_________________
Please notice the back of this message.
Back to top
View user's profile Send private message
synapseattack
n00b
n00b


Joined: 25 Nov 2004
Posts: 13
Location: New Jersey

PostPosted: Fri Jun 03, 2005 5:45 pm    Post subject: Reply with quote

I have a simular problem... I did a emerge --update world this morning and now i am having all kinds of problems.

AMD64 3.4.4 # emerge sync
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

ls -l /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/libstdc++.so.6.0.3
-rwxr-xr-x 1 root root 0 Jun 3 07:42 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/libstdc++.so.6.0.3

ls -l /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/libstdc++.so.6
lrwxrwxrwx 1 root root 18 Jun 3 05:36 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/libstdc++.so.6 -> libstdc++.so.6.0.3

ls -l /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/libstdc++.so
lrwxrwxrwx 1 root root 18 Jun 3 05:36 libstdc++.so -> libstdc++.so.6.0.3

The file is basically empty so the two pointers to the file are pointing, for all intents and purposes, to nothing. I am guessing I need to find a way to either download them from the net or something. But I don't want to do the wrong thing and screw the system up more. I searched the web and found references 3.4.3 problems that are simular but not exactly the same thing. Has anyone run accross this before. Any hints on what to do next?
_________________
~Syn
Back to top
View user's profile Send private message
RaZoR1394
Guru
Guru


Joined: 09 Jan 2005
Posts: 356

PostPosted: Fri Jun 03, 2005 6:12 pm    Post subject: Reply with quote

As I said before emerge started working after using BeesTea's fix but it broke just when make'ing the first package (kdelibs) throwing me the "libstdc++.la - Not a valid libtool archive" error. I followed the FAQ for that error and none of the recommended fixes worked so I had to make a 3.4.3 symlink to the the 3.4.4 dir under /usr/lib/gcc/i686-pc-linux-gnu which wasn't recommended.

Here's the FAQ I followed.
Back to top
View user's profile Send private message
synapseattack
n00b
n00b


Joined: 25 Nov 2004
Posts: 13
Location: New Jersey

PostPosted: Fri Jun 03, 2005 6:54 pm    Post subject: Reply with quote

RaZoR1394 wrote:
As I said before emerge started working after using BeesTea's fix but it broke just when make'ing the first package (kdelibs) throwing me the "libstdc++.la - Not a valid libtool archive" error. I followed the FAQ for that error and none of the recommended fixes worked so I had to make a 3.4.3 symlink to the the 3.4.4 dir under /usr/lib/gcc/i686-pc-linux-gnu which wasn't recommended.

Here's the FAQ I followed.


# fix_libtool_files.sh x86_64-pc-linux-gnu-3.4.4
* Scanning libtool files for hardcoded gcc library paths...
* [1/9] Scanning /lib ...
* [2/9] Scanning /usr/lib ...
* [3/9] Scanning /emul/linux/x86/lib ...
* [4/9] Scanning /emul/linux/x86/usr/lib ...
* [5/9] Scanning /opt/ibm-jdk-bin-1.4.2/jre/bin ...
* [6/9] Scanning /usr/kde/3.4/lib ...
* [7/9] Scanning /usr/local/lib ...
* [8/9] Scanning /usr/qt/3/lib ...
* [9/9] Scanning /usr/x86_64-pc-linux-gnu/lib ...

Looks good....

# emerge sync
/usr/bin/python: error while loading shared libraries: /usr/lib64/libstdc++.so.6: file too short

Still didn't help correctly

I also took a look at
Code:
ln -sf /usr/lib/gcc/${CHOST} /usr/${ERROR_ROOT_DIRECTORY}/${CHOST}/${GCC_VERSION}


But what unsure exactly how to do it. ${ERROR_ROOT_DIRECTORY} is what for my error? I would perfer not to do it this way as it really only masks the problem.
_________________
~Syn
Back to top
View user's profile Send private message
red-wolf76
l33t
l33t


Joined: 13 Apr 2005
Posts: 714
Location: Rhein-Main Area

PostPosted: Fri Jun 03, 2005 7:04 pm    Post subject: Reply with quote

BeesTea wrote:
Here's a quick fix.

# ln -s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 /lib/libstdc++.so.6
# env-update
# gcc-config i686-pc-linux-gnu-3.4.4
# fix_libtool_files.sh 3.4.3
# source /etc/profile
# rm /lib/libstdc++.so.6
This worked like a charm, even though I had to do
Code:
# ln -s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6.0.3 /lib/libstdc++.so.6

I guess I somehow incurred losage of my libstdc++.so.6. :roll:
_________________
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
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