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 Gentoo on AMD64
View previous topic :: View next topic  
Author Message
shortman
n00b
n00b


Joined: 09 Jun 2005
Posts: 6
Location: Portland OR

PostPosted: Thu Jun 16, 2005 11:34 pm    Post subject: Configure: error: C compiler cannot create executables Reply with quote

I'm having an error when I try to install system logger on a clean system

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

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/libol-0.3.14/work/libol-0.3.14/config.log

!!! ERROR: dev-libs/libol-0.3.14 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status Message.



People say I should check my make.conf
Code:

CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"


does it look right? If so what do you think whats the problem? Any Suggestions?

Thanks 8)
Back to top
View user's profile Send private message
kmj0377
Guru
Guru


Joined: 26 Sep 2003
Posts: 397

PostPosted: Fri Jun 17, 2005 4:31 am    Post subject: Reply with quote

Make sure you have selected the most recent gcc profile with gcc-config.
Back to top
View user's profile Send private message
ansient
Guru
Guru


Joined: 22 Jan 2005
Posts: 445
Location: Argentina

PostPosted: Fri Jun 17, 2005 5:21 am    Post subject: Reply with quote

Code:
binutils-config 1

bug: https://bugs.gentoo.org/show_bug.cgi?id=95928
Back to top
View user's profile Send private message
kamikaze04
Guru
Guru


Joined: 28 Mar 2004
Posts: 366
Location: Valencia-Spain

PostPosted: Fri Jun 17, 2005 8:02 am    Post subject: Reply with quote

If it is not problem of GCC, then check if your partition /var/tmp is mounted with the option "noexec", if it is, that's the problem.
_________________
Todo lo que quisiste saber sobre google en: www.noticiasgoogle.es
Back to top
View user's profile Send private message
mike4148
l33t
l33t


Joined: 09 Sep 2003
Posts: 641

PostPosted: Fri Jun 17, 2005 11:07 pm    Post subject: Reply with quote

You're running 64-bit, but you're -march says "athlon-xp."

If you want to run 32-bit, grab an x86 Live CD and start over. If you want to run 64-bit, use one of the 64-bit marches (k8, opteron, athlon64, athlon-fx).
Back to top
View user's profile Send private message
michelle778
n00b
n00b


Joined: 19 Mar 2005
Posts: 73

PostPosted: Sat Jun 18, 2005 7:42 am    Post subject: Reply with quote

I had the same problems (caused by binutils) an was able to solve them by changing the binutils version used (with binutils-config).
_________________
Nothing is easier than being busy - and nothing more difficult than being effective.
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Sat Jun 18, 2005 3:42 pm    Post subject: Reply with quote

The problem is your -march flag as mike4148 said. Athlon-xp is a 32bit CPU. Change it to -march=athlon64 instead.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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