View previous topic :: View next topic |
Author |
Message |
mikemxyzzy n00b
Joined: 06 Jan 2004 Posts: 6 Location: Near Madison, WI USA
|
Posted: Sat Feb 07, 2004 1:59 pm Post subject: gcc-3.3.2-r5 not updating LDPATH correctly? emerge broke |
|
|
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? |
|
Back to top |
|
|
gurke Apprentice
Joined: 10 Jul 2003 Posts: 260
|
Posted: Sat Feb 07, 2004 2:12 pm Post subject: |
|
|
trythis solved it for me. there also is another post for this problem here in the forum. |
|
Back to top |
|
|
Joebel Tux's lil' helper
Joined: 29 Jun 2003 Posts: 119 Location: Netherlands
|
Posted: Sat Feb 07, 2004 2:54 pm Post subject: |
|
|
Just had the exact same thing. Darn!
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 |
|
|
xlyz Veteran
Joined: 27 Oct 2002 Posts: 1470 Location: Italy
|
Posted: Sat Feb 07, 2004 3:43 pm Post subject: |
|
|
gurke wrote: | trythis solved it for me. there also is another post for this problem here in the forum. |
you saved my day
THANK YOU!!! |
|
Back to top |
|
|
cryos Retired Dev
Joined: 08 Mar 2003 Posts: 242 Location: US
|
Posted: Sat Feb 07, 2004 5:43 pm Post subject: |
|
|
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 |
|
|
mikemxyzzy n00b
Joined: 06 Jan 2004 Posts: 6 Location: Near Madison, WI USA
|
Posted: Sat Feb 07, 2004 10:30 pm Post subject: |
|
|
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 |
|
|
d0wn_under Guru
Joined: 13 Mar 2003 Posts: 300 Location: Sheffield, England
|
Posted: Sat Feb 07, 2004 11:37 pm Post subject: not quite a fix for me |
|
|
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 |
|
|
XiuX n00b
Joined: 22 Jan 2004 Posts: 59 Location: Linux
|
Posted: Sun Feb 08, 2004 12:04 am Post subject: Nota: Se pueden aplicar estilos rapidamente al texto selecci |
|
|
thx !!! :* I had the same problem, _________________ [URL=http://xiux.wordpress.com]Blog[URL] |
|
Back to top |
|
|
Clansman Tux's lil' helper
Joined: 10 Jan 2004 Posts: 140
|
Posted: Sun Feb 08, 2004 12:09 am Post subject: |
|
|
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 |
|
|
hal9000 n00b
Joined: 18 May 2003 Posts: 21 Location: Berlin, Germany
|
Posted: Sun Feb 08, 2004 11:47 am Post subject: ldconfig is my friend, too |
|
|
worked like a lucky charm |
|
Back to top |
|
|
ZuNBiD n00b
Joined: 17 Oct 2002 Posts: 22 Location: Portugal
|
Posted: Sun Feb 08, 2004 11:50 am Post subject: |
|
|
I love gentoo comunity !!
thanks to all
same problem, same solution ! NICE |
|
Back to top |
|
|
CeK n00b
Joined: 08 Feb 2004 Posts: 5 Location: Barcelona/Catalonia/Spain
|
Posted: Sun Feb 08, 2004 12:53 pm Post subject: |
|
|
Hi! & thx all, U'r the best of the best.
Kick ass community, fixed the problem for me!!! _________________ CIAO!
CeK! |
|
Back to top |
|
|
dabooty Guru
Joined: 15 May 2003 Posts: 482 Location: Belgium
|
Posted: Sun Feb 08, 2004 3:37 pm Post subject: |
|
|
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 |
|
|
brightblack n00b
Joined: 07 Feb 2004 Posts: 1
|
Posted: Sun Feb 08, 2004 4:07 pm Post subject: emerge issues |
|
|
Yup, 'ldconfig' worked for me too. Thanks all. Keeps my faith in Gentoo alive and well. |
|
Back to top |
|
|
Specis n00b
Joined: 01 Feb 2004 Posts: 3 Location: Scotland
|
Posted: Sun Feb 08, 2004 4:23 pm Post subject: |
|
|
phew, had the same problem on one of my machines too ldconfig fixed it for me |
|
Back to top |
|
|
JuNix Apprentice
Joined: 05 Mar 2003 Posts: 224 Location: Sheffield
|
Posted: Sun Feb 08, 2004 5:12 pm Post subject: |
|
|
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 |
|
|
mccubbin n00b
Joined: 27 Oct 2003 Posts: 32
|
Posted: Sun Feb 08, 2004 5:40 pm Post subject: THANKS!!! |
|
|
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 |
|
|
Miwer n00b
Joined: 27 Aug 2003 Posts: 24 Location: Copenhagen, Denmark
|
Posted: Sun Feb 08, 2004 5:51 pm Post subject: |
|
|
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 |
|
|
anthonyr n00b
Joined: 28 Jan 2004 Posts: 26 Location: Calgary
|
Posted: Sun Feb 08, 2004 7:10 pm Post subject: no problems |
|
|
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 |
|
|
jeffbuttars Tux's lil' helper
Joined: 23 May 2003 Posts: 79 Location: Boise, ID
|
Posted: Sun Feb 08, 2004 7:23 pm Post subject: No Go for me. |
|
|
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 |
|
|
jeffbuttars Tux's lil' helper
Joined: 23 May 2003 Posts: 79 Location: Boise, ID
|
Posted: Sun Feb 08, 2004 7:47 pm Post subject: More info |
|
|
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 |
|
|
anthonyr n00b
Joined: 28 Jan 2004 Posts: 26 Location: Calgary
|
Posted: Sun Feb 08, 2004 7:53 pm Post subject: |
|
|
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 |
|
|
jeffbuttars Tux's lil' helper
Joined: 23 May 2003 Posts: 79 Location: Boise, ID
|
Posted: Sun Feb 08, 2004 8:47 pm Post subject: distcc |
|
|
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 |
|
|
GenKiller n00b
Joined: 04 Mar 2003 Posts: 66 Location: United States of America
|
Posted: Sun Feb 08, 2004 9:35 pm Post subject: Re: distcc |
|
|
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 |
|
|
mlsfit138 Guru
Joined: 20 Sep 2003 Posts: 406 Location: Washington
|
Posted: Sun Feb 08, 2004 9:46 pm Post subject: |
|
|
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 |
|
|
|