View previous topic :: View next topic |
Author |
Message |
wazoo42 Apprentice

Joined: 13 Apr 2004 Posts: 165
|
Posted: Wed May 15, 2013 4:53 pm Post subject: [SOLVED] update to gcc-4.7.3 killed libgcc_s.so.1 |
|
|
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 |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6039 Location: Dallas area
|
Posted: Wed May 15, 2013 5:13 pm Post subject: |
|
|
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 _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
 |
xaviermiller Bodhisattva


Joined: 23 Jul 2004 Posts: 8689 Location: ~Brussels - Belgique
|
Posted: Wed May 15, 2013 5:54 pm Post subject: |
|
|
hello,
call /bin/bb then ldconfig. _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
 |
wazoo42 Apprentice

Joined: 13 Apr 2004 Posts: 165
|
Posted: Wed May 15, 2013 6:20 pm Post subject: |
|
|
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 |
|
 |
hielvc Advocate

Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Wed May 15, 2013 6:42 pm Post subject: |
|
|
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.
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 "~"  _________________ An A-Z Index of the Linux BASH command line |
|
Back to top |
|
 |
The Doctor Moderator


Joined: 27 Jul 2010 Posts: 2678
|
Posted: Wed May 15, 2013 7:12 pm Post subject: |
|
|
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.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
 |
Jaglover Watchman


Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
 |
Ion Silverbolt Apprentice


Joined: 04 Nov 2004 Posts: 203
|
Posted: Thu May 16, 2013 4:47 am Post subject: |
|
|
I am also having the same problem as Wazoo since the gcc upgrade. |
|
Back to top |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6039 Location: Dallas area
|
Posted: Thu May 16, 2013 10:56 am Post subject: |
|
|
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. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
 |
wazoo42 Apprentice

Joined: 13 Apr 2004 Posts: 165
|
Posted: Thu May 16, 2013 4:20 pm Post subject: |
|
|
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 |
|
 |
xaviermiller Bodhisattva


Joined: 23 Jul 2004 Posts: 8689 Location: ~Brussels - Belgique
|
Posted: Thu May 16, 2013 4:39 pm Post subject: |
|
|
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/ ) _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
 |
wazoo42 Apprentice

Joined: 13 Apr 2004 Posts: 165
|
Posted: Thu May 16, 2013 4:49 pm Post subject: |
|
|
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.
https://forums.gentoo.org/viewtopic-t-917722.html |
|
Back to top |
|
 |
wrc1944 Advocate

Joined: 15 Aug 2002 Posts: 3420 Location: Gainesville, Florida
|
Posted: Sun May 19, 2013 2:47 pm Post subject: |
|
|
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- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.2.2 USE=experimental python3_11 |
|
Back to top |
|
 |
|