Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
C Compiler cannot create executables Compaq Presario 700 EA
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
qootie
n00b
n00b


Joined: 30 Mar 2005
Posts: 5

PostPosted: Tue Apr 19, 2005 10:16 pm    Post subject: C Compiler cannot create executables Compaq Presario 700 EA Reply with quote

Hi,

I came across with the same problem when i tried to install Gentoo to my laptop -> C Compiler cannot create executables.

I solved it. In my /etc/make.conf file my cpu flag was set to

CFLAGS=*-march=i686-pc-linux-gnu -pipe -O3 -fomit-frame-pointer"

it should be

CFLAGS=*-mcpu=athlon-tbird -pipe -O3 -fomit-frame-pointer"

that's it...

Good Luck eveybody...
_________________
Regards,
Qootie
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Wed Apr 20, 2005 6:37 am    Post subject: Reply with quote

yes, getting your architecture wrong is a definite show stopper. :?

since you changed two things at once, maybe some clarification is in order. just for reference:

first, i686-pc-linux-gnu is a CHOST setting, not a processor setting. that alone is sufficient to break your compiler.
second, i doubt that changing -march to -mcpu actually fixed the problem. you should be able to use either one.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


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

PostPosted: Wed Apr 20, 2005 1:24 pm    Post subject: Reply with quote

Moved from Installing Gentoo in favour of this FAQ: https://forums.gentoo.org/viewtopic-t-294109.html.
_________________
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