Wine does not compile on Fedora 9 x86_64

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Vsen
Level 1
Level 1
Posts: 8
Joined: Tue Oct 28, 2008 6:38 am

Wine does not compile on Fedora 9 x86_64

Post by Vsen »

Hi,
I downloaded wine source from winehq and installed all dependencies as per the wiki:

http://wiki.winehq.org/WineOn64bit

However when i run ./configure,its displays the following and exits:

Code: Select all

$ ./configure 

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

hostname = localhost.localdomain
uname -m = x86_64
uname -r = 2.6.26.5-45.fc9.x86_64
uname -s = Linux
uname -v = #1 SMP Sat Sep 20 03:23:12 EDT 2008

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

/bin/arch              = x86_64
/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/kerberos/sbin
PATH: /usr/lib64/qt-3.3/bin
PATH: /usr/kerberos/bin
PATH: /usr/lib64/ccache
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/real/RealPlayer
PATH: /home/Vsen/bin
PATH: /usr/local/real/RealPlayer
PATH: /usr/local/real/RealPlayer
PATH: /usr/local/real/RealPlayer
PATH: /usr/local/real/RealPlayer
PATH: /usr/local/real/RealPlayer


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

configure:2128: checking build system type
configure:2146: result: x86_64-unknown-linux-gnu
configure:2168: checking host system type
configure:2183: result: x86_64-unknown-linux-gnu
configure:2249: checking whether make sets $(MAKE)
configure:2270: result: yes
configure:2327: checking for gcc
configure:2354: result: gcc -m32
configure:2592: checking for C compiler version
configure:2599: gcc -m32 --version >&5
gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
Copyright (C) 2008 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:2602: $? = 0
configure:2609: gcc -m32 -v >&5
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) 
configure:2612: $? = 0
configure:2619: gcc -m32 -V >&5
gcc: '-V' must come at the start of the command line
configure:2622: $? = 1
configure:2645: checking for C compiler default output file name
configure:2672: gcc -m32 -fno-tree-pre -fno-tree-fre   conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2675: $? = 1
configure:2713: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "1.0.1"
| #define PACKAGE_STRING "Wine 1.0.1"
| #define PACKAGE_BUGREPORT "[email protected]"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2720: 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=set
ac_cv_env_CFLAGS_value='-fno-tree-pre -fno-tree-fre'
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='-fno-tree-pre -fno-tree-fre'
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.1'
PACKAGE_TARNAME='wine'
PACKAGE_VERSION='1.0.1'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PRELINK=''
QUARTZFILES=''
RANLIB=''
RESOLVLIBS=''
RSVG=''
SANEINCL=''
SECURITYLIB=''
SET_MAKE=''
SHELL='/bin/sh'
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.1"
#define PACKAGE_STRING "Wine 1.0.1"
#define PACKAGE_BUGREPORT "[email protected]"

configure: exit 77
This was the stable wine 1.0.1 release.I tried wine 1.1.6 with similar results.Any idea whats causing this?Installing via yum didn't work for me as a few programs I had crashed on wine 1.1.5(the current distro in Fedora repos).Have reported them to bugzilla.

My gcc installation appeared fine when I attempted yum install/update gcc.

Code: Select all

Setting up Install Process
Parsing package install arguments
Package gcc-4.3.0-8.x86_64 already installed and latest version
Nothing to do
Note: The above code is the content of the config.log file generated by wine during the ./configure.Its not the screen output.Sorry! :D
Last edited by Vsen on Tue Oct 28, 2008 7:25 am, edited 1 time in total.
Susan Cragin

Wine does not compile on Fedora 9 x86_64

Post by Susan Cragin »

Where is the config.log? Have you looked at it? Could you send it to me off-list because I'm not sure that this list handles attachments.
I'm not sure I can help you but I think you've got an old gcc, or you've missed an attachment or two. I used to run Ubuntu 64 and I had a similar problem. Perhaps the config.log will jog my memory.
Susan

-----Original Message-----
From: Vsen <[email protected]>
Sent: Oct 28, 2008 7:42 AM
To: [email protected]
Subject: [Wine] Wine does not compile on Fedora 9 x86_64

Hi,
I downloaded wine source from winehq and installed all dependencies as per the wiki:

http://wiki.winehq.org/WineOn64bit

However when i run ./configure,its displays the following and exits:


Code:
$ ./configure

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

hostname = localhost.localdomain
uname -m = x86_64
uname -r = 2.6.26.5-45.fc9.x86_64
uname -s = Linux
uname -v = #1 SMP Sat Sep 20 03:23:12 EDT 2008

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

/bin/arch = x86_64
/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/kerberos/sbin
PATH: /usr/lib64/qt-3.3/bin
PATH: /usr/kerberos/bin
PATH: /usr/lib64/ccache
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/real/RealPlayer
PATH: /home/Vsen/bin
PATH: /usr/local/real/RealPlayer
PATH: /usr/local/real/RealPlayer
PATH: /usr/local/real/RealPlayer
PATH: /usr/local/real/RealPlayer
PATH: /usr/local/real/RealPlayer


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

configure:2128: checking build system type
configure:2146: result: x86_64-unknown-linux-gnu
configure:2168: checking host system type
configure:2183: result: x86_64-unknown-linux-gnu
configure:2249: checking whether make sets $(MAKE)
configure:2270: result: yes
configure:2327: checking for gcc
configure:2354: result: gcc -m32
configure:2592: checking for C compiler version
configure:2599: gcc -m32 --version >&5
gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
Copyright (C) 2008 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:2602: $? = 0
configure:2609: gcc -m32 -v >&5
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC)
configure:2612: $? = 0
configure:2619: gcc -m32 -V >&5
gcc: '-V' must come at the start of the command line
configure:2622: $? = 1
configure:2645: checking for C compiler default output file name
configure:2672: gcc -m32 -fno-tree-pre -fno-tree-fre conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2675: $? = 1
configure:2713: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "1.0.1"
| #define PACKAGE_STRING "Wine 1.0.1"
| #define PACKAGE_BUGREPORT "[email protected]"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2720: 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=set
ac_cv_env_CFLAGS_value='-fno-tree-pre -fno-tree-fre'
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='-fno-tree-pre -fno-tree-fre'
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.1'
PACKAGE_TARNAME='wine'
PACKAGE_VERSION='1.0.1'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PRELINK=''
QUARTZFILES=''
RANLIB=''
RESOLVLIBS=''
RSVG=''
SANEINCL=''
SECURITYLIB=''
SET_MAKE=''
SHELL='/bin/sh'
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.1"
#define PACKAGE_STRING "Wine 1.0.1"
#define PACKAGE_BUGREPORT "[email protected]"

configure: exit 77



This was the stable wine 1.0.1 release.I tried wine 1.1.6 with similar results.Any idea whats causing this?Installing via wine didn't work for me as a few programs I had crashed on wine 1.1.5(the current distro in Fedora repos).Have reported them to bugzilla.



Vsen
Level 1
Level 1
Posts: 8
Joined: Tue Oct 28, 2008 6:38 am

Post by Vsen »

Oh,sorry.That is the config.log file I put up(in code tags),not screen output.My gcc version is the latest in the Fedora 9 repositories.
I can send u the config.log off list if u pm me how to.I couldn't find a way to attach it in this forum.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Wine does not compile on Fedora 9 x86_64

Post by vitamin »

Vsen wrote:Hi,
I downloaded wine source from winehq and installed all dependencies as per the wiki:

http://wiki.winehq.org/WineOn64bit
You did not install all the required 32-bit packages. Looks like you missing the most important one - the 32-bit gcc.
Vsen
Level 1
Level 1
Posts: 8
Joined: Tue Oct 28, 2008 6:38 am

Post by Vsen »

The 32 bit gcc is not mentioned in the dependency list on the wine on 64 website.I copy pasted the entire thing to the terminal while installing.I downloaded the 32 bit gcc but it conflicts with its 64 bit counterpart.
Correct me if I'm wrong,but can the 32 bit gcc generate code for use in Fedora 64 bit?
Wine may require the 32 bit libraries to operate but if its compiled in use for a 32 bit environment,will it run on an x86_64 OS? I hesitate to uninstall the 64 bit gcc because it has several dependencies which relate to important stuff(akmod-fglrx and the like).
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Vsen wrote:The 32 bit gcc is not mentioned in the dependency list on the wine on 64 website.
Then add it there. It's a wiki :)
Vsen wrote:Correct me if I'm wrong,but can the 32 bit gcc generate code for use in Fedora 64 bit?
Of course it can. Any x86_64 distro should be able to run 32-bit apps.
Vsen
Level 1
Level 1
Posts: 8
Joined: Tue Oct 28, 2008 6:38 am

Post by Vsen »

Uninstalled 64 bit gcc and:

Code: Select all

================================================================================
 Package        Arch        Version        Repository                     Size 
================================================================================
Installing:
 gcc            i386        4.3.0-8        gcc-4.3.0-8.i386.rpm           8.1 M
Installing for dependencies:
 libgomp        i386        4.3.0-8        fedora                          61 k

Transaction Summary
================================================================================
Install      2 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total size: 8.1 M
Total download size: 8.1 M
Is this ok [y/N]: y
Downloading Packages:
Downloading DeltaRPMs:
Rebuilding rpms from deltarpms
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : libgomp                                           [1/2] 
  Installing     : gcc                                               [2/2] 

Installed: gcc.i386 0:4.3.0-8
Dependency Installed: libgomp.i386 0:4.3.0-8
Complete!
[root@localhost Download]# cd ..
[root@localhost Vsen]# cd wine-*
[root@localhost wine-1.0.1]# ./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.
:(
Gert van den Berg

Wine does not compile on Fedora 9 x86_64

Post by Gert van den Berg »

On Wed, Oct 29, 2008 at 3:49 PM, vitamin <[email protected]> wrote:
Vsen wrote:
The 32 bit gcc is not mentioned in the dependency list on the wine on 64 website.
Then add it there. It's a wiki :)
Why is the 32-bit version of GCC needed? Doesn't just installing the
libraries needed for cross-compilation (and adding the -m32 or a -b
option for gcc) work? (It would probably require a few libraries and
maybe some make options.... and MIGHT have some issues)

http://en.wikipedia.org/wiki/Cross-comp ... ompilation

http://gcc.gnu.org/onlinedocs/gcc-4.3.2 ... et-Options
(the -m32 option used for some distributions in the wiki seem to be
sufficient to make x86_64 gcc output x86 code...)

http://source.winehq.org/source/configure#L1368
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Wine does not compile on Fedora 9 x86_64

Post by vitamin »

Gert van den Berg wrote:Why is the 32-bit version of GCC needed? Doesn't just installing the
libraries needed for cross-compilation (and adding the -m32 or a -b
option for gcc) work?
That is what I meant under 32-bit gcc. In most cases it really is a separate binary for cross-compiling installed somewhere into lib dir.

I have no idea what all packages are required on FC9.
Vsen
Level 1
Level 1
Posts: 8
Joined: Tue Oct 28, 2008 6:38 am

Post by Vsen »

Got it!! Somehow missed the package "glibc-devel.i386".Wine now compiles in the 64 bit gcc!!!! Thanks a lot for the support guys! :D
Locked