Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[emerge error] C compiler cannot create executables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
mr_anderson
n00b
n00b


Joined: 29 Jul 2004
Posts: 6

PostPosted: Wed Sep 07, 2005 6:31 am    Post subject: [emerge error] C compiler cannot create executables Reply with quote

I've upgraded my glibc and now I can't emerge anything. The error:>>

Code:

...
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
...


My gcc 3.3.5 works fine before I upgraded the glibc. I've also made modifications to the CFLAGS (march option) before the error start to pop up. I've gone through the "sticky" topic, but to no avail.My /etc/make.conf:>>
Code:

...
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="nptl nptlonly gtk gnome alsa directfb X png jpeg tiff fbcon ssl sse sse2 portaudio javascript cups foomaticdb ppds usb mmx mmx2 acpi aalib xvid divx4linux"
...


Here's the output from /lib/libc.so.6:>>
Code:

Compiled by GNU CC version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1).
Compiled on a Linux 2.6.8 system on 2005-09-07.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        Native POSIX Threads Library by Ulrich Drepper et al
        The C stubs add-on version 2.1.2.
        GNU Libidn by Simon Josefsson
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
        Glibc-2.0 compatibility add-on by Cristian Gafton
Thread-local storage support included.


The file config.log is big, so I won't post them here (Err..who should I send them to again?). BTW, I can re-emerge glibc. So, my guess is it has something to do with glibc (but I don't know what yet..). Any pointers? TIA.
Back to top
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Wed Sep 07, 2005 6:35 am    Post subject: Reply with quote

Unless there has been a backport to gcc 3.3.5 that I am not aware of, -march=pentium-m will not work.

AFAIK It is gcc 3.4.0 and above only.

You should use -march=pentium3
_________________
"Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet?
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Wed Sep 07, 2005 7:10 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads in favour of this FAQ: C compiler cannot create executables.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum