Building Biarch Wine On Ubuntu

Questions about Wine on Linux
Post Reply
GirishSharma
Newbie
Newbie
Posts: 1
Joined: Tue Apr 23, 2019 7:12 am

Building Biarch Wine On Ubuntu

Post by GirishSharma » Tue Apr 23, 2019 7:25 am

Hello,
I am following https://wiki.winehq.org/Building_Biarch_Wine_On_Ubuntu link to build wine32 and wine64 on my 64 bit Ubuntu 19.04 home PC. I have successfully build wine64 but failed to build wine32.

In the above link I got below errors and moved ahead :

patch -p1 <../fix.patch
and I got below error.
bash: ../fix.patch: No such file or directory

Ok, so I overlooked it and moved ahead.

Code: Select all

root@my32bitbox:~/wine64# sudo apt-get install python-software-properties git-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'git' instead of 'git-core'
Package python-software-properties 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
However the following packages replace it:
  software-properties-common

E: Package 'python-software-properties' has no installation candidate
still, I moved ahead. At the stage of Build 32-bit Wine :

/home/girish/wine32 is my pwd

sudo make clean
and then when I says
sudo make install

it works for a while and stops by :

...
...

Code: Select all

gcc -c -o register.o /home/girish/wine-git/dlls/winecrt0/register.c -I. \
  -I/home/girish/wine-git/dlls/winecrt0 -I../../include -I/home/girish/wine-git/include \
  -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement \
  -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes \
  -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op \
  -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
gcc -c -o stub.o /home/girish/wine-git/dlls/winecrt0/stub.c -I. -I/home/girish/wine-git/dlls/winecrt0 \
  -I../../include -I/home/girish/wine-git/include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe \
  -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \
  -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 \
  -gstrict-dwarf -fno-omit-frame-pointer -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
rm -f libwinecrt0.a
ar rc libwinecrt0.a debug.o delay_load.o dll_entry.o dll_main.o drv_entry.o exception.o exe16_entry.o \
  exe_entry.o exe_main.o exe_wentry.o exe_wmain.o init.o register.o stub.o
ranlib libwinecrt0.a
make[1]: Leaving directory '/home/girish/wine32/dlls/winecrt0'
make[1]: Entering directory '/home/girish/wine32/dlls/wmcodecdspuuid'
gcc -c -o wmcodecdspuuid.o /home/girish/wine-git/dlls/wmcodecdspuuid/wmcodecdspuuid.c -I. \
  -I/home/girish/wine-git/dlls/wmcodecdspuuid -I../../include -I/home/girish/wine-git/include \
  -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement \
  -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes \
  -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op \
  -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
rm -f libwmcodecdspuuid.a
ar rc libwmcodecdspuuid.a wmcodecdspuuid.o
ranlib libwmcodecdspuuid.a
make[1]: Leaving directory '/home/girish/wine32/dlls/wmcodecdspuuid'
rm -f dlls/libd3dcompiler.def && ln -s d3dcompiler_47/libd3dcompiler.def dlls/libd3dcompiler.def
rm -f dlls/libd3dx10.def && ln -s d3dx10_43/libd3dx10.def dlls/libd3dx10.def
rm -f dlls/libd3dx11.def && ln -s d3dx11_43/libd3dx11.def dlls/libd3dx11.def
rm -f dlls/libd3dx9.def && ln -s d3dx9_36/libd3dx9.def dlls/libd3dx9.def
rm -f dlls/libhtmlhelp.def && ln -s hhctrl.ocx/libhtmlhelp.def dlls/libhtmlhelp.def
rm -f dlls/libhidclass.def && ln -s hidclass.sys/libhidclass.def dlls/libhidclass.def
rm -f dlls/libkernel.def && ln -s krnl386.exe16/libkernel.def dlls/libkernel.def
rm -f dlls/libntoskrnl.def && ln -s ntoskrnl.exe/libntoskrnl.def dlls/libntoskrnl.def
rm -f dlls/libusbd.def && ln -s usbd.sys/libusbd.def dlls/libusbd.def
rm -f dlls/libwinspool.def && ln -s winspool.drv/libwinspool.def dlls/libwinspool.def
rm -f dlls/libxinput.def && ln -s xinput1_3/libxinput.def dlls/libxinput.def
make[1]: Entering directory '/home/girish/wine32/dlls/acledit'
gcc -c -o main.o /home/girish/wine-git/dlls/acledit/main.c -I. -I/home/girish/wine-git/dlls/acledit \
  -I../../include -I/home/girish/wine-git/include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe \
  -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \
  -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 \
  -gstrict-dwarf -fno-omit-frame-pointer -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
/home/girish/wine32-tools/tools/winegcc/winegcc -o acledit.dll.so -B/home/girish/wine32-tools/tools/winebuild \
  --sysroot=../.. -fasynchronous-unwind-tables -shared \
  /home/girish/wine-git/dlls/acledit/acledit.spec main.o ../../libs/port/libwine_port.a 
acledit.KsrzVj.s: Assembler messages:
acledit.KsrzVj.s:321: Error: invalid instruction suffix for `push'
acledit.KsrzVj.s:325: Error: invalid instruction suffix for `push'
acledit.KsrzVj.s:336: Error: invalid instruction suffix for `push'
acledit.KsrzVj.s:340: Error: invalid instruction suffix for `push'
winebuild: gcc failed with status 1
winegcc: /home/girish/wine32-tools/tools/winebuild/winebuild failed
make[1]: *** [Makefile:187: acledit.dll.so] Error 2
make[1]: Leaving directory '/home/girish/wine32/dlls/acledit'
make: *** [Makefile:7972: dlls/acledit] Error 2
I don't know what else I need to configure when wine64 is working fine.

Kindly help me.

User avatar
Bob Wya
Level 12
Level 12
Posts: 2777
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Building Biarch Wine On Ubuntu

Post by Bob Wya » Wed Jun 05, 2019 5:33 pm

@GirishSharma

I know this thread is over a month old now... But I'm just triaging older threads, with no responses.
Just wondering if you have had any progress on your Wine building issue?

Bob

Cybermax
Level 4
Level 4
Posts: 194
Joined: Fri Dec 01, 2017 5:26 pm

Re: Building Biarch Wine On Ubuntu

Post by Cybermax » Wed Jun 12, 2019 2:23 am

GirishSharma wrote:Hello,
I am following https://wiki.winehq.org/Building_Biarch_Wine_On_Ubuntu link to build wine32 and wine64 on my 64 bit Ubuntu 19.04 home PC. I have successfully build wine64 but failed to build wine32.

In the above link I got below errors and moved ahead :

patch -p1 <../fix.patch
and I got below error.
bash: ../fix.patch: No such file or directory

Ok, so I overlooked it and moved ahead.

I don't know what else I need to configure when wine64 is working fine.

Kindly help me.
Well, as Bob points out above here, have you figured this out yet? :)

In any way.. The reference to fix.patch is just a explanatory thing IF you need to custom-patch wine and THAT is why you are compiling yourself... So the "fix.patch" is just an example (and thats why it does not work).

Other than that it works fine with a wee bit of customization to make a lxc container for 32-bit compile with Ubuntu, so there should not be a reason this won't work.

Post Reply