* [gentoo-user] Re: gcc4.7.2-r1 to 4.7.3 upgrade - hosed system?
2013-05-16 15:30 ` Adam Carter
@ 2013-05-16 19:06 ` walt
2013-05-17 3:59 ` Adam Carter
0 siblings, 1 reply; 8+ messages in thread
From: walt @ 2013-05-16 19:06 UTC (permalink / raw
To: gentoo-user
On 05/16/2013 08:30 AM, Adam Carter wrote:
> I had the same yesterday - run:
>
> LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/ ldconfig
> to fix your system.
>
> Thanx to chithanh for this life-saving oneliner
> (http://forums.gentoo.org/viewtopic-p-7053126.html).
>
> Greetings,
> Daniel
>
>
> That didnt help the gcc-config error, and also i notice that there's bits of 4.7.2 still around;
>
> # ls -l /lib64/libgcc*
> -rwxr-xr-x 1 root root 88720 May 16 21:13 /lib64/libgcc_s-4.7.2-20121109.so.1
> lrwxrwxrwx 1 root root 28 May 17 01:19 /lib64/libgcc_s.so.1 -> libgcc_s-4.7.2-20121109.so.1
That's weird, I have no such libraries in /lib64 and qlist =gcc-4.7.2-r1 shows
no files whatever installed in /lib64.
Do you have these files?:
#ls -l /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so*
lrwxrwxrwx 1 root root 13 May 16 07:46 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so -> libgcc_s.so.1
-rw-r--r-- 1 root root 92384 May 16 07:46 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Re: gcc4.7.2-r1 to 4.7.3 upgrade - hosed system?
2013-05-16 19:06 ` [gentoo-user] " walt
@ 2013-05-17 3:59 ` Adam Carter
0 siblings, 0 replies; 8+ messages in thread
From: Adam Carter @ 2013-05-17 3:59 UTC (permalink / raw
To: gentoo-user@lists.gentoo.org
[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]
> > # ls -l /lib64/libgcc*
> > -rwxr-xr-x 1 root root 88720 May 16 21:13
> /lib64/libgcc_s-4.7.2-20121109.so.1
> > lrwxrwxrwx 1 root root 28 May 17 01:19 /lib64/libgcc_s.so.1 ->
> libgcc_s-4.7.2-20121109.so.1
>
> That's weird, I have no such libraries in /lib64 and qlist =gcc-4.7.2-r1
> shows
> no files whatever installed in /lib64.
>
> Do you have these files?:
>
> #ls -l /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so*
>
> lrwxrwxrwx 1 root root 13 May 16 07:46
> /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so -> libgcc_s.so.1
> -rw-r--r-- 1 root root 92384 May 16 07:46
> /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1
>
Yep:
# ls -l /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so*
lrwxrwxrwx 1 root root 13 May 15 19:26
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so -> libgcc_s.so.1
-rw-r--r-- 1 root root 92352 May 15 19:26
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1
Do you currently have 4.7.3 selected? i'm wondering if the content of
/lib64 is switched when you run gcc-config ?
# gcc-config -l
[1] x86_64-pc-linux-gnu-4.6.3
[2] x86_64-pc-linux-gnu-4.7.3 *
[-- Attachment #2: Type: text/html, Size: 1559 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] gcc4.7.2-r1 to 4.7.3 upgrade - hosed system?
[not found] <la50K-7d0-27@gated-at.bofh.it>
@ 2013-05-17 4:53 ` Vaeth
2013-05-17 7:33 ` Adam Carter
0 siblings, 1 reply; 8+ messages in thread
From: Vaeth @ 2013-05-17 4:53 UTC (permalink / raw
To: gentoo-user
> # gcc-config 2
> * Switching native-compiler to x86_64-pc-linux-gnu-4.7.3 ...
> /usr/bin/python2.7: error while loading shared libraries: libgcc_s.so.1:
> cannot open shared object file: No such file or directory
This is a bug in gcc-config: It removes the old link too early
so that the tools needed to establish the new link do not work
anymore. IIRC correctly, there was a bug reported, but apparently
it is still not fixed.
To repair it manually you must temporarily create the old link.
Here are detailed instruction how to do this:
1. Since tools like "ln -s" will not work, it is best to use busybox.
So first start busybox (e.g. "bb" or "bb sh" depending on your setup).
2. Then go to the gcc library parent directory: On amd64 this should be
cd /usr/lib64/gcc/x86_64-pc-linux-gnu
On i686 this is instead
cd /usr/lib/gcc/i686*
On other architectures, I don't know.
3. Create the symlink from your old directory to the new.
Given the subject, I guess this should be:
ln -s 4.7.3 4.7.2
4. Now gcc-config should work
5. Remove the symlink again
rm 4.7.2
6. Run your env-update as usual and resource the profile
7. Test that gcc-config is still working (it should).
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] gcc4.7.2-r1 to 4.7.3 upgrade - hosed system?
2013-05-17 4:53 ` [gentoo-user] gcc4.7.2-r1 to 4.7.3 upgrade - hosed system? Vaeth
@ 2013-05-17 7:33 ` Adam Carter
2013-05-17 18:18 ` [gentoo-user] " walt
0 siblings, 1 reply; 8+ messages in thread
From: Adam Carter @ 2013-05-17 7:33 UTC (permalink / raw
To: gentoo-user@lists.gentoo.org
[-- Attachment #1: Type: text/plain, Size: 1686 bytes --]
This is a bug in gcc-config: It removes the old link too early
> so that the tools needed to establish the new link do not work
> anymore. IIRC correctly, there was a bug reported, but apparently
> it is still not fixed.
>
> To repair it manually you must temporarily create the old link.
> Here are detailed instruction how to do this:
>
> 1. Since tools like "ln -s" will not work, it is best to use busybox.
> So first start busybox (e.g. "bb" or "bb sh" depending on your setup).
>
> 2. Then go to the gcc library parent directory: On amd64 this should be
> cd /usr/lib64/gcc/x86_64-pc-**linux-gnu
> On i686 this is instead
> cd /usr/lib/gcc/i686*
> On other architectures, I don't know.
>
> 3. Create the symlink from your old directory to the new.
> Given the subject, I guess this should be:
> ln -s 4.7.3 4.7.2
>
> 4. Now gcc-config should work
>
> 5. Remove the symlink again
> rm 4.7.2
>
> 6. Run your env-update as usual and resource the profile
>
> 7. Test that gcc-config is still working (it should).
>
>
Still no good;
# cd /usr/lib64/gcc/x86_64-pc-linux-gnu
# ls -l
total 8
drwxr-xr-x 7 root root 4096 Feb 20 16:31 4.6.3
lrwxrwxrwx 1 root root 5 May 17 17:17 4.7.2 -> 4.7.3
drwxr-xr-x 7 root root 4096 May 17 17:20 4.7.3
# gcc-config 2
* Switching native-compiler to x86_64-pc-linux-gnu-4.7.3 ...
/usr/bin/python2.7: error while loading shared libraries: libgcc_s.so.1:
cannot open shared object file: No such file or directory
ewarn: error while loading shared libraries: libgcc_s.so.1: cannot open
shared object file: No such file or directory
ewarn: error while loading shared libraries: libgcc_s.so.1: cannot open
shared object file: No such file or directory
[-- Attachment #2: Type: text/html, Size: 2127 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: gcc4.7.2-r1 to 4.7.3 upgrade - hosed system?
2013-05-17 7:33 ` Adam Carter
@ 2013-05-17 18:18 ` walt
2013-05-18 9:53 ` Adam Carter
0 siblings, 1 reply; 8+ messages in thread
From: walt @ 2013-05-17 18:18 UTC (permalink / raw
To: gentoo-user
On 05/17/2013 12:33 AM, Adam Carter wrote:
> # gcc-config 2 * Switching native-compiler to
> x86_64-pc-linux-gnu-4.7.3 ... /usr/bin/python2.7: error while loading
> shared libraries: libgcc_s.so.1: cannot open shared object file: No
> such file or directory
#ldconfig -p | grep libgcc
libgccpp.so.1 (libc6,x86-64) => /usr/lib64/libgccpp.so.1
libgccpp.so (libc6,x86-64) => /usr/lib64/libgccpp.so
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,x86-64) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.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.1 (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.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,x86-64) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so
libgcc_s.so (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32/libgcc_s.so
libgcc_s.so (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/32/libgcc_s.so
What do you have?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Re: gcc4.7.2-r1 to 4.7.3 upgrade - hosed system?
2013-05-17 18:18 ` [gentoo-user] " walt
@ 2013-05-18 9:53 ` Adam Carter
2013-05-18 10:22 ` walt
0 siblings, 1 reply; 8+ messages in thread
From: Adam Carter @ 2013-05-18 9:53 UTC (permalink / raw
To: gentoo-user@lists.gentoo.org
[-- Attachment #1: Type: text/plain, Size: 2247 bytes --]
On Sat, May 18, 2013 at 4:18 AM, walt <w41ter@gmail.com> wrote:
> On 05/17/2013 12:33 AM, Adam Carter wrote:
> > # gcc-config 2 * Switching native-compiler to
> > x86_64-pc-linux-gnu-4.7.3 ... /usr/bin/python2.7: error while loading
> > shared libraries: libgcc_s.so.1: cannot open shared object file: No
> > such file or directory
>
> #ldconfig -p | grep libgcc
> libgccpp.so.1 (libc6,x86-64) => /usr/lib64/libgccpp.so.1
> libgccpp.so (libc6,x86-64) => /usr/lib64/libgccpp.so
> 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,x86-64) =>
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.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.1 (libc6) =>
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.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,x86-64) =>
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so
> libgcc_s.so (libc6) =>
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32/libgcc_s.so
> libgcc_s.so (libc6) =>
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/32/libgcc_s.so
>
> What do you have?
>
>
# ldconfig -p | grep libgcc
libgcc_s.so.1 (libc6,x86-64) => /lib64/libgcc_s.so.1
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,x86-64) =>
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.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.1 (libc6) =>
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.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,x86-64) =>
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so
libgcc_s.so (libc6) =>
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32/libgcc_s.so
libgcc_s.so (libc6) =>
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/32/libgcc_s.so
# ls -l /lib64/libgcc_s.so.1
lrwxrwxrwx 1 root root 28 May 17 19:11 /lib64/libgcc_s.so.1 ->
libgcc_s-4.7.2-20121109.so.1
Crufty.... Will it be safe to delete the link since the file is found in
the other locations?
[-- Attachment #2: Type: text/html, Size: 2781 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: gcc4.7.2-r1 to 4.7.3 upgrade - hosed system?
2013-05-18 9:53 ` Adam Carter
@ 2013-05-18 10:22 ` walt
2013-05-18 10:25 ` Adam Carter
0 siblings, 1 reply; 8+ messages in thread
From: walt @ 2013-05-18 10:22 UTC (permalink / raw
To: gentoo-user
On 05/18/2013 02:53 AM, Adam Carter wrote:
> On Sat, May 18, 2013 at 4:18 AM, walt <w41ter@gmail.com <mailto:w41ter@gmail.com>> wrote:
>
> On 05/17/2013 12:33 AM, Adam Carter wrote:
> > # gcc-config 2 * Switching native-compiler to
> > x86_64-pc-linux-gnu-4.7.3 ... /usr/bin/python2.7: error while loading
> > shared libraries: libgcc_s.so.1: cannot open shared object file: No
> > such file or directory
>
> #ldconfig -p | grep libgcc
> libgccpp.so.1 (libc6,x86-64) => /usr/lib64/libgccpp.so.1
> libgccpp.so (libc6,x86-64) => /usr/lib64/libgccpp.so
> 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,x86-64) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.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.1 (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.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,x86-64) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so
> libgcc_s.so (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32/libgcc_s.so
> libgcc_s.so (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/32/libgcc_s.so
>
> What do you have?
>
>
> # ldconfig -p | grep libgcc
> libgcc_s.so.1 (libc6,x86-64) => /lib64/libgcc_s.so.1
> 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,x86-64) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.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.1 (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.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,x86-64) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so
> libgcc_s.so (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32/libgcc_s.so
> libgcc_s.so (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/32/libgcc_s.so
>
> # ls -l /lib64/libgcc_s.so.1
> lrwxrwxrwx 1 root root 28 May 17 19:11 /lib64/libgcc_s.so.1 -> libgcc_s-4.7.2-20121109.so.1
>
> Crufty.... Will it be safe to delete the link since the file is found in the other locations?
Yes, then run ldconfig afterwards.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Re: gcc4.7.2-r1 to 4.7.3 upgrade - hosed system?
2013-05-18 10:22 ` walt
@ 2013-05-18 10:25 ` Adam Carter
0 siblings, 0 replies; 8+ messages in thread
From: Adam Carter @ 2013-05-18 10:25 UTC (permalink / raw
To: gentoo-user@lists.gentoo.org
[-- Attachment #1: Type: text/plain, Size: 320 bytes --]
>
> > # ls -l /lib64/libgcc_s.so.1
> > lrwxrwxrwx 1 root root 28 May 17 19:11 /lib64/libgcc_s.so.1 ->
> libgcc_s-4.7.2-20121109.so.1
> >
> > Crufty.... Will it be safe to delete the link since the file is found in
> the other locations?
>
> Yes, then run ldconfig afterwards.
>
>
Thanks - gcc-config 2 runs cleanly now.
[-- Attachment #2: Type: text/html, Size: 598 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-05-18 10:25 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <la50K-7d0-27@gated-at.bofh.it>
2013-05-17 4:53 ` [gentoo-user] gcc4.7.2-r1 to 4.7.3 upgrade - hosed system? Vaeth
2013-05-17 7:33 ` Adam Carter
2013-05-17 18:18 ` [gentoo-user] " walt
2013-05-18 9:53 ` Adam Carter
2013-05-18 10:22 ` walt
2013-05-18 10:25 ` Adam Carter
2013-05-16 11:49 [gentoo-user] " Adam Carter
2013-05-16 14:37 ` Daniel Troeder
2013-05-16 15:30 ` Adam Carter
2013-05-16 19:06 ` [gentoo-user] " walt
2013-05-17 3:59 ` Adam Carter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox