Problems with compiling wine on 64-bit debian Sid

Questions about Wine on Linux
Locked
giaur
Level 2
Level 2
Posts: 11
Joined: Sun Jan 09, 2011 12:04 pm

Problems with compiling wine on 64-bit debian Sid

Post by giaur »

Hello,

After some changes in Debian Sid: multiarch support and removing all lib32xxx packages I have problem with compiling wine. I really don't want 32-bit chroot and I don't want to compile 64-bit wine version (since it supports only 64-bit windows executables), I rather want to cross compile by " the old way" - 64 bit package containing 32-bit blob (cross compiled).

Unfortunatelly, there are no lib32 packages available any longer. I have multiarch enabled. Can you tell me what 32-bit packages should be installed to compile wine and create package with checkinstall? My result so far:

Code: Select all

hecking 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
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for cpp... cpp
checking whether gcc -m32 works... no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.
So, what 32-bit development libraries I need? How can I check this? Thanks.

[edit]
Also, wine compiled previously (on machine without multiarch and with lib32 dev packages) works on my system.
ZombieRedShirt
Level 3
Level 3
Posts: 86
Joined: Fri Oct 07, 2011 6:25 am

Re: Problems with compiling wine on 64-bit debian Sid

Post by ZombieRedShirt »

We've got the same problem under ubuntu lately as well, no fix yet as far as I know. Hopefully someday soon though.
giaur
Level 2
Level 2
Posts: 11
Joined: Sun Jan 09, 2011 12:04 pm

Re: Problems with compiling wine on 64-bit debian Sid

Post by giaur »

So - there is no known cross compile solution on amd64? I really need to build i386 package inside 32-bit chroot? They say multiarch simplifies cross compiling, so what's the problem?
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problems with compiling wine on 64-bit debian Sid

Post by dimesio »

The problem is your distro's implementation of multiarch.
PeterB
Newbie
Newbie
Posts: 3
Joined: Mon Sep 24, 2012 12:43 pm

Re: Problems with compiling wine on 64-bit debian Sid

Post by PeterB »

giaur wrote: ...
checking whether gcc -m32 works... no
...
You need the multilib package, ie something like gcc-4.7-multilib
Try buildling helloworld.c with the -m32 option before trying to compile wine!

Maybe this helps.
http://www.cyberciti.biz/tips/compile-3 ... linux.html

.
clsv
Newbie
Newbie
Posts: 1
Joined: Wed Dec 05, 2012 1:20 pm

Re: Problems with compiling wine on 64-bit debian Sid

Post by clsv »

You trouble solves

Code: Select all

apt-get install gcc-4.7-multilib[code]

But after we install multilib, we are have new problem:
[code]
checking for X... no
configure: error: X 32-bit development files not found. Wine will be built
without X support, which probably isn't what you want. You will need
to install 32-bit development packages of Xlib/Xfree86 at the very least.
Use the --without-x option if you really want this.
Then i try install xserver-xorg-dev:i386 libfreetype6-dev:i386

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fpc fpc-src gir1.2-gconf-2.0 gir1.2-gnomekeyring-1.0 gir1.2-gtk-2.0 gir1.2-javascriptcoregtk-1.0 gir1.2-javascriptcoregtk-3.0 gir1.2-panelapplet-4.0
  gir1.2-rsvg-2.0 gir1.2-soup-2.4 gir1.2-webkit-1.0 gir1.2-webkit-3.0 libart-2.0-dev libatk1.0-dev libavahi-glib-dev libbonobo2-dev libcaca-dev
  libcairo-script-interpreter2 libcanberra-dev libdbusmenu-glib4 libdbusmenu-gtk3-4 libdbusmenu-gtk4 libdirectfb-extra libgail-common libgconf2-dev
  libgconf2-doc libgmp10:i386 libgnome-keyring-dev libgnome2-dev libgnomevfs2-dev libgomp1:i386 libgtkglext1 libidl-dev libido-0.1-0 libido3-0.1-0
  libindicator3-7 libindicator7 libitm1:i386 libjavascriptcoregtk-1.0-dev libjavascriptcoregtk-3.0-dev libjpeg8-dev libmpc2:i386 libmpfr4:i386 liborbit2-dev
  libpanel-applet-4-doc libpopt-dev libquadmath0:i386 libselinux1-dev libsepol1-dev libslang2-dev libsoup2.4-dev libts-dev libvte-2.90-doc libxcb-render0-dev
  libxcb-shm0-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxfixes-dev libxinerama-dev libxmu-dev libxmu-headers libxrandr-dev libxrender-dev orbit2
  x11proto-composite-dev x11proto-damage-dev x11proto-fixes-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libc6-dev:i386 libpciaccess-dev:i386 libpixman-1-dev:i386 libpthread-stubs0:i386 libpthread-stubs0-dev:i386 libx11-dev:i386 libxau-dev:i386
  libxcb1-dev:i386 libxdmcp-dev:i386 libxkbfile-dev:i386 libxkbfile1:i386 linux-libc-dev:i386 x11proto-dri2-dev x11proto-fonts-dev x11proto-video-dev
  zlib1g-dev:i386
Suggested packages:
  glibc-doc:i386 manpages-dev:i386 libxcb-doc:i386
Recommended packages:
  gcc:i386 c-compiler:i386
The following packages will be REMOVED:
  lazarus libbonoboui2-dev libcairo2-dev libdbusmenu-glib-dev libdbusmenu-gtk-dev libdbusmenu-gtk3-dev libdirectfb-dev libfontconfig1-dev libfreetype6-dev
  libgail-dev libglade2-dev libgnomecanvas2-dev libgnomeui-dev libgtk-3-dev libgtk2.0-dev libgtkglext1-dev libido-0.1-dev libido3-0.1-dev libindicator-dev
  libindicator3-dev libpanel-applet-4-dev libpango1.0-dev libpixman-1-dev librsvg2-dev libsdl1.2-dev libsmpeg-dev libvte-2.90-dev libvte-dev libwebkit-dev
  libwebkitgtk-3.0-dev libwebkitgtk-dev libxft-dev pidgin-dev
The following NEW packages will be installed:
  libc6-dev:i386 libfreetype6-dev:i386 libpciaccess-dev:i386 libpixman-1-dev:i386 libpthread-stubs0:i386 libpthread-stubs0-dev:i386 libx11-dev:i386
  libxau-dev:i386 libxcb1-dev:i386 libxdmcp-dev:i386 libxkbfile-dev:i386 libxkbfile1:i386 linux-libc-dev:i386 x11proto-dri2-dev x11proto-fonts-dev
  x11proto-video-dev xserver-xorg-dev:i386 zlib1g-dev:i386
0 upgraded, 18 newly installed, 33 to remove and 2 not upgraded.
Need to get 9022 kB of archives.
After this operation, 259 MB disk space will be freed.
Do you want to continue [Y/n]? 
[code]

What can we do?
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problems with compiling wine on 64-bit debian Sid

Post by dimesio »

My understanding is that you need a chroot to compile 32 bit Wine on current versions of Debian and its derivatives.
Locked