LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   configure: error: C compiler cannot create executables (http://www.linuxquestions.org/questions/slackware-14/configure-error-c-compiler-cannot-create-executables-813653/)

2handband 06-11-2010 08:53 PM

configure: error: C compiler cannot create executables
 
I'm trying to install swfdec from the excellent Slackbuild repository, and i keep getting the following message:

Code:

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

I've been installing stuff all week and my c compiler has worked fine up till this point. The one dependency listed for this package (libsoup) is installed.

dugan 06-11-2010 09:18 PM

This is usually the solution:

http://www.slackbuilds.org/faq/#x86_64

2handband 06-11-2010 09:44 PM

No joy; I added the extra line and I'm getting the same error.

rfernandez 06-11-2010 10:38 PM

What is the `uname -r` and all the C, CXX, LD, etc, flags you're using?

2handband 06-11-2010 10:55 PM

I'm using the stock 2.6.33.4 kernel that came with this thing. As for the rest I'm not sure; I've just been using the Slackbuild scripts to install software. I'm just switching over from Debian and am not terribly experienced when it comes to compiling software manually.

rfernandez 06-11-2010 11:29 PM

You're probably running the x86_64 arch. dugan suggested that your problem might be at the ARCH variable, where if you haven't modified the Slackbuild script, you should manually specify it with ARCH=x86_64 ./name-of-profram.Slackbuild. You'll have something like this at your terminal screen:

Code:

# ARCH=x86_64 ./swfdev.Slackbuild

sahko 06-12-2010 02:23 AM

Did you install Alien BOB's multilib packages? Thats probably the problem. You didnt set up the environment correctly. Make sure you follow instructions correctly.

Alien Bob 06-12-2010 02:27 AM

Quote:

Originally Posted by 2handband (Post 4000786)
I'm trying to install swfdec from the excellent Slackbuild repository, and i keep getting the following message:

Code:

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

I've been installing stuff all week and my c compiler has worked fine up till this point. The one dependency listed for this package (libsoup) is installed.

Please check that config.log. The message "compiler cannot create executables" is sometimes triggered by a missing library or something else that prevents the compiler from creating an executable.
The config.log will have the details.

Eric

Eric

2handband 06-12-2010 07:26 AM

Specifying the architecture in the execute command did the trick. That's weird; I had an architecture problem just the other day and the shell told me what the problem was. Why not this time? Anyway, thanks!

By the way, before I mark this thing solved, where can I find that config.log file? A find command turned up nothing.

Nylex 06-12-2010 07:57 AM

A config.log is generated when you run the "configure" script for each piece of software you're building from source (assuming it uses autoconf, or whatever else does the whole "configure" stuff). As such, you should find it in the top level directory of the source (i.e. where the configure script, makefile, etc are).

2handband 06-12-2010 09:36 AM

All right, thanks much.


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