public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] gcc problems after dep -d
  @ 2006-10-28 16:45 99% ` Justin Findlay
  0 siblings, 0 replies; 1+ results
From: Justin Findlay @ 2006-10-28 16:45 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2006-10-28  9:40     [gentoo-user] gcc problems after dep -d Hans de Hartog
2006-10-28 16:45 99% ` Justin Findlay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox