Gentoo Archives: gentoo-user

From: james <wireless@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: howto recover gcc from another system
Date: Thu, 24 Feb 2011 20:15:35
Message-Id: loom.20110224T203016-611@post.gmane.org
In Reply to: Re: [gentoo-user] howto recover gcc from another system by Florian Philipp
1 Florian Philipp <lists <at> binarywings.net> writes:
2
3
4 > > Since there is no gcc-bin to emerge (ha ha)
5 > > I guess I'll have to copy over the binary of
6 > > orsys-devel/gcc-4.4.4-r2 from another system.
7 > > GUIDANCE on that is most welcome.
8
9 > [...]
10
11 OK, if this the first step, then I'm confused.
12 /usr/bin has this:
13
14 -rwxr-xr-x 1 root root 14512 Jan 14 2010 gcc
15 lrwxrwxrwx 1 root root 62 Nov 6 14:08 gcc-4.4.4 ->
16 /usr/x86_64-pc-linux-gnu/gcc-bin/4.4.4/x86_64-pc-linux-gnu-gcc
17 -rwxr-xr-x 1 root root 21709 Sep 22 2009 gcc-config
18 -rwxr-xr-x 1 root root 14512 Jan 14 2010 x86_64-pc-linux-gnu-gcc
19 lrwxrwxrwx 1 root root 62 Nov 6 14:08 x86_64-pc-linux-gnu-gcc-4.4.4 ->
20 /usr/x86_64-pc-linux-gnu/gcc-bin/4.4.4/x86_64-pc-linux-gnu-gcc
21
22
23 So can I just rebuild the links, as it is fine
24 in /usr/bin:
25
26 file gcc
27 gcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked
28 (uses shared libs), for GNU/Linux 2.6.9, stripped
29
30
31 Or do I use quickpkg to fix it, since the binary is
32 in place? (confused here so detail is appreciated!)
33
34 I already downloaded gcc-4.4.4 but it will
35 not build, so the symbolic link being used
36 is broken?
37 gcc-config -l
38 * gcc-config: Active gcc profile is invalid!
39 [1] x86_64-pc-linux-gnu-4.4.4
40
41
42 I understand that quickpkg can be used
43 to protect gcc in the future, but, I think
44 I need to use the /usr/bin binary to rebuild
45 the links and then the entire (gcc) package
46 from sources?
47
48
49 confused,
50 James