Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error while compiling in Ubuntu 6.06 64 bit

5 views
Skip to first unread message

marcu...@yahoo.ca

unread,
Aug 3, 2006, 11:57:39 PM8/3/06
to
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

Kaos

unread,
Aug 5, 2006, 4:21:17 AM8/5/06
to

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"
./configure

and make sure all command writing.

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

hail.

Claudio Alvarez Barros.

jason.r...@gmail.com

unread,
Aug 19, 2006, 11:20:05 PM8/19/06
to
Hi,

I had the same problem, and solved it using this technique on Ubuntu
6.06 / dapper:

STEP 1: Download ICU library source from
http://www-306.ibm.com/software/globalization/icu/downloads.jsp

STEP 2: Untar what you just downloaded
$ tar zxvf icu-3.4.1.tgz

STEP 3: Run the configure script in this manner:
$ LDFLAGS="-L/lib32 -L/usr/lib32 -Wl,-rpath,/lib32
-Wl,-rpath,/usr/lib32" CC="gcc -m32" CXX="g++ -m32" ./configure

STEP 4: Build the ICU libraries
$ make

STEP 5: Manually create the libsicuuc.a archive:
$ ar t /usr/lib/libsicuuc.a | sed -e 's/ao$/o/' | perl -e 'while(<>){
chomp($_); print "find . -name $_ | xargs ar uv libsicuuc.a\n"; }' >
mkar.sh
$ sh mkar.sh

STEP 6: Copy the archive to /usr/lib32
$ cp libsicuuc.a /usr/lib32/

STEP 7: Hack the wine dlls/gdi/Makefile to include the archive you just
copied to /usr/lib32
Change:
EXTRALIBS = /usr/lib/libsicuuc.a /usr/lib/libsicudata.a -lstdc++
-lgcc_s
-to-
EXTRALIBS = /usr/lib32/libsicuuc.a /usr/lib/libsicudata.a -lstdc++
-lgcc_s

STEP 8: Continue with the 'make all' step in compiling wine.

After doing this, I had a working version of wine. Kind of a pain to
go through, but I was expecting worse.

Jason

Gino Chen Hsiang Jan

unread,
Aug 24, 2006, 3:20:53 PM8/24/06
to
Hello Jason,
I think you was execute in step 5:

ar t /usr/lib/libsicuuc.a | sed -e 's/ao$/o/' | perl -e 'while(<>){
chomp($_); print "find . -name $_ | xargs ar ruv libsicuuc.a\n"; }' >
mkar.sh

Gino Chen Hsiang-Jan

jason.r...@gmail.com

unread,
Aug 28, 2006, 2:12:17 AM8/28/06
to
Sorry, yes, that was a typo. Thanks for pointing it out.

Jason

avfa...@yahoo.com

unread,
Sep 2, 2006, 7:52:37 PM9/2/06
to
i'm having the same problem with dapper. i tried to retrace your steps
to the letter and still no luck. i then tried:

avf@avf-desktop:~/icu$ ./runConfigureICU --disable-64bit-libs

as was suggested in the libsicuuc readme. that didn't work either. i
must say i'm a little lost here. i'm getting this error message on wine
make:.

ld: Relocatable linking with relocations from format elf64-x86-64

(/usr/lib/libsicuuc.a(ubidi.ao)) to format elf32-i386 (gdi32.wrAbiY.o)


is not supported
winebuild: ld -m elf_i386 -r failed with status 256

any suggestion will be most appreciated.

avishai

BorrowedSolution

unread,
Sep 7, 2006, 1:43:49 AM9/7/06
to
I see you made a typo, but you didn't clarify what it was? or maybe you
did and I'm not understanding what the error is? (linux noobs UNITE!) I
used the command Gino typed out and still no luck, the command doesn't
error but it doesn't seem to create the libsicuuc.a archive either.
Could you please clarify and/or print out the proper command? Having a
hard time installing wine here :-)

jason.r...@gmail.com

unread,
Sep 11, 2006, 3:20:45 AM9/11/06
to
Hi,

I think that you're missing one step: Hack the gdi/Makefile. You're
still picking up /usr/lib/libsicuuc.a instead of
/usr/lib32/libsicuuc.a.

Regards,
Jason

jason.r...@gmail.com

unread,
Sep 11, 2006, 3:22:41 AM9/11/06
to
Hi,

The typo was in Step 5, and it should be:

STEP 5: Manually create the libsicuuc.a archive:
$ ar t /usr/lib/libsicuuc.a | sed -e 's/ao$/o/' | perl -e 'while(<>){

chomp($_); print "find . -name $_ | xargs ar ruv libsicuuc.a\n"; }' >
mkar.sh
$ sh mkar.sh

0 new messages