LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 06-11-2010, 09:53 PM   #1
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Slackware 13.1
Posts: 813

Rep: Reputation: 96
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.
 
Old 06-11-2010, 10:18 PM   #2
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,987

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
This is usually the solution:

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

Last edited by dugan; 06-11-2010 at 10:36 PM.
 
Old 06-11-2010, 10:44 PM   #3
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Slackware 13.1
Posts: 813

Original Poster
Rep: Reputation: 96
No joy; I added the extra line and I'm getting the same error.
 
Old 06-11-2010, 11:38 PM   #4
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 40
What is the `uname -r` and all the C, CXX, LD, etc, flags you're using?
 
Old 06-11-2010, 11:55 PM   #5
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Slackware 13.1
Posts: 813

Original Poster
Rep: Reputation: 96
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.
 
Old 06-12-2010, 12:29 AM   #6
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 40
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
 
Old 06-12-2010, 03:23 AM   #7
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
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.
 
Old 06-12-2010, 03:27 AM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,384

Rep: Reputation: Disabled
Quote:
Originally Posted by 2handband View Post
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
 
Old 06-12-2010, 08:26 AM   #9
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Slackware 13.1
Posts: 813

Original Poster
Rep: Reputation: 96
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.
 
Old 06-12-2010, 08:57 AM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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).
 
Old 06-12-2010, 10:36 AM   #11
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Slackware 13.1
Posts: 813

Original Poster
Rep: Reputation: 96
All right, thanks much.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
configure: error: C++ compiler cannot create executables dicou Linux - Newbie 15 12-22-2012 02:00 PM
configure: error: C compiler cannot create executables Geneset Linux - Newbie 7 07-13-2007 04:11 PM
configure: error: C compiler cannot create executables Mysteries Linux - Software 5 05-21-2006 02:22 AM
configure: error: C compiler cannot create executables The00Dustin Linux - Software 2 01-11-2006 03:33 PM
configure error - C compiler cannot create executables MrLobster Linux - Software 1 12-24-2005 01:13 AM


All times are GMT -5. The time now is 08:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration