Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
After upgrading gcc, libstdc++.so.5 no longer exists
View unanswered posts
View posts from last 24 hours

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


Joined: 26 May 2002
Posts: 15
Location: Lisboa - Portugal

PostPosted: Wed Mar 16, 2005 8:51 pm    Post subject: Reply with quote

Code:
wget http://dev.gentoo.org/~azarah/bins/amd64/gcc-3.4.3-r1.tbz2
--20:47:39--  http://dev.gentoo.org/%7Eazarah/bins/amd64/gcc-3.4.3-r1.tbz2
           => `gcc-3.4.3-r1.tbz2'
Resolving dev.gentoo.org... 134.68.220.30
Connecting to dev.gentoo.org[134.68.220.30]:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
20:47:39 ERROR 403: Forbidden.

Same error with all the other files.
Back to top
View user's profile Send private message
HiTech69
n00b
n00b


Joined: 11 Jul 2003
Posts: 12
Location: Wilmington, NC

PostPosted: Wed Mar 16, 2005 9:00 pm    Post subject: Re: libstdc++.so.6 missing after 3.4.3-20050110 Reply with quote

Maedhros wrote:
HiTech69 wrote:
That makes ma a sad panda. :cry: Hopefully someone will find me in this thread.

Well, there's already a fix (which doesn't involve hand-compiling). See the bug-report, and the post above your first one. :wink:


The one for my version will not download from the guys server...sent him an email.

Code:
Forbidden

You don't have permission to access /~azarah/bins/i586/gcc-3.4.3.20050110.tbz2 on this server.
Apache Server at dev.gentoo.org Port 80
Back to top
View user's profile Send private message
HiTech69
n00b
n00b


Joined: 11 Jul 2003
Posts: 12
Location: Wilmington, NC

PostPosted: Wed Mar 16, 2005 9:23 pm    Post subject: Reply with quote

Are there any other working links to binaries for 2.3.4-20050110 that are not listed in the ticket?
Back to top
View user's profile Send private message
spirinaites
n00b
n00b


Joined: 26 May 2002
Posts: 15
Location: Lisboa - Portugal

PostPosted: Wed Mar 16, 2005 9:34 pm    Post subject: Reply with quote

Permission problem solved. Now downloading.
Back to top
View user's profile Send private message
jonaswidarsson
Apprentice
Apprentice


Joined: 16 Jan 2004
Posts: 273
Location: Göteborg, Sweden

PostPosted: Wed Mar 16, 2005 9:40 pm    Post subject: Reply with quote

If you don't want to try the binary download:

I had problems getting emerge to run due to the missing stdc++.so.5 in my case.
I placed a symlink in /usr/lib to libstdc++.so.2.8.0 (not knowing anything about what it would break :roll:) but appearently it got python up runing again.

On the other hand, my python is a little old:
Python 2.3.3 (#1, May 1 2004, 17:08:24)
[GCC 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)] on linux2

But you couldn't break it worse than it already is, right?

Try it and see what happens.
emerge gcc and remove the symlink afterwards.
Back to top
View user's profile Send private message
NiLuJe
Guru
Guru


Joined: 06 Nov 2004
Posts: 303
Location: Paris, France

PostPosted: Wed Mar 16, 2005 9:47 pm    Post subject: Reply with quote

You can also google gcc-<insert-your-gcc-version-here>.tbz2 to find a binary gcc package ;)
Back to top
View user's profile Send private message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1221

PostPosted: Wed Mar 16, 2005 11:53 pm    Post subject: Reply with quote

What should one do with those amd64 binaries to cure his system?

https://bugs.gentoo.org/show_bug.cgi?id=85490

How to reemerge gcc if "emerge whatever" does not work (even emerge --version)?
_________________
gentoo user
Back to top
View user's profile Send private message
NiLuJe
Guru
Guru


Joined: 06 Nov 2004
Posts: 303
Location: Paris, France

PostPosted: Thu Mar 17, 2005 12:19 am    Post subject: Reply with quote

See the posts above, basically, extract it into a temp dir, copy the libstdc++ library into the right place in your live filesystem, redo the symlinks, and it should be good ;)
Back to top
View user's profile Send private message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1221

PostPosted: Thu Mar 17, 2005 2:46 am    Post subject: Reply with quote

Now when I try to recompile gcc I get stucked with this message:
Code:
creating cache ./config.cache
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking build system type... x86_64-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
*** This configuration is not supported in the following subdirectories:
     target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc
    (Any other directories should still work fine.)

Execution times (seconds)
 TOTAL                 :   0.00             0.00             0.01

and nothing happens...

Guess I'll never get my system back...


:cry:
_________________
gentoo user
Back to top
View user's profile Send private message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1221

PostPosted: Thu Mar 17, 2005 4:13 am    Post subject: Reply with quote

I've finaly managed to reemerge gcc: I had to copy all files from binary archive to my system and overwrite old ones.

Huh... :?
_________________
gentoo user
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Thu Mar 17, 2005 4:24 am    Post subject: Reply with quote

DONT EVERY DOWN GRADE GLIBC. If its just a 1 revision down possibalbly 2 it may not mess up your system but you should" emerge -e world". If you go "~x86" to "x86" it will bork your sytem. Now you can do it but you have to un-tar a stage1 or a stage2 in your "/".root directory,backup your "/etc" first.. With the stage1, bootstrap it . If you used a stage2 then you and the stage1 people, after they bootstrap, need to "emerge world -eD"
_________________
An A-Z Index of the Linux BASH command line


Last edited by hielvc on Thu Mar 17, 2005 4:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
kim_asplund
Tux's lil' helper
Tux's lil' helper


Joined: 23 Mar 2004
Posts: 92
Location: Finland

PostPosted: Thu Mar 17, 2005 6:54 am    Post subject: Reply with quote

NiLuJe wrote:
I simply changed

Code:
GCC_LANG="c"

to
Code:
GCC_LANG="c,c++"


line 946 of /usr/portage/eclass/toolchain.eclass

I recompiled gcc, and it was okay ;)

(Note that these changes won't survive after an emerge --sync ;) )


That did it for me :)
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Thu Mar 17, 2005 9:22 am    Post subject: Re: libstdc++.so.6 missing after 3.4.3-20050110 Reply with quote

Hi,

Maedhros wrote:
Well, there's already a fix (which doesn't involve hand-compiling). See the bug-report, and the post above your first one. :wink:


Well, wish I had seen the previous poster's comment on downgrading glibc :). After doing so, I borked the system and had to rebuild from scratch. I've got the system back up and running (lost my email, though nothing important was in my inbox). I basically re-installed almost everything from scratch. Everything seemed to emerge smoothly this time and I noticed that the toolchain.eclass file reflected the changes posted in the bugtracker, so I guess they were made permanent.

Thanks for everybody's help on this. Hopefully there won't be similar 'surprises' down the road!

The thing I love about linux is that, if the system screw up, it's always easy to figure out what happened as it inevitably winds up being your fault :).

Best,

Alex
Back to top
View user's profile Send private message
jonaswidarsson
Apprentice
Apprentice


Joined: 16 Jan 2004
Posts: 273
Location: Göteborg, Sweden

PostPosted: Thu Mar 17, 2005 10:09 am    Post subject: Re: libstdc++.so.6 missing after 3.4.3-20050110 Reply with quote

evoweiss wrote:
The thing I love about linux is that, if the system screw up, it's always easy to figure out what happened as it inevitably winds up being your fault :).
The thing I hate about windows is that, if the system screws up, it's always difficult to figure out what happened as it inevitably winds up being Bills fault. :)
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Thu Mar 17, 2005 8:01 pm    Post subject: Reply with quote

hielvc wrote:
DONT EVER DOWN GRADE GLIBC. If its just a 1 revision down possibalbly 2 it may not mess up your system but you should" emerge -e world". If you go "~x86" to "x86" it will bork your sytem.

I made the mistake of trying to intelligently migrate my main box from the testing branch back to the stable branch, though i did it by keeping the testing branch toolkit components. everything worked fine, until i rebuilt the system and world files. i seem to have gotten everything right, until i goofed up one of the many config files that needed updating and borked my system. i would have been better off just performing a clean install, but i did it for the challenge. will i ever learn? :roll:
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Thu Mar 17, 2005 8:08 pm    Post subject: Reply with quote

NiLuJe wrote:
Yeah, i had the same kind of problem .. ^^

Except that I use gcc-3.4.3, so it was libstdc++.so.6 ^^

me too. i have a box that got caught updating the toolkit when the ebuilds were b0rken, and now its so b0rked that i can't even emerge -sync.

<gripe>
ya know, its really hard to find threads like this one using search terms like "libstdc++.so.6", as terms like that don't get indexed. :(
</gripe>
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

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

I hate to say it, but doesn't anyone use backup/restore when there are major screwups?
mvh
_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Thu Mar 17, 2005 8:34 pm    Post subject: Reply with quote

Quote:
I hate to say it, but doesn't anyone use backup/restore when there are major screwups?


not on a system that's getting a de novo installation. :wink: when an installation/toolkit rebuild fails, i just grumble and start over, as no data is lost.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
andmetoo
n00b
n00b


Joined: 17 Mar 2005
Posts: 12
Location: London

PostPosted: Fri Mar 18, 2005 12:14 am    Post subject: Reply with quote

Can someone please explain for a complete beginner what the fix is. I tried wgetting gcc-3.3.4-r1.tbz2 and even simlinked the resulting libstdc++.so.5 to everywhere I could think of, but I still get
livecd / # emerge gentoo-dev-sources
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Error 40
and similar for 'man anything' etc...

I am trying to do a first time install using install-x86-minimal-2004.3-r1.iso and stage2. I am stuck, as you can see, at trying to install a kernel.
Back to top
View user's profile Send private message
nsilva
n00b
n00b


Joined: 17 Mar 2004
Posts: 21
Location: Purdue University

PostPosted: Sat Mar 19, 2005 6:52 pm    Post subject: Reply with quote

I follow the instruction of the bug #85490, and my system was back to be functional, rigth now
Im doing an emerge of GCC again, however, it does not make sense to me that it does not downloads any patches from the tree. It just take the sources (buggy) previously downloaded and compile them again.

I havent finish compiling gcc again, but im curious to know how that works.:?:
_________________
" I'm Fat but at least Im not a Window"

--Tux
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Sat Mar 19, 2005 7:11 pm    Post subject: Reply with quote

andmetoo wrote:
Can someone please explain for a complete beginner what the fix is. I tried wgetting gcc-3.3.4-r1.tbz2 and even simlinked the resulting libstdc++.so.5 to everywhere I could think of, but I still get
livecd / # emerge gentoo-dev-sources
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Error 40
and similar for 'man anything' etc...

Where did you extract it to? And which commands (exactly) did you use after that?

nsilva wrote:
Im doing an emerge of GCC again, however, it does not make sense to me that it does not downloads any patches from the tree. It just take the sources (buggy) previously downloaded and compile them again.

Ah, it uses the same sources, but the problem came about because the c++ parts of the sources weren't built last time. You don't necessarily have to use all of the sources to get a working programme - that's what USE flags are about, after all. :)
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
nsilva
n00b
n00b


Joined: 17 Mar 2004
Posts: 21
Location: Purdue University

PostPosted: Sat Mar 19, 2005 7:47 pm    Post subject: Reply with quote

Quote:

I follow the instruction of the bug #85490, and my system was back to be functional, rigth now
Im doing an emerge of GCC again, however, it does not make sense to me that it does not downloads any patches from the tree. It just take the sources (buggy) previously downloaded and compile them again.

I havent finish compiling gcc again, but im curious to know how that works.Question


I finish compiling gcc, libstd problem seems to be solved, however, Im still not getting g++. I delete the gcc sources from
/usr/portage/distfiles, re-emerged again, and nothing!!

My kde is meessed up, having errors with kdeinit, I suspect that is something to do with Qt, I was trying to emerged again, however, the lack of g++ is killing me.

Anyone having similar issues?
_________________
" I'm Fat but at least Im not a Window"

--Tux
Back to top
View user's profile Send private message
jonaswidarsson
Apprentice
Apprentice


Joined: 16 Jan 2004
Posts: 273
Location: Göteborg, Sweden

PostPosted: Sat Mar 19, 2005 8:09 pm    Post subject: Reply with quote

if you try "gcc -v" in a console, it should among the things mentioned say:

--enable-languages=c,c++,f77

or at least

--enable-languages=c,c++

if it does, then your problem is different from the other's in this thread.

however, if it says
--enable-languages=c,f77
or
--enable-languages=c

Then try the suggestions above. It should help.
Back to top
View user's profile Send private message
nsilva
n00b
n00b


Joined: 17 Mar 2004
Posts: 21
Location: Purdue University

PostPosted: Mon Mar 21, 2005 3:18 am    Post subject: Reply with quote

The trick work and my g++ is back to work,
Now things got messy because my KDE got messed up,
kde-config:/usr/lib/libstdc++.so.5: version "GLIC_2.0" not found required by /usr/qt/3/libqt-mt.so.3
kde-config:/usr/lib/libstdc++.so.5: version "GCC_3.3" not found required by /usr/qt/3/libqt-mt.so.3

Similarly error were found by kreadconfig, ksplash, kdeinit
When the X is launched it says kdeinit was unable to start

[/code]
_________________
" I'm Fat but at least Im not a Window"

--Tux
Back to top
View user's profile Send private message
zeek
Guru
Guru


Joined: 16 Nov 2002
Posts: 480
Location: Bantayan Island

PostPosted: Sun Jun 05, 2005 3:34 am    Post subject: Reply with quote

Ran into this:
Code:
 * Scanning libtool files for hardcoded gcc library paths...
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
:0: assertion failed: (/usr/bin/portageq envvar 'CHOST') | getline CHOST


This old post got me going again: https://forums.gentoo.org/viewtopic.php?t=131129

The solution:
Code:

cd /usr/lib/gcc-lib/i686-pc-linux-gnu/
ln -s 3.3.5-20050130 3.3.5
LD_LIBRARY_PATH=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5 env-update
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 Previous  1, 2, 3  Next
Page 2 of 3

 
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