Find the answer to your Linux question:
Results 1 to 7 of 7
Attempting to 'compile' Wine from 'source' but got the following error after running the command: apt-get --build source wine Here are the instructions for doing this: http://www.winehq.org/site/download-deb Also, this is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    12

    Build command 'cd wine-0.9.23~winehq0~ubuntu~6.06 && dpkg-buildpackage -b -uc' failed


    Attempting to 'compile' Wine from 'source' but got the following error after running the command: apt-get --build source wine
    Here are the instructions for doing this: http://www.winehq.org/site/download-deb
    Also, this is my first post at linuxforums.org, if I need to give more information let me know. Thank yous in advance.


    ...
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking whether make sets $(MAKE)... yes
    checking for x86_64-linux-gnu-gcc... gcc -m32
    checking for C compiler default output file name...
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    make: *** [config.status] Error 77
    Build command 'cd wine-0.9.23~winehq0~ubuntu~6.06 && dpkg-buildpackage -b -uc' failed.
    E: Child process failed

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    prefix 'sudo' before apt-get command.

    Code:
    sudo apt-get --build source wine



    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Oct 2006
    Posts
    12
    Yes, did that. Same results though.

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    whats in config.log?




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Just Joined!
    Join Date
    Oct 2006
    Posts
    12

    part of config.log

    Damn, I was gonna post that... I found it and it's pretty long, but here is what I thought could be useful info... also where the error is reported:

    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../libc.a when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.a when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    /usr/bin/ld: cannot find -lc
    collect2: ld returned 1 exit status
    configure:2420: $? = 1
    configure:2458: result:
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME "Wine"
    | #define PACKAGE_TARNAME "wine"
    | #define PACKAGE_VERSION "0.9.23"
    | #define PACKAGE_STRING "Wine 0.9.23"
    | #define PACKAGE_BUGREPORT "wine-devel@winehq.org"
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:2465: error: C compiler cannot create executables
    See `config.log' for more details.

    All of the skipping incompatibles and cannot find -lc. I don't know what it means, but could be part of the prob.

  7. #6
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    Perhaps you forgot the first step ? Install the build dependencies.

    Code:
    sudo apt-get build-dep wine 
    sudo apt-get source -b wine
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  8. #7
    Just Joined!
    Join Date
    Oct 2006
    Posts
    12
    Nope, did that as well..
    But what is the second command you posted?
    I never entered that.. sudo apt-get source -b wine..
    same as sudo apt-get --build source wine?

    hesitant to enter it as it might make things worse

Posting Permissions

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