LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   C compiler cannot create executables? (https://www.linuxquestions.org/questions/slackware-14/c-compiler-cannot-create-executables-854893/)

trademark91 01-07-2011 05:43 PM

C compiler cannot create executables?
 
1 Attachment(s)
this is stumping me.

earlier this morning, i compiled Qtcurve with no issues. but now, when i try to compile Avant Window Navigator, i get a strange error. everything begins to compile, it checks dependencies, begins compiling, and then i get this error:
Code:

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

it doesnt make sense to me. so i checked the config.log.
it reported this error:
Code:

conftest.c:1:0: error: CPU you selected does not support x86-64 instruction set
i dont understand it.

then i redownloaded everything, and it worked. but this seems like an error that is due to something else entirely, and i kinda want some input on what could have gone wrong. attached is my config.log.

any thoughts?

Darth Vader 01-07-2011 06:07 PM

Quote:

Originally Posted by trademark91 (Post 4216881)
this is stumping me.

earlier this morning, i compiled Qtcurve with no issues. but now, when i try to compile Avant Window Navigator, i get a strange error. everything begins to compile, it checks dependencies, begins compiling, and then i get this error:
Code:

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

it doesnt make sense to me. so i checked the config.log.
it reported this error:
Code:

conftest.c:1:0: error: CPU you selected does not support x86-64 instruction set
i dont understand it.

then i redownloaded everything, and it worked. but this seems like an error that is due to something else entirely, and i kinda want some input on what could have gone wrong. attached is my config.log.

any thoughts?

Yet another example Why I don't love Multi-Lib. I hate the compatibility between x86 and x86_64! ;)

So, my friend... You configured properly the build environment?

http://alien.slackbook.org/dokuwiki/...kware:multilib

<EDIT>

Code:

configure:3046: checking for C compiler default output file name
configure:3073: gcc -O2 -march=i486 -mtune=i686  conftest.c  >&5
conftest.c:1:0: error: CPU you selected does not support x86-64 instruction set

Looks like you configured the environment for x86, before.

So, nothing wrong. Only a mistake.

Daedra 01-07-2011 08:58 PM

From the looks of it, the build ARCH got set to i486 instead of x86_64. try running the build like so
ARCH=x86_64 ./<progarm>.SlackBuild.

trademark91 01-07-2011 09:56 PM

i think thats what changed when i re-downloaded everything. all working now. sure was a scary error though.


All times are GMT -5. The time now is 04:03 PM.