[Wine]Building wine-i386 on x86_64 linux
Luke Ross
lukeross at sys3175.co.uk
Thu Sep 30 05:10:19 CDT 2004
Hi,
I'm trying to build Wine as a 32 bit program on my x86_64 machine,
running Fedora Core 2. I downloaded Wine-20040914.tar.gz specified that
I wanted to use the 32-bit compilers with:
CC=/usr/bin/i386-redhat-linux7-gcc
CXX=/usr/bin/i386-redhat-linux7-g++ CPP_FLAGS=-m32 CXXFLAGS=-m32
./configure
I then did make depend and make, and everything appears to be being
built with the correct compilers until:
../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./ddraw.spec
convert.o dclipper/main.o ddraw/hal.o ddraw/main.o ddraw/thunks.o
ddraw/user.o dpalette/hal.o dpalette/main.o dsurface/dib.o
dsurface/fakezbuffer.o dsurface/gamma.o dsurface/hal.o dsurface/main.o
dsurface/thunks.o dsurface/user.o dsurface/wndproc.o helper.o main.o
regsvr.o struct_convert.o ddraw.dll.dbg.o version.res -o ddraw.dll.so
-L../../dlls -lole32 -luser32 -lgdi32 -ladvapi32 -lkernel32
-L../../libs/wine -lwine -ldxguid -luuid -L/usr/X11R6/lib64 -lXext
-lX11 -L../../libs/port -lwine_port
ld: Relocatable linking with relocations from format elf32-i386
(convert.o) to format elf64-x86-64 (ddraw.dll-FPjYN2.spec.c.uxQvD5.o) is
not supported
./ddraw.spec: ld -r failed with status 256
winegcc: ../../tools/winebuild/winebuild failed.
make[2]: *** [ddraw.dll.so] Error 2
make[2]: Leaving directory `/root/wine-20040914/dlls/ddraw'
make[1]: *** [ddraw] Error 2
It seems that when the spec files are turned into .o by the winebuild
tool, it is using a different compiler and the object files aren't
compatible. How do you get winebuild to use a different compiler? Or is
the problem something else?
Thanks,
Luke
More information about the wine-users
mailing list