[Wine] Re: Error while compiling in Ubuntu 6.06 64 bit

Kaos kaos.cab at gmail.com
Wed Dec 6 16:51:01 CST 2006

marcus1060 at yahoo.ca wrote:
> When compiling in Ubuntu 6.06 64 bit using this guide:
> http://wiki.winehq.org/WineOn64bit
> When I do 'sudo make install' I get this error:
> make[2]: Entering directory `/home/marcus/wine/dlls/gdi'
> ../../tools/winegcc/winegcc -B../../tools/winebuild -shared
> ./gdi32.spec dispdib.spec.o gdi.exe.spec.o wing.spec.o bidi16.o
> dispdib.o env.o gdi16.o metafile16.o wing.o  bidi.o bitblt.o bitmap.o
> brush.o clipping.o dc.o dib.o driver.o enhmetafile.o enhmfdrv/bitblt.o
> enhmfdrv/dc.o enhmfdrv/graphics.o enhmfdrv/init.o enhmfdrv/mapping.o
> enhmfdrv/objects.o font.o freetype.o gdi_main.o gdiobj.o icm.o
> mapping.o metafile.o mfdrv/bitblt.o mfdrv/dc.o mfdrv/graphics.o
> mfdrv/init.o mfdrv/mapping.o mfdrv/objects.o mfdrv/text.o painting.o
> palette.o path.o pen.o printdrv.o region.o  version.res
> -Wl,--rpath,\$ORIGIN/`../../tools/relpath /usr/local/lib/wine
> /usr/local/lib` -o gdi32.dll.so -ladvapi32 -lkernel32 -lntdll
> /usr/lib/libsicuuc.a /usr/lib/libsicudata.a -lstdc++ -lgcc_s
> ../../libs/port/libwine_port.a -L/lib32 -L/usr/lib32 -Wl,-rpath,/lib32
> -Wl,-rpath,/usr/lib32
> ld: Relocatable linking with relocations from format elf64-x86-64
> (/usr/lib/libsicuuc.a(ubidi.ao)) to format elf32-i386 (gdi32.QFXYMS.o)
> is not supported
> winebuild: ld -m elf_i386 -r failed with status 256
> winegcc: ../../tools/winebuild/winebuild failed.
> make[2]: *** [gdi32.dll.so] Error 2
> make[2]: Leaving directory `/home/marcus/wine/dlls/gdi'
> make[1]: *** [gdi/__install-lib__] Error 2
> make[1]: Leaving directory `/home/marcus/wine/dlls'
> make: *** [dlls/__install-lib__] Error 2

It's seem that the compiler first compiling to a 64bit program , and
them it trying to linking to generate a 32bit program.
One reason for this is that yo forget to put one of those command shows
on theabove page, tray to check all the directories that apear on :

LDFLAGS="-L/lib32 -L/usr/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32"

and make sure all command writing.

If you still having this problem, perhaps you download a wrong version
of wine.


Claudio Alvarez Barros.

More information about the wine-users mailing list