From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GdrOM-0005q8-RO for garchives@archives.gentoo.org; Sat, 28 Oct 2006 16:50:43 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9SGmWQd008028; Sat, 28 Oct 2006 16:48:32 GMT Received: from jfindlay.us ([67.137.24.115]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9SGjrtp011125 for ; Sat, 28 Oct 2006 16:45:53 GMT Received: by jfindlay.us (Postfix, from userid 500) id 770E87006D; Sat, 28 Oct 2006 10:45:52 -0600 (MDT) Date: Sat, 28 Oct 2006 10:45:52 -0600 From: Justin Findlay To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] gcc problems after dep -d Message-ID: <20061028164552.GA19087@archimedes> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <4543257D.2010404@rootsr.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4543257D.2010404@rootsr.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Archives-Salt: e4152ed5-86d0-4ab8-ae79-aa61b258c1d3 X-Archives-Hash: 49fd9fa7616ebfd0aa751c1496939323 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