Noob trying to ./configure Wine source, config.log error

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
gnivler
Level 3
Level 3
Posts: 54
Joined: Wed May 07, 2008 9:30 pm

Noob trying to ./configure Wine source, config.log error

Post by gnivler »

I've been searching here and at the ubuntu forums and can't seem to find a solution, I think it's pretty simple though. I've checked for libc6 and libc6-dev and they both appear to be installed, IIRC they fixed a previous ./configure issue I had with some other source.

mason@mason-desktop:~/Desktop/wine-1.0-rc1$ ./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.

All I'm really trying to do it compile the dinput_test file from dlls/dinput/test and I am not very experienced at compiling, likely missed something basic. What I concluded is that I need to configure from the root of the source before I'll be able to compile the dinput_test, which may be a bad conclusion :)

This is the top of the config.log:

Thanks in advance for any info, sorry if I left something important out.

Code: Select all

## --------- ##
## Platform. ##
## --------- ##

hostname = mason-desktop
uname -m = x86_64
uname -r = 2.6.24-16-generic
uname -s = Linux
uname -v = #1 SMP Thu Apr 10 12:47:45 UTC 2008

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2121: checking build system type
configure:2139: result: x86_64-unknown-linux-gnu
configure:2161: checking host system type
configure:2176: result: x86_64-unknown-linux-gnu
configure:2242: checking whether make sets $(MAKE)
configure:2263: result: yes
configure:2320: checking for gcc
configure:2347: result: gcc -m32
configure:2585: checking for C compiler version
configure:2592: gcc -m32 --version >&5
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2595: $? = 0
configure:2602: gcc -m32 -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-z
lib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --pr
ogram-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-l
inux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
configure:2605: $? = 0
configure:2612: gcc -m32 -V >&5
gcc: '-V' must come at the start of the command line
configure:2615: $? = 1
configure:2638: checking for C compiler default output file name
configure:2665: gcc -m32    conftest.c  >&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
configure:2668: $? = 1
configure:2706: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "1.0-rc1"
| #define PACKAGE_STRING "Wine 1.0-rc1"
| #define PACKAGE_BUGREPORT "[email protected]"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2713: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##
.... (cut)
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Noob trying to ./configure Wine source, config.log error

Post by vitamin »

gnivler wrote:mason@mason-desktop:~/Desktop/wine-1.0-rc1$ ./configure
Use

Code: Select all

./configure --verbose
instead.

But before that read http://wiki.winehq.org/Recommended_Packages
gnivler
Level 3
Level 3
Posts: 54
Joined: Wed May 07, 2008 9:30 pm

Noob trying to ./configure Wine source, config.log error

Post by gnivler »

gnivler wrote:
mason@mason-desktop:~/Desktop/wine-1.0-rc1$ ./configure
Use
Code:
./configure --verbose

instead.

Ok, did so. I deleted and re-extracted the source tarball just to
make sure, before trying with --verbose. The terminal output looks
the same, and this is the config.log, including the whole thing sorry
for the length: (it looks the same to me?)
Using Ubuntu Hardy x64 by the way.

Code: Select all

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Wine configure 1.0-rc1, which was
generated by GNU Autoconf 2.61.  Invocation command line was

$ ./configure --verbose

## --------- ##
## Platform. ##
## --------- ##

hostname = mason-desktop
uname -m = x86_64
uname -r = 2.6.24-16-generic
uname -s = Linux
uname -v = #1 SMP Thu Apr 10 12:47:45 UTC 2008

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2121: checking build system type
configure:2139: result: x86_64-unknown-linux-gnu
configure:2161: checking host system type
configure:2176: result: x86_64-unknown-linux-gnu
configure:2242: checking whether make sets $(MAKE)
configure:2263: result: yes
configure:2320: checking for gcc
configure:2347: result: gcc -m32
configure:2585: checking for C compiler version
configure:2592: gcc -m32 --version >&5
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2595: $? = 0
configure:2602: gcc -m32 -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-z
lib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.2 --pr
ogram-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-mpfr --enable-checking=release
--build=x86_64-l
inux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
configure:2605: $? = 0
configure:2612: gcc -m32 -V >&5
gcc: '-V' must come at the start of the command line
configure:2615: $? = 1
configure:2638: checking for C compiler default output file name
configure:2665: gcc -m32    conftest.c  >&5
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
configure:2668: $? = 1
configure:2706: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "1.0-rc1"
| #define PACKAGE_STRING "Wine 1.0-rc1"
| #define PACKAGE_BUGREPORT "[email protected]"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2713: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_prog_ac_ct_CC='gcc -m32'
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ALSALIBS=''
AR=''
ARFLAGS=''
AS='as --32'
AUDIOIOLIBS=''
BISON=''
BUILTINFLAG=''
CARBONLIB=''
CC='gcc -m32'
CFLAGS=''
COREAUDIO=''
COREFOUNDATIONLIB=''
CPP=''
CPPBIN=''
CPPFLAGS=''
CROSSCC=''
CROSSTEST=''
CROSSWINDRES=''
CRTLIBS=''
CXX='g++ -m32'
CXXFLAGS=''
DEFS=''
DEPENDENCIES=''
DISKARBITRATIONLIB=''
DLLEXT=''
DLLFLAGS=''
DLLTOOL=''
DLLWRAP=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ESDCONFIG=''
ESDINCL=''
ESDLIBS=''
EXEEXT=''
EXTRACFLAGS=''
EXTRA_BINARIES=''
FLEX=''
FONTCONFIGINCL=''
FONTFORGE=''
FONTSSUBDIRS=''
FREETYPEINCL=''
FREETYPELIBS=''
GLU32FILES=''
GPHOTO2INCL=''
GPHOTO2LIBS=''
GREP=''
HALINCL=''
ICOTOOL=''
IMPLIBEXT=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
IOKITLIB=''
LCMSLIBS=''
LD='ld -m elf_i386'
LDAPLIBS=''
LDCONFIG=''
LDD=''
LDDLLFLAGS=''
LDEXECFLAGS=''
LDFLAGS=''
LDPATH=''
LDRPATH_INSTALL=''
LDRPATH_LOCAL=''
LDSHARED=''
LIBDL=''
LIBEXT=''
LIBOBJS=''
LIBPOLL=''
LIBPTHREAD=''
LIBS=''
LINT=''
LINTFLAGS=''
LN=''
LN_S=''
LTLIBOBJS=''
MAINTAINER_MODE='#'
MAIN_BINARY=''
MINGWAR=''
NASLIBS=''
OBJEXT=''
OPENGLFILES=''
OPENGL_LIBS=''
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='Wine'
PACKAGE_STRING='Wine 1.0-rc1'
PACKAGE_TARNAME='wine'
PACKAGE_VERSION='1.0-rc1'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PRELINK=''
QUARTZFILES=''
RANLIB=''
RESOLVLIBS=''
RSVG=''
SANEINCL=''
SECURITYLIB=''
SET_MAKE=''
SHELL='/bin/bash'
SOCKETLIBS=''
STRIP=''
TOOLSDIR=''
WIN16_FILES='$(WIN16_FILES)'
WIN16_INSTALL='$(WIN16_INSTALL)'
WINDRES=''
XFILES=''
XLIB=''
XMKMF=''
XML2INCL=''
XML2LIBS=''
XSLTINCL=''
XSLTLIBS=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_AS=''
ac_ct_CC='gcc -m32'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
ft_devel=''
gphoto2_devel=''
gphoto2port_devel=''
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='i386'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sane_devel=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ------------------- ##
## File substitutions. ##
## ------------------- ##

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

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

#define PACKAGE_NAME "Wine"
#define PACKAGE_TARNAME "wine"
#define PACKAGE_VERSION "1.0-rc1"
#define PACKAGE_STRING "Wine 1.0-rc1"
#define PACKAGE_BUGREPORT "[email protected]"

configure: exit 77
Thank you!
James McKenzie

Noob trying to ./configure Wine source, config.log error

Post by James McKenzie »

gnivler wrote:
I've been searching here and at the ubuntu forums and can't seem to find a solution, I think it's pretty simple though. I've checked for libc6 and libc6-dev and they both appear to be installed, IIRC they fixed a previous ./configure issue I had with some other source.

mason@mason-desktop:~/Desktop/wine-1.0-rc1$ ./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.

All I'm really trying to do it compile the dinput_test file from dlls/dinput/test and I am not very experienced at compiling, likely missed something basic. What I concluded is that I need to configure from the root of the source before I'll be able to compile the dinput_test, which may be a bad conclusion :)

This is the top of the config.log:

Thanks in advance for any info, sorry if I left something important out.


Code:
## --------- ##
## Platform. ##
## --------- ##

hostname = mason-desktop
uname -m = x86_64
uname -r = 2.6.24-16-generic
uname -s = Linux
uname -v = #1 SMP Thu Apr 10 12:47:45 UTC 2008

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2121: checking build system type
configure:2139: result: x86_64-unknown-linux-gnu
configure:2161: checking host system type
configure:2176: result: x86_64-unknown-linux-gnu
configure:2242: checking whether make sets $(MAKE)
configure:2263: result: yes
configure:2320: checking for gcc
configure:2347: result: gcc -m32
configure:2585: checking for C compiler version
configure:2592: gcc -m32 --version >&5
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
You need to install 32 bit libraries in order to build Wine. This is
discussed in the building Wine on 64 bit Linux instructions in the
Developer documentation.

James McKenzie
gnivler
Level 3
Level 3
Posts: 54
Joined: Wed May 07, 2008 9:30 pm

Noob trying to ./configure Wine source, config.log error

Post by gnivler »

On Sat, 2008-05-10 at 19:09 -0700, James McKenzie wrote:
gnivler wrote:
I've been searching here and at the ubuntu forums and can't seem to find a solution, I think it's pretty simple though. I've checked for libc6 and libc6-dev and they both appear to be installed, IIRC they fixed a previous ./configure issue I had with some other source.

mason@mason-desktop:~/Desktop/wine-1.0-rc1$ ./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.

All I'm really trying to do it compile the dinput_test file from dlls/dinput/test and I am not very experienced at compiling, likely missed something basic. What I concluded is that I need to configure from the root of the source before I'll be able to compile the dinput_test, which may be a bad conclusion :)

This is the top of the config.log:

Thanks in advance for any info, sorry if I left something important out.


Code:
## --------- ##
## Platform. ##
## --------- ##

hostname = mason-desktop
uname -m = x86_64
uname -r = 2.6.24-16-generic
uname -s = Linux
uname -v = #1 SMP Thu Apr 10 12:47:45 UTC 2008

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2121: checking build system type
configure:2139: result: x86_64-unknown-linux-gnu
configure:2161: checking host system type
configure:2176: result: x86_64-unknown-linux-gnu
configure:2242: checking whether make sets $(MAKE)
configure:2263: result: yes
configure:2320: checking for gcc
configure:2347: result: gcc -m32
configure:2585: checking for C compiler version
configure:2592: gcc -m32 --version >&5
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
You need to install 32 bit libraries in order to build Wine. This is
discussed in the building Wine on 64 bit Linux instructions in the
Developer documentation.

James McKenzie
Aha, thank you for the tip. I had a feeling it was something pretty low
level I had missed. Just doing the apt-get build-dep wine is giving me
a boatload of stuff, ~52megs compressed 199megs uncompressed. Small
problem :X

I think I will be ok with these docs now, will post back if I can't sort
it out.
gnivler
Level 3
Level 3
Posts: 54
Joined: Wed May 07, 2008 9:30 pm

Re: Noob trying to ./configure Wine source, config.log error

Post by gnivler »

vitamin wrote:But before that read http://wiki.winehq.org/Recommended_Packages
woops I missed that line, reading now
gnivler
Level 3
Level 3
Posts: 54
Joined: Wed May 07, 2008 9:30 pm

Post by gnivler »

Success, thanks again.
Locked