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

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
valkyrite
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 241

PostPosted: Thu Aug 14, 2003 5:41 pm    Post subject: configure: error: C compiler cannot create executables Reply with quote

I am getting following error message while trying to do emerge (or for that matter any other compilation). How can I rectify the problem? I checked for the path to various libraries and binaries and found them to be consistent as far as I new. What could be the possible cause of the problem? Please reply asap.

Error msg:

checking for C compiler default output... configure: error: C compiler cannot create executables
check `config.log' for details.
make: *** [unix-def.mk] Error 77

!!! ERROR: media-libs/freetype-2.1.4 failed.
!!! Function src_compile, Line 42, Exitcode 2
!!! (no error message)

TIA
Sincerely
Santosh Tiwari
Back to top
View user's profile Send private message
aja
l33t
l33t


Joined: 26 Aug 2002
Posts: 705
Location: Edmonton, Canada

PostPosted: Thu Aug 14, 2003 7:01 pm    Post subject: Reply with quote

That error is often CFLAGS. Did you, in fact:
Code:

check `config.log' for details.

As instructed? It will often point out a compile option that is the difficulty.

Also, search these forums on the "cannot create executables" error - you will find a large number of hits, many of which will be helpful.
Back to top
View user's profile Send private message
valkyrite
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 241

PostPosted: Thu Aug 14, 2003 9:12 pm    Post subject: Thanks the problem was with CFLAGS Reply with quote

I remove the option "-mmx" and it worked.
Back to top
View user's profile Send private message
GuidoJ
Guru
Guru


Joined: 24 Dec 2002
Posts: 444
Location: Netherlands

PostPosted: Fri Aug 15, 2003 9:56 am    Post subject: Reply with quote

Note that the option should have been -mmmx (3 m's).
Back to top
View user's profile Send private message
valkyrite
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 241

PostPosted: Fri Aug 15, 2003 10:35 am    Post subject: Thanks Reply with quote

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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