LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Wine, C compiler cannot create executables (http://www.linuxquestions.org/questions/linux-software-2/wine-c-compiler-cannot-create-executables-382702/)

1veedo 11-13-2005 10:18 AM

Wine, C compiler cannot create executables
 
Whenver I run ./configure for wine I get
Code:

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.

The config.log looks like
Code:

...
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ------------- ##
## Output files. ##
## ------------- ##

MAKE_DLL_RULES=''
MAKE_IMPLIB_RULES=''
MAKE_LIB_RULES=''
MAKE_PROG_RULES=''
MAKE_RULES=''
MAKE_TEST_RULES=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT "wine-devel@winehq.org"
#define PACKAGE_NAME "Wine"
#define PACKAGE_STRING "Wine 0.9.1"
#define PACKAGE_TARNAME "wine"
#define PACKAGE_VERSION "0.9.1"

configure: exit 77

I've done plenty of looking and have tried everything I found. lobgc6-dev is installed. So are gcc etc etc.

btmiller 11-13-2005 11:24 AM

If you look in your config.log, you should see the source code ofthe problem it failed on. Chances are you're missing some component needed to compile and link a working executable (the library headers, or some part of binutils). Try entering the following program:

Code:

#include <stdio.h>

int main(void)
{
  puts("Hello, world.");
  return 0;
}

into a file called myprog.c and then compile:

gcc myprog.c -o myprog

Do you get any errors? Does running ./myprog print "Hello, world." on your terminal?

1veedo 11-13-2005 12:02 PM

I saw that in my google searches.
Code:

azevedo@ubuntu:~$ gcc hi.c -o hi
hi.c:7:2: warning: no newline at end of file
azevedo@ubuntu:~$ ./hi
Hello, world.

Also I have binutils but maybe not all of it was inccluded in the latest apt-get install?


All times are GMT -5. The time now is 02:26 PM.