LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-19-2006, 04:49 PM   #1
Bazbo
Member
 
Registered: Mar 2004
Location: Seattle
Posts: 72

Rep: Reputation: 15
C compiler cannot create executables


Hello,

I am not a total Linux newbie, but this is my first foray into the mysterious world of compiling from source. Apparently there are no up-to-date binaries for Wine in Debian, so I can't just apt-get

I made a directory for the WINE source to extract to, but the graphical archiver would not recognize it, so I ended up extracting to the default /tmp.

Here is the output of the terminal so far:

c-24-18-244-87:/home/pad# mkdir .wine
c-24-18-244-87:/home/pad# cd tmp
bash: cd: tmp: No such file or directory
c-24-18-244-87:/home/pad# cd /tmp
c-24-18-244-87:/tmp# ls
gconfd-pad libgksu-yO0g8K orbit-root wine-0.9.25
gconfd-root mapping-pad ssh-paNdPi5054 wine-0.9.25.tar.bz2
keyring-jSJuA1 orbit-pad virtual-pad.SIpZmW
c-24-18-244-87:/tmp# cd wine-0.9.25
c-24-18-244-87:/tmp/wine-0.9.25# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... gcc -m32
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
c-24-18-244-87:/tmp/wine-0.9.25# config.log
bash: config.log: command not found
c-24-18-244-87:/tmp/wine-0.9.25#


How do I look at 'config.log'? Are there build dependencies? The WINE HQ instructions say to look for them in the output of configure, but I don't know how to interpret what I'm looking at.

System:
AMD 64 3800+, 1GB RAM, 64 Studio distro (a media authoring optimization of Debian)

FWIW, here are links to some software I want to run in WINE. If you're musically inclined, they might be of interest:

http://www.giamusic.com/scstore/P-au...assistant.html
http://www.tune-assistant.com/

Thanks,

Paul in Seattle
 
Old 11-19-2006, 11:32 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Open a console (that icon in the tray that looks lide a monitor, probably with a scallp shell superimposed: in you don't already know it, that's the command-line interface, or whatever you want to call it).

enter the command: su. you will be prompted for a password. enter the root users password.

run the command: updatedb. depending on system speed and number of files on the system, it could take a minute or two to run to completion.

when it's done, run the command: locate config.log. Other apps may have generated a log with the same name. so, look for the one with a date and time stamp for the time you compile wine.

In bash, you need to cd to the folder that contains the file, then run the command: cat config.log, or, from anywhere in the system, give the full path to config.log. as in, cat /tmp/wine-0.9.25/config.log (or whereever it is).

if the file is more that one screen long, you can make it pause at one screenfull by piping the command through less: cat config.log | less. Press the space bar to see the next page (or use pageup, pagedown, up or down arrow keys) to scroll forward or backward.
 
Old 11-20-2006, 12:17 AM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
You need the binutils package installed and for that matter make sure you have build-essential as well.
 
Old 11-20-2006, 12:51 AM   #4
Bazbo
Member
 
Registered: Mar 2004
Location: Seattle
Posts: 72

Original Poster
Rep: Reputation: 15
Hello, Bridgedriver and Stphen Cormier, and thanks for replying.

The only log that showed up was /var/log/fontconfig.log . Can this be relevent? I am doubtful. I will post it if you think it will help.

binutils and buld-essential are both installed by default.

-PD

Last edited by Bazbo; 11-20-2006 at 01:15 AM.
 
Old 11-20-2006, 05:15 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Bazbo
Hello, Bridgedriver and Stphen Cormier, and thanks for replying.

The only log that showed up was /var/log/fontconfig.log . Can this be relevent? I am doubtful. I will post it if you think it will help.

binutils and buld-essential are both installed by default.

-PD
The log you would be looking for should be in the directory you compile/configure in, for the cannot create executables error that is usually the missing binutils package so I really have no idea what is going on here now. Ok just took a look at the output again this is a 64bit install your trying to compile on right? If so I do not believe that wine works on 64bit you would need to do what is called a chroot 32bit install then install the wine in it.
 
Old 11-21-2006, 01:05 AM   #6
Bazbo
Member
 
Registered: Mar 2004
Location: Seattle
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by HappyTux
...I do not believe that wine works on 64bit you would need to do what is called a chroot 32bit install then install the wine in it.
Aha, the Curse of 64 Bits strikes again! I should have suspected. I've encountered it before, with Flash 9 and Opera. That's why I have the 32 bit Ubuntu install on another partition.

After Googling "chroot 32bit", I'm pretty overwhelmed. Can you point me to the least horrendous install?

It may be easier to install in my 32-bit Ubuntu system on the same computer. WINE works on it, though there's no sound. Everybody seems to have the same problem on Ubuntu, so maybe I could uninstall the binaries, and compile WINE from source there.

Have you installed a chroot 32bit? How involved is it?

--Paul
 
  


Reply



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
C compiler cannot create executables packets Linux - Security 3 05-03-2010 05:30 PM
C compiler cannot create executables cov Amigo 3 05-06-2005 02:18 AM
C++ compiler cannot create executables notmatt Linux - Newbie 4 09-30-2004 07:59 AM
C compiler cannot create executables w0lv3rin3 Linux - Software 4 08-07-2004 10:44 AM
C++ compiler cannot create executables IceStorm Linux - Newbie 6 06-14-2004 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:15 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
Open Source Consulting | Domain Registration