On AD 2006 October 28 Saturday 11:40:13 AM +0200, Hans de Hartog wrote: > checking for C++ compiler default output file name... configure: error: > C++ compiler cannot create executables > > or > > gcc-config error: Could not run/locate "gcc" > ... > [I--] [ -] sys-devel/gcc-4.1.1 (4.1) > [I--] [ ] sys-devel/gcc-config-1.3.13-r4 (0) > [I--] [ ] x11-misc/gccmakedep-1.0.2 (0)
I think there is more going on here than gcc-config. I encountered the very same problems on my machine only after having done an `emerge -uDN world` and only having one compiler, gcc-4.4.4-r1, on the system. Hans, I was able to fix gcc-config with `gcc-config -f 1`. However not only is /usr/bin/gcc seg faulting but /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/gcc is also insomuch that I can't even compile this simple program without a segmentation fault, int main() { return 0; } yet even after having done `gcc-config -f 1` the profile may be correct according to gcc-config, # gcc-config -l [1] x86_64-pc-linux-gnu-4.1.1 * but the compiler still gives segmentation faults. This totally baffles me as `ldd /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/gcc` shows that gcc only links in libc.so.6 => /lib/libc.so.6 (0x00002aadee5c4000) /lib64/ld-linux-x86-64.so.2 (0x00002aadee4a6000) and the mtimes on all three files (gcc, libc.so, ld-linux-x86-64.so) are according to ls: 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 -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 -rwxr-xr-x 1 root root 1.4M Oct 1 22:54 /lib64/libc-2.5.so lrwxrwxrwx 1 root root 11 Oct 1 22:54 /lib64/libc.so.6 -> libc-2.5.so -rwxr-xr-x 1 root root 140K Oct 1 22:54 /lib64/ld-2.5.so lrwxrwxrwx 1 root root 9 Oct 1 22:54 /lib64/ld-linux-x86-64.so.2 -> ld-2.5.so These files are clearly much older than yesterday which is when I began having these gcc problems. Unfortunately I'm still stumped and am without a working gcc in the meantime. Justin -- gentoo-user@gentoo.org mailing list