Building latest Wine-GIT on AMD64 still fails

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Quix0r
Level 3
Level 3
Posts: 50
Joined: Sat May 10, 2008 8:23 am

Building latest Wine-GIT on AMD64 still fails

Post by Quix0r »

I have Debian Unstable AMD64 on a truly 64-bit CPU (Intel Core 2 Quad) but still I have this failure:

Code: Select all

checking whether ccache gcc -m32 works... no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.
With 32-bit packages it worked like a charm. :) On my system I just need to call "./configure" to get it working.

I have the following extra environment variables:

Code: Select all

declare -x CXX="ccache g++"
declare -x CXXFLAGS="-g -O0"
declare -x CC="ccache gcc"
So compilation of so much code doesn't hurt so much... ;) And gives nice trackbacks for debugging.

I tried to following these instructions but they ended up with this:

Code: Select all

# apt-get install ia32-apt-get
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ia32-apt-get is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ia32-apt-get has no installation candidate
Do I need some special repositories? I have usual plus some extra repos not relevant for Wine.

Any help is much appreciated. :)

Q
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Building latest Wine-GIT on AMD64 still fails

Post by vitamin »

Quix0r wrote:checking whether ccache gcc -m32 works... no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.
This means you don't have gcc-32 installed (or whatever the package name for it).

Wine is a 32-bit app and needs gcc that can create 32-bit binaries as well as all required libraries. http://wiki.winehq.org/WineOn64bit
Quix0r
Level 3
Level 3
Posts: 50
Joined: Sat May 10, 2008 8:23 am

Post by Quix0r »

Here is the failing test:

Code: Select all

configure:4058: ccache gcc -m32 -o conftest -g -O2   conftest.c  >&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
configure:4058: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "1.1.39"
| #define PACKAGE_STRING "Wine 1.1.39"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL "http://www.winehq.org"
| #define EXEEXT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
The required package lib32gcc1 is installed. So when I query for libggc.a I found this:

Code: Select all

$ dpkg-query -S libgcc.a
gcc-4.3: /usr/lib/gcc/x86_64-linux-gnu/4.3/libgcc.a
This does mean I need the 32-bit version of that package? But like I said some lines above, that I already followed the instructions and that there is no ia32-apt-get package.

The same applies to this out-dated link:
http://packages.debian.org/unstable/main/ia32-apt-get
No such package.
And search results:
http://packages.debian.org/search?keywo ... ection=all

Any ideas? Was it removed? As I can see the mentioned shells script does not contain my distri and as I can see so far, I have already installed all available ia32 and lib32 packages...

I'm out of ideas here.

BTW: I installed a 32-bit version of wine before I upgraded my whole Debian system 64-bit so I can still have wine, but it is quite out-dated...
Quix0r
Level 3
Level 3
Posts: 50
Joined: Sat May 10, 2008 8:23 am

Post by Quix0r »

Sorry for double-posting:

I mixed lib32gcc and gcc-4.3 in my previous post. Don't get confused. ;)
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Quix0r wrote:I found this:

Code: Select all

$ dpkg-query -S libgcc.a
gcc-4.3: /usr/lib/gcc/x86_64-linux-gnu/4.3/libgcc.a
This does mean I need the 32-bit version of that package? But like I said some lines above, that I already followed the instructions and that there is no ia32-apt-get package.
Sounds like disto bug to me. Ask / report problems to them. With this problem you won't be able to build anything 32-bit, not just Wine.
Cloudef
Level 4
Level 4
Posts: 138
Joined: Wed Mar 18, 2009 3:10 pm

Post by Cloudef »

I had the same issue with latest git on Karmic. I just removed the check for the M32 build thingy.. And then turned out i missed some libraries (They added few more to latest git? or distro update broke?)

Anyways, it works now again =)
Quix0r
Level 3
Level 3
Posts: 50
Joined: Sat May 10, 2008 8:23 am

Post by Quix0r »

I still have no luck. :( I have tried to remove the m32-check. Configure then works but I got assembler errors later on, so there is need of other fix for this.

I update my dsitro now so let's see if I have more luck. :)
Locked