Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] update to gcc-4.7.3 killed libgcc_s.so.1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
wazoo42
Apprentice
Apprentice


Joined: 13 Apr 2004
Posts: 165

PostPosted: Wed May 15, 2013 4:53 pm    Post subject: [SOLVED] update to gcc-4.7.3 killed libgcc_s.so.1 Reply with quote

The emerge finished just fine, but my system froze before I could run gcc-config and I had to do a hard reboot. Now when the system boots init fails b/c /sbin/agetty cannot find libgcc_s.so.1. I booted into a livecd and added symlinks from /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1 to /lib and /usr/lib. I tried chrooting into my gentoo installation, but /bin/bash throws the same error. I also rebooted, but init still has the same error as well. Any thoughts as to what to try next?

Last edited by wazoo42 on Thu May 16, 2013 4:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2385
Location: Dallas area

PostPosted: Wed May 15, 2013 5:13 pm    Post subject: Reply with quote

Sounds like ldconfig might not have run properly so libraries can't be found.

I've updated to 4.7.3 and am having no problems.

You shouldn't need to make links in /lib or /usr/lib
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 5581
Location: ~Brussels - Belgique

PostPosted: Wed May 15, 2013 5:54 pm    Post subject: Reply with quote

hello,

call /bin/bb then ldconfig.
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
wazoo42
Apprentice
Apprentice


Joined: 13 Apr 2004
Posts: 165

PostPosted: Wed May 15, 2013 6:20 pm    Post subject: Reply with quote

I'm sorry for being obtuse, but I am confused by the mechanics of going about this. Namely, how do I run /bin/bb or ldconfig if I booting fails and I can't chroot in from a livecd?
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


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

PostPosted: Wed May 15, 2013 6:42 pm    Post subject: Reply with quote

As a last gasp way that may or may not work. Do a chroot build with build-packages enabled. Do a "emerge system" which should be only 42 packages including gcc and glibc. Boot up SystemRescue copy the packages over to your "/" and untar them. Then try to change root into your old install. If it works great other wise you're already part way through total clean install. :twisted:

I too upgraded to gcc-4.7.3, the day it was releashed with no obvious problems. From that day onward though I could compile them, but at the install faze, libreoffice ,boost and several others would hang. ( emerge? python? ) Chrome did not build {didnt reallly check where it died compiling or at install} pdfs wouldnt work or install and my existing libreoffice wouldnt run. Tried several rebuilds, python-updater, perl-cleaner , revdep-rebuilds. Gave up and did clean install but this time "amd64" without the tilde "~" :wink:
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
The Doctor
Veteran
Veteran


Joined: 27 Jul 2010
Posts: 1492

PostPosted: Wed May 15, 2013 7:12 pm    Post subject: Reply with quote

wazoo42 wrote:
I'm sorry for being obtuse, but I am confused by the mechanics of going about this. Namely, how do I run /bin/bb or ldconfig if I booting fails and I can't chroot in from a livecd?


chroot /mnt/gentoo /bin/bb to replace bash with bb in the chroot. bb is the busybox shell.
_________________
First things first, but not necessarily in that order.
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4689
Location: Saint Amant, Acadiana

PostPosted: Wed May 15, 2013 10:47 pm    Post subject: Reply with quote

I would run fsck before mounting from liveCD. You may have filesystem corruption, for various reasons.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Ion Silverbolt
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 203

PostPosted: Thu May 16, 2013 4:47 am    Post subject: Reply with quote

I am also having the same problem as Wazoo since the gcc upgrade.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2385
Location: Dallas area

PostPosted: Thu May 16, 2013 10:56 am    Post subject: Reply with quote

For those that have a problem

Check if you have /etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf
and
Code:
$ cat /etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3

should be in it.

You should also have this result from "ldconfig -p |grep libgcc"
Code:
libgcc_s.so.1 (libc6,x86-64) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1
libgcc_s.so.1 (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32/libgcc_s.so.1
libgcc_s.so (libc6,x86-64) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so
libgcc_s.so (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32/libgcc_s.so


If not then you will have a problem running lots of programs.

You will need to rebuild the cache. Busybox should work since it should be static compiled.
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
Back to top
View user's profile Send private message
wazoo42
Apprentice
Apprentice


Joined: 13 Apr 2004
Posts: 165

PostPosted: Thu May 16, 2013 4:20 pm    Post subject: Reply with quote

Thanks for all of the help, using busybox to chroot into the install worked perfectly. Then I could make symlinks and run gcc-config and ldconfig, which put everything back in working order.
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 5581
Location: ~Brussels - Belgique

PostPosted: Thu May 16, 2013 4:39 pm    Post subject: Reply with quote

Hello,

It is not a good idea to set a symlink to libgcc, but better remove it and run ldconfig, which will find libgcc at the right place ( /usr/gcc-xXX/lib/ )
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
wazoo42
Apprentice
Apprentice


Joined: 13 Apr 2004
Posts: 165

PostPosted: Thu May 16, 2013 4:49 pm    Post subject: Reply with quote

Thanks for the suggestion, I should have been clearer about the procedure used. The symlinks were removed after I ran gcc-config, per the last post in this thread.

http://forums.gentoo.org/viewtopic-t-917722.html
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 2773
Location: Gainesville, Florida

PostPosted: Sun May 19, 2013 2:47 pm    Post subject: Reply with quote

So as of Sun. May 19, is all this sorted out and an upgrade to gcc-4.7.3 will proceed normally without any manual user intervention required?

When I briefly tried gcc-4.80. I ran into a problem like heilvc described above, but only on Firefox and Chromium, where it failed (hung) in the install phase.

IIRC, it seemly was a python related problem, but I never could solve it, so I went back to gcc-4.7.2-r1.

UPDATE: I just did an emerge -uDN @world, and in the process got the 4.7.3 update (it auto-replaced my 4.7.2-r1), and the file checks suggested by Anon-E-moose above checked out OK, so I guess all is well.
_________________
Main box- Gigabyte GIGABYTE GA-990FXA-UD3 AM3+ rev.-4.0
Amd FX 8320, 3.5 GHz, 16GB GSkill DDR3 1866mhz
Samsung SATA 1000GB, Radeon HD 6570 2GB DDR3
Gentoo ~x86, ~amd64, glibc-2.19-r1, gcc-4.9.1 kernel 3.17.1-gentoo-r1 (USE=experimental "native")
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
Page 1 of 1

 
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