Gentoo Archives: gentoo-user

From: Justin Findlay <justin@××××××××.us>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gcc problems after dep -d
Date: Sat, 28 Oct 2006 16:50:43
Message-Id: 20061028164552.GA19087@archimedes
In Reply to: [gentoo-user] gcc problems after dep -d by Hans de Hartog
1 On AD 2006 October 28 Saturday 11:40:13 AM +0200, Hans de Hartog wrote:
2 > checking for C++ compiler default output file name... configure: error:
3 > C++ compiler cannot create executables
4 >
5 > or
6 >
7 > gcc-config error: Could not run/locate "gcc"
8 > ...
9 > [I--] [ -] sys-devel/gcc-4.1.1 (4.1)
10 > [I--] [ ] sys-devel/gcc-config-1.3.13-r4 (0)
11 > [I--] [ ] x11-misc/gccmakedep-1.0.2 (0)
12
13 I think there is more going on here than gcc-config. I encountered the
14 very same problems on my machine only after having done an `emerge -uDN
15 world` and only having one compiler, gcc-4.4.4-r1, on the system.
16
17 Hans, I was able to fix gcc-config with `gcc-config -f 1`. However not
18 only is /usr/bin/gcc seg faulting but
19 /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/gcc is also insomuch that I can't
20 even compile this simple program without a segmentation fault,
21
22 int main()
23 {
24 return 0;
25 }
26
27 yet even after having done `gcc-config -f 1` the profile may be correct
28 according to gcc-config,
29
30 # gcc-config -l
31 [1] x86_64-pc-linux-gnu-4.1.1 *
32
33 but the compiler still gives segmentation faults. This totally baffles
34 me as `ldd /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/gcc` shows that gcc
35 only links in
36
37 libc.so.6 => /lib/libc.so.6 (0x00002aadee5c4000)
38 /lib64/ld-linux-x86-64.so.2 (0x00002aadee4a6000)
39
40 and the mtimes on all three files (gcc, libc.so, ld-linux-x86-64.so)
41 are according to ls:
42
43 lrwxrwxrwx 1 root root 23 Sep 4 22:39 /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/gcc -> x86_64-pc-linux-gnu-gcc
44 -rwxr-xr-x 1 root root 140K Sep 4 22:39 /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/x86_64-pc-linux-gnu-gcc
45
46 -rwxr-xr-x 1 root root 1.4M Oct 1 22:54 /lib64/libc-2.5.so
47 lrwxrwxrwx 1 root root 11 Oct 1 22:54 /lib64/libc.so.6 -> libc-2.5.so
48
49 -rwxr-xr-x 1 root root 140K Oct 1 22:54 /lib64/ld-2.5.so
50 lrwxrwxrwx 1 root root 9 Oct 1 22:54 /lib64/ld-linux-x86-64.so.2 -> ld-2.5.so
51
52 These files are clearly much older than yesterday which is when I began
53 having these gcc problems. Unfortunately I'm still stumped and am
54 without a working gcc in the meantime.
55
56
57 Justin
58 --
59 gentoo-user@g.o mailing list