Results 1 to 8 of 8

Thread: can't install wine from source - 'Cannot create executables'

  1. #1
    Join Date
    Apr 2008
    Beans
    968

    Cool can't install wine from source - 'Cannot create executables'

    Hey,

    I'm trying to install the latest wine version from source. Since I seem to be having a fair few problems with it recently. Last thing that seemed to go wrong is that I always get a 'Segmentation fault' while running programs.

    So now I'm trying to reinstall the latest version to see if it can fix anything, but now gcc is putting out the error 'Cannot create executables'

    I have build-essentials installed.

    This is the config.log that came out -

    Code:
    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.1.8, which was
    generated by GNU Autoconf 2.63.  Invocation command line was
    
      $ ./configure 
    
    ## --------- ##
    ## Platform. ##
    ## --------- ##
    
    hostname = theo-desktop
    uname -m = x86_64
    uname -r = 2.6.27-7-generic
    uname -s = Linux
    uname -v = #1 SMP Tue Nov 4 19:33:06 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/X11R6/bin
    
    
    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##
    
    configure:2279: checking build system type
    configure:2297: result: x86_64-unknown-linux-gnu
    configure:2319: checking host system type
    configure:2334: result: x86_64-unknown-linux-gnu
    configure:2401: checking whether make sets $(MAKE)
    configure:2423: result: yes
    configure:2480: checking for gcc
    configure:2507: result: gcc -m32
    configure:2739: checking for C compiler version
    configure:2747: gcc -m32 --version >&5
    gcc (Ubuntu 4.3.2-1ubuntu11) 4.3.2
    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:2751: $? = 0
    configure:2758: gcc -m32 -v >&5
    Using built-in specs.
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
    Thread model: posix
    gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) 
    configure:2762: $? = 0
    configure:2769: gcc -m32 -V >&5
    gcc: '-V' must come at the start of the command line
    configure:2773: $? = 1
    configure:2796: checking for C compiler default output file name
    configure:2818: gcc -m32    conftest.c  >&5
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/libgcc.a when searching for -lgcc
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/libgcc.a when searching for -lgcc
    /usr/bin/ld: cannot find -lgcc
    collect2: ld returned 1 exit status
    configure:2822: $? = 1
    configure:2860: result: 
    configure: failed program was:
    | /* confdefs.h.  */
    | #define PACKAGE_NAME "Wine"
    | #define PACKAGE_TARNAME "wine"
    | #define PACKAGE_VERSION "1.1.8"
    | #define PACKAGE_STRING "Wine 1.1.8"
    | #define PACKAGE_BUGREPORT "wine-devel@winehq.org"
    | /* end confdefs.h.  */
    | 
    | int
    | main ()
    | {
    | 
    |   ;
    |   return 0;
    | }
    configure:2866: error: in `/home/theo/Desktop/wine-1.1.8':
    configure:2869: 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. ##
    ## ----------------- ##
    
    ALL_DLL_DIRS=''
    ALL_IMPLIB_DIRS=''
    ALL_MAKEFILES=''
    ALL_MAKEFILE_DEPENDS=''
    ALL_MAKERULES=''
    ALL_PROGRAM_BIN_INSTALL_DIRS=''
    ALL_PROGRAM_DIRS=''
    ALL_PROGRAM_INSTALL_DIRS=''
    ALL_TEST_DIRS=''
    ALL_TOP_DIRS=''
    ALL_WINETEST_DEPENDS=''
    ALSALIBS=''
    AR=''
    ARFLAGS=''
    AS='as --32'
    AUDIOIOLIBS=''
    BISON=''
    BUILTINFLAG=''
    CARBONLIB=''
    CC='gcc -m32'
    CFLAGS=''
    COREAUDIO=''
    COREFOUNDATIONLIB=''
    CPP=''
    CPPBIN=''
    CPPFLAGS=''
    CROSSCC=''
    CROSSTEST=''
    CROSSWINDRES=''
    CRTLIBS=''
    CUPSINCL=''
    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=''
    FREETYPEINCL=''
    FREETYPELIBS=''
    GNUTLSINCL=''
    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=''
    NM=''
    OBJEXT=''
    OPENGL_LIBS=''
    PACKAGE_BUGREPORT='wine-devel@winehq.org'
    PACKAGE_NAME='Wine'
    PACKAGE_STRING='Wine 1.1.8'
    PACKAGE_TARNAME='wine'
    PACKAGE_VERSION='1.1.8'
    PATH_SEPARATOR=':'
    PKG_CONFIG=''
    PRELINK=''
    RANLIB=''
    RESOLVLIBS=''
    RSVG=''
    SANEINCL=''
    SECURITYLIB=''
    SET_MAKE=''
    SHELL='/bin/bash'
    SOCKETLIBS=''
    STRIP=''
    TOOLSDIR=''
    WIN16_FILES='$(WIN16_FILES)'
    WIN16_INSTALL='$(WIN16_INSTALL)'
    WINDRES=''
    XLIB=''
    XMKMF=''
    XML2INCL=''
    XML2LIBS=''
    XSLTINCL=''
    XSLTLIBS=''
    X_CFLAGS=''
    X_EXTRA_LIBS=''
    X_LIBS=''
    X_PRE_LIBS=''
    ac_ct_AR=''
    ac_ct_AS=''
    ac_ct_CC='gcc -m32'
    ac_ct_CXX=''
    ac_ct_LD=''
    ac_ct_NM=''
    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.1.8"
    #define PACKAGE_STRING "Wine 1.1.8"
    #define PACKAGE_BUGREPORT "wine-devel@winehq.org"
    
    configure: exit 77

  2. #2
    Join Date
    May 2008
    Location
    Relativity
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: can't install wine from source - 'Cannot create executables'

    Quote Originally Posted by themusicalduck View Post
    Hey,

    I'm trying to install the latest wine version from source. Since I seem to be having a fair few problems with it recently. Last thing that seemed to go wrong is that I always get a 'Segmentation fault' while running programs.

    So now I'm trying to reinstall the latest version to see if it can fix anything, but now gcc is putting out the error 'Cannot create executables'

    I have build-essentials installed.

    This is the config.log that came out -

    [CODE]T
    Thread model: posix
    gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)
    configure:2762: $? = 0
    configure:2769: gcc -m32 -V >&5
    gcc: '-V' must come at the start of the command line
    configure:2773: $? = 1
    configure:2796: checking for C compiler default output file name
    configure:2818: gcc -m32 conftest.c >&5
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/libgcc.a when searching for -lgcc
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/libgcc.a when searching for -lgcc
    /usr/bin/ld: cannot find -lgcc <------------********
    collect2: ld returned 1 exit status
    Make sure you have the all the dependencies installed before doing the configure. Some gcc library isn't installed. Are you doing a straight build or a build from dpkg --build source?
    http://wiki.winehq.org/Recommended_Packages has handy shell scripts to do the dependency installs for all versions. http://wiki.winehq.org/WineOn64bit has the rest of the info.
    JonDo
    'Weird magic happens here' Error: Success

  3. #3
    Join Date
    Oct 2005
    Location
    U.S.A.
    Beans
    4,164
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: can't install wine from source - 'Cannot create executables'

    Just curious, is there a particular reason you are compiling from source, rather than installing the pre-compiled Ubuntu package from WineHQ?

    http://www.winehq.org/site/download-deb

    Linux User #355330 | Ubuntu User #15618 | Last.FM

  4. #4
    Join Date
    Apr 2008
    Beans
    968

    Re: can't install wine from source - 'Cannot create executables'

    The only reason is to get the very latest version and to see if compiling it would fix my segfault problem.

    I tried following the instructions on the link you gave for installing the pro-compile deb and I still get the same error. Searching on google doesn't seem to come up with anything useful apart from a bug that was in a previous version.

    Are there any better things I could do to try and fix the error?

  5. #5
    Join Date
    May 2008
    Location
    Relativity
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: can't install wine from source - 'Cannot create executables'

    Quote Originally Posted by themusicalduck View Post
    The only reason is to get the very latest version and to see if compiling it would fix my segfault problem.

    I tried following the instructions on the link you gave for installing the pro-compile deb and I still get the same error. Searching on google doesn't seem to come up with anything useful apart from a bug that was in a previous version.

    Are there any better things I could do to try and fix the error?
    Does Wine itself segfault out or does the Windows program segfault? Weird.
    JonDo
    'Weird magic happens here' Error: Success

  6. #6
    Join Date
    Apr 2008
    Beans
    968

    Re: can't install wine from source - 'Cannot create executables'

    Wine segfaults I think. I try to run a windows exe in the terminal and after a few seconds it comes up with Segfault error, nothing else.

    Winecfg and regedit does work though..

  7. #7
    Join Date
    Oct 2005
    Location
    U.S.A.
    Beans
    4,164
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: can't install wine from source - 'Cannot create executables'

    The WineHQ repository has the latest version (1.1.8) and it should be no different from one you would compile yourself.

    As for your compile error, it looks like you have an incompatibility of some kind. Are you specifying the compiler as in the instructions Dizzle posted?

    On the subject of the error that prompted this compile quest, it might help if you posted the actual terminal output from Wine, it may contain some information that would explain what is happening. Also, what application are you trying to run?

    Linux User #355330 | Ubuntu User #15618 | Last.FM

  8. #8
    Join Date
    Apr 2008
    Beans
    968

    Re: can't install wine from source - 'Cannot create executables'

    Ok, it seems the problem started after installing a certain program. Running that program gave a segfault, then when I tried to run other programs which I had backed up before purging wine, the same would happen. So I thought it was a problem with all .exe files. Now I've copied the files back to c drive, they do actually work. the installed program still segfaults, but it's not so important.

    Only one strange thing now with wine, is that I can't set it as the default program to run .exe files. If I click on an exe, it tries to open it as an archive. Since I've got this thread on wine already, can you think of any way to fix this?
    Last edited by themusicalduck; November 18th, 2008 at 09:10 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •