Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GF20: C compiler cannot create executables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Frequently Asked Questions
View previous topic :: View next topic  
Author Message
Maedhros
Bodhisattva
Bodhisattva


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

PostPosted: Sat Feb 12, 2005 11:00 am    Post subject: GF20: C compiler cannot create executables Reply with quote

Navigation: [Gentoo Fundamentals] [Table of Contents]

Q: Why am I getting the following error?
Code:
configure: error: C compiler cannot create executables


A: The first thing to check when you get this error is the spelling of your CFLAGS. You should also check whether they're supported by your version of gcc (man gcc will help you here). If you still can't see anything wrong, remove them all and add them back one-by-one until you find the problematic flag.

Make sure the -march= value you're using is supported by your version of gcc. -march=k8, and -march=pentium-m for instance will only work with gcc 3.4, and not with gcc 3.3.

You may also be experiencing toolchain problems. Make sure that when you run gcc-config -l or binutils-config -l they point to valid profiles, and set them appropriately if necessary (for instance, type gcc-config 1 to select the first gcc version in the list).


You may also find some more solutions in this topic: "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 Frequently Asked Questions 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