Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc-3.3.2-r5 not updating LDPATH correctly? emerge broke
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
mikemxyzzy
n00b
n00b


Joined: 06 Jan 2004
Posts: 6
Location: Near Madison, WI USA

PostPosted: Sat Feb 07, 2004 1:59 pm    Post subject: gcc-3.3.2-r5 not updating LDPATH correctly? emerge broke Reply with quote

I emerged gcc this morning to update from 3.2.3 to 3.3.2-r5, and after it finished emerge would get a python error like this:

Code:

/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory


etc-update would get this error:

Code:

/usr/bin/python: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory


I tracked it back to /etc/env.d/05gcc, which had both the 3.2.3 and 3.3.2 paths in the LDPATH variable. It sees that not finding the 3.2.3 directory was causing library loading to quit. I removed the 3.2.3 directory from LDPATH and everything seems to work.

Is there a problem with the ebuild for gcc 3.3.2-r5? Shouldn't it be removing the 3.2.3 path from LDPATH?
Code:
Back to top
View user's profile Send private message
gurke
Apprentice
Apprentice


Joined: 10 Jul 2003
Posts: 260

PostPosted: Sat Feb 07, 2004 2:12 pm    Post subject: Reply with quote

try
Code:
ldconfig
this solved it for me. there also is another post for this problem here in the forum.
Back to top
View user's profile Send private message
Joebel
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jun 2003
Posts: 119
Location: Netherlands

PostPosted: Sat Feb 07, 2004 2:54 pm    Post subject: Reply with quote

Just had the exact same thing. Darn!
:evil:

Solved it by commenting the line /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3 in /etc/ld.so.conf and updating the cache with ldconfig.

Seems the ebuild is indeed missing some cleanup steps!
Back to top
View user's profile Send private message
xlyz
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1470
Location: Italy

PostPosted: Sat Feb 07, 2004 3:43 pm    Post subject: Reply with quote

gurke wrote:
try
Code:
ldconfig
this solved it for me. there also is another post for this problem here in the forum.

you saved my day :D

THANK YOU!!!
Back to top
View user's profile Send private message
cryos
Retired Dev
Retired Dev


Joined: 08 Mar 2003
Posts: 242
Location: US

PostPosted: Sat Feb 07, 2004 5:43 pm    Post subject: Reply with quote

Thanks for the advice! emerge just died after emerging gcc 3.3.2-r5 with the same error. I only had to run ldconfig to fix it, and all is back to normal. For a second I thought python was dead and I wouldn't be able to do anything without resorting to the LiveCD and a rescue!

May be the ebuild could be updated to run ldconfig for others?
Back to top
View user's profile Send private message
mikemxyzzy
n00b
n00b


Joined: 06 Jan 2004
Posts: 6
Location: Near Madison, WI USA

PostPosted: Sat Feb 07, 2004 10:30 pm    Post subject: Reply with quote

ldconfig would give me an error about the gcc 3.2.3 path. Try:

Code:

ldconfig -v | grep gcc


and see if you see it reporting an error for the gcc 3.2.3 path. I traced that to /etc/env.d/05gcc and the extra path.
Back to top
View user's profile Send private message
d0wn_under
Guru
Guru


Joined: 13 Mar 2003
Posts: 300
Location: Sheffield, England

PostPosted: Sat Feb 07, 2004 11:37 pm    Post subject: not quite a fix for me Reply with quote

I tried an ldconfig but I got ...
ldconfig: /usr/lib/libstdc++-libc6.1-1.so.2 is not a symbolic link

any solutions
Back to top
View user's profile Send private message
XiuX
n00b
n00b


Joined: 22 Jan 2004
Posts: 59
Location: Linux

PostPosted: Sun Feb 08, 2004 12:04 am    Post subject: Nota: Se pueden aplicar estilos rapidamente al texto selecci Reply with quote

thx !!! :* I had the same problem, ;)
_________________
[URL=http://xiux.wordpress.com]Blog[URL]
Back to top
View user's profile Send private message
Clansman
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 140

PostPosted: Sun Feb 08, 2004 12:09 am    Post subject: Reply with quote

it happened to me today.

i went to /usr/lib/gcc-lib/i686.../ and symlinked 3.3.2 to 3.2.3 it fixed the problem. i reemerged python with hope that it chenged the library locations (with a lot of disbelieve) and it did not work.

later i saw this topic, changed the /etc/env.d/05gcc and 'ldconfig'd.

it works ok now. maybe the gcc ebuild has somethiing bad in it... is there a bug report associated with this?

[]
Back to top
View user's profile Send private message
hal9000
n00b
n00b


Joined: 18 May 2003
Posts: 21
Location: Berlin, Germany

PostPosted: Sun Feb 08, 2004 11:47 am    Post subject: ldconfig is my friend, too Reply with quote

worked like a lucky charm :P
Back to top
View user's profile Send private message
ZuNBiD
n00b
n00b


Joined: 17 Oct 2002
Posts: 22
Location: Portugal

PostPosted: Sun Feb 08, 2004 11:50 am    Post subject: Reply with quote

I love gentoo comunity !! :D

thanks to all

same problem, same solution ! NICE
Back to top
View user's profile Send private message
CeK
n00b
n00b


Joined: 08 Feb 2004
Posts: 5
Location: Barcelona/Catalonia/Spain

PostPosted: Sun Feb 08, 2004 12:53 pm    Post subject: Reply with quote

Hi! & thx all, U'r the best of the best.
Kick ass community, fixed the problem for me!!! :wink:
_________________
CIAO!
CeK!
Back to top
View user's profile Send private message
dabooty
Guru
Guru


Joined: 15 May 2003
Posts: 482
Location: Belgium

PostPosted: Sun Feb 08, 2004 3:37 pm    Post subject: Reply with quote

yeah baby

i feared i totally wrecked my install and was gonne spend the rest of the day figuring out how to fix it, but this 5 min solution could not be found on google.
These boards are great.
_________________
registered user #284425
get yourself counted
http://counter.li.org
------
#emerge -pv solves a lot of questions beforehand
Back to top
View user's profile Send private message
brightblack
n00b
n00b


Joined: 07 Feb 2004
Posts: 1

PostPosted: Sun Feb 08, 2004 4:07 pm    Post subject: emerge issues Reply with quote

Yup, 'ldconfig' worked for me too. Thanks all. Keeps my faith in Gentoo alive and well.
Back to top
View user's profile Send private message
Specis
n00b
n00b


Joined: 01 Feb 2004
Posts: 3
Location: Scotland

PostPosted: Sun Feb 08, 2004 4:23 pm    Post subject: Reply with quote

phew, had the same problem on one of my machines too :D ldconfig fixed it for me :D
Back to top
View user's profile Send private message
JuNix
Apprentice
Apprentice


Joined: 05 Mar 2003
Posts: 224
Location: Sheffield

PostPosted: Sun Feb 08, 2004 5:12 pm    Post subject: Reply with quote

Yeah I was worried too when the same thing happened. I fixed mine by copying the missing libraries into /usr/lib, but yours seems to be a more elegant solution so I'll do that instead.

I love Gentoo, and I appreciate the efforts of all the developers, but I can't help feeling a but put off by the fact that occasionally, I end up with a showstopping problem. If Windows Update did the same thing I'm sure people would bitch and moan endlessly. (Ok, crap comparison)

More stringent ebuild testing needed. Hey, at least this way I get to seriously improve my Linux knowledge. There's a plus side to everything.
Back to top
View user's profile Send private message
mccubbin
n00b
n00b


Joined: 27 Oct 2003
Posts: 32

PostPosted: Sun Feb 08, 2004 5:40 pm    Post subject: THANKS!!! Reply with quote

I'm glad there are some REAL programmers out there :-) Thanks to everyone for this tip!! It saved my butt big-time!
_________________
John McCubbin
Back to top
View user's profile Send private message
Miwer
n00b
n00b


Joined: 27 Aug 2003
Posts: 24
Location: Copenhagen, Denmark

PostPosted: Sun Feb 08, 2004 5:51 pm    Post subject: Reply with quote

Worked for me too ;)

thought it was caused by my CTRL-C on an `emerge -u system` - thank god it wasn't.

I don't know if that's generally a bad thing to do, but what the hell... I took the chance.
Back to top
View user's profile Send private message
anthonyr
n00b
n00b


Joined: 28 Jan 2004
Posts: 26
Location: Calgary

PostPosted: Sun Feb 08, 2004 7:10 pm    Post subject: no problems Reply with quote

Just another "me too" post so the people that didn't have a problem are more accurately represented.

ldconfig worked fine for me.
Back to top
View user's profile Send private message
jeffbuttars
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2003
Posts: 79
Location: Boise, ID

PostPosted: Sun Feb 08, 2004 7:23 pm    Post subject: No Go for me. Reply with quote

Editing /etc/env.d/05gcc did not work and running 'ldconfig' has not worked. I can't compile anything on my system and things aren't running so well. I don't know what to do from here. Help anyone?
Back to top
View user's profile Send private message
jeffbuttars
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2003
Posts: 79
Location: Boise, ID

PostPosted: Sun Feb 08, 2004 7:47 pm    Post subject: More info Reply with quote

Here is output from a compile attempt. This what I get any time I compile something:

gcc -DIN_GCC -O -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -o genconstants \
genconstants.o rtl.o read-rtl.o bitmap.o ggc-none.o gensupport.o errors.o ../libiberty/libiberty.a
read-rtl.o(.text+0x17): In function `fatal_with_file_and_line':
: undefined reference to `__builtin_va_start'
gensupport.o(.text+0x17): In function `message_with_line':
: undefined reference to `__builtin_va_start'
errors.o(.text+0x17): In function `warning':
: undefined reference to `__builtin_va_start'
errors.o(.text+0x98): In function `error':
: undefined reference to `__builtin_va_start'
errors.o(.text+0x123): In function `fatal':
: undefined reference to `__builtin_va_start'
errors.o(.text+0x1a6): more undefined references to `__builtin_va_start' follow
collect2: ld returned 1 exit status
distcc[20892] ERROR: compile on localhost failed
make[2]: *** [genconstants] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r4/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r4/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.2.3-r4 failed.
!!! Function src_compile, Line 411, Exitcode 2
!!! (no error message)

Calculating dependencies  ...done!
>>> emerge (1 of 1) sys-devel/gcc-3.2.3-r4 to /
>>> md5 src_uri ;-) gcc-3.2.3.tar.bz2
>>> md5 src_uri ;-) protector-3.2.2-10.tar.gz
>>> md5 src_uri ;-) gcc-3.2.3-manpages.tar.bz2
>>> md5 src_uri ;-) gcc-3.2.3-tls-update.patch.bz2
]1;]2; *** terminating.]1;]2;xterm
Back to top
View user's profile Send private message
anthonyr
n00b
n00b


Joined: 28 Jan 2004
Posts: 26
Location: Calgary

PostPosted: Sun Feb 08, 2004 7:53 pm    Post subject: Reply with quote

JuNix wrote:
I love Gentoo, and I appreciate the efforts of all the developers, but I can't help feeling a but put off by the fact that occasionally, I end up with a showstopping problem. If Windows Update did the same thing I'm sure people would bitch and moan endlessly. (Ok, crap comparison)

More stringent ebuild testing needed. Hey, at least this way I get to seriously improve my Linux knowledge. There's a plus side to everything.


Debian is there for a reason.

On Gentoo, it's a fact of life that you do a "emerge -up world" before a "emerge -u world", and when anything that looks dangerous (python (used by portage), gcc, glibc, and so on) is going to get updated, you check the forums before you do it.

Gentoo rocks because it can update non-trivial parts of the system with a large amount of automation, but it does place more of a burden on the user. emerge will almost always print a warning in yellow that tells you about anything you need to do in addition to the emerge, but there are times you need to do a little extra.
Back to top
View user's profile Send private message
jeffbuttars
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2003
Posts: 79
Location: Boise, ID

PostPosted: Sun Feb 08, 2004 8:47 pm    Post subject: distcc Reply with quote

I removed distcc from the FEATURES list in make.conf and voila! I am a compilin. Does any know why distcc in combination with upgrading gcc would cause such a problem? I will explore this more myselft and post any answers.
Back to top
View user's profile Send private message
GenKiller
n00b
n00b


Joined: 04 Mar 2003
Posts: 66
Location: United States of America

PostPosted: Sun Feb 08, 2004 9:35 pm    Post subject: Re: distcc Reply with quote

jeffbuttars wrote:
I removed distcc from the FEATURES list in make.conf and voila! I am a compilin. Does any know why distcc in combination with upgrading gcc would cause such a problem? I will explore this more myselft and post any answers.


Make sure that all hosts have the same gcc version (run `gcc --version` to find out)

If you haven't upgraded all hosts to 3.3.2, you will have a lot of errors!
_________________
http://www.digital-drip.com
Back to top
View user's profile Send private message
mlsfit138
Guru
Guru


Joined: 20 Sep 2003
Posts: 406
Location: Washington

PostPosted: Sun Feb 08, 2004 9:46 pm    Post subject: Reply with quote

Oh thank god! My system is saved. I thought it was cooked (right after I merged kde3.2!)

I couldn't start kde, so I started ob3, then firebird & konq wouldn't start (I was starting to think I wouldn't be able to make it to the forum). Then finally I found 2 apps that would work: xterm, and elinks. From there I found this thread, which saved my system!
_________________
"Everytime you justify
another good in you dies"

-Converge, The Saddest Day, Petitioning the Empty Sky
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