View previous topic :: View next topic |
Author |
Message |
shortman n00b
Joined: 09 Jun 2005 Posts: 6 Location: Portland OR
|
Posted: Thu Jun 16, 2005 11:34 pm Post subject: Configure: error: C compiler cannot create executables |
|
|
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 |
|
Back to top |
|
|
kmj0377 Guru
Joined: 26 Sep 2003 Posts: 397
|
Posted: Fri Jun 17, 2005 4:31 am Post subject: |
|
|
Make sure you have selected the most recent gcc profile with gcc-config. |
|
Back to top |
|
|
ansient Guru
Joined: 22 Jan 2005 Posts: 445 Location: Argentina
|
|
Back to top |
|
|
kamikaze04 Guru
Joined: 28 Mar 2004 Posts: 366 Location: Valencia-Spain
|
Posted: Fri Jun 17, 2005 8:02 am Post subject: |
|
|
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 |
|
|
mike4148 l33t
Joined: 09 Sep 2003 Posts: 641
|
Posted: Fri Jun 17, 2005 11:07 pm Post subject: |
|
|
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 |
|
|
michelle778 n00b
Joined: 19 Mar 2005 Posts: 73
|
Posted: Sat Jun 18, 2005 7:42 am Post subject: |
|
|
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 |
|
|
nxsty Veteran
Joined: 23 Jun 2004 Posts: 1556 Location: .se
|
Posted: Sat Jun 18, 2005 3:42 pm Post subject: |
|
|
The problem is your -march flag as mike4148 said. Athlon-xp is a 32bit CPU. Change it to -march=athlon64 instead. |
|
Back to top |
|
|
|