[Scummvm-devel] Re: FreeBSD Port: scummvm-0.7.0 (Intern)

Alex Trull alex at trull.org
Mon Jan 31 01:24:44 CET 2005


* Christer.Solskogen at telenor.com <Christer.Solskogen at telenor.com> [2005-01-28 16:17:29 +0100]:

> Scummvm (fresh cvsup) fail with this:
> 
> 
> c++    backends/sdl/events.o backends/sdl/graphics.o backends/sdl/sdl.o base/libbase.a scumm/libscumm.a simon/libsimon.a sky/libsky.a sword1/libsword1.a sword2/libsword2.a queen/libqueen.a gui/libgui.a graphics/libgraphics.a sound/libsound.a backends/libbackends.a common/libcommon.a backends/midi/mt32/libmt32.a   -L/usr/local/lib -L/usr/local/lib -lvorbisfile -lvorbis -logg -L/usr/local/lib -lmad -L/usr/lib -lz -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL-1.1 -pthread -o scummvm
> /usr/bin/ld: warning: i386 architecture of input file `common/libcommon.a(hq2x_i386.o)' is incompatible with i386:x86-64 output
> /usr/bin/ld: warning: i386 architecture of input file `common/libcommon.a(hq3x_i386.o)' is incompatible with i386:x86-64 output
> /usr/bin/ld: BFD 2.15 [FreeBSD] 2004-05-23 internal error, aborting at /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/reloc.c line 4274 in bfd_generic_get_relocated_section_contents
> 
> /usr/bin/ld: Please report this bug.
> 
> gmake: *** [scummvm] Error 1
> *** Error code 2
> 
> # uname -a
> FreeBSD funshine.carebears.net 5.3-RELEASE-p4 FreeBSD 5.3-RELEASE-p4 #0: Fri Jan  7 17:32:47 CET 2005     root at funshine.carebears.net:/usr/obj/usr/src/sys/FUNSHINE  amd64
> 
> # gcc -v
> Using built-in specs.
> Configured with: FreeBSD/amd64 system compiler
> Thread model: posix
> gcc version 3.4.2 [FreeBSD] 20040728
> 
> 
> -- 
> Christer Solskogen
> Kundeansvarlig
> Forhandlerservice Internett, Telenor Norge
> Tlf: 55 55 40 98 - Fax: 815 45 155
> 

Hi Christer,

Thank you for the headsup.

> /usr/bin/ld: warning: i386 architecture of input file `common/libcommon.a(hq2x_i386.o)' is incompatible with i386:x86-64 output
> /usr/bin/ld: warning: i386 architecture of input file `common/libcommon.a(hq3x_i386.o)' is incompatible with i386:x86-64 output
> /usr/bin/ld: BFD 2.15 [FreeBSD] 2004-05-23 internal error, aborting at /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/reloc.c line 4274 in bfd_g
eneric_get_relocated_section_contents

I think this is related to 32bit assembler code (hq2x_i386.asm and hq3x_i386.asm) being included, and ld being unable to handle that.

I have cc'd the scummvm-devel list, but in the meantime would you be willing to rebuild with -m32 c++ flags (so it builds as a purely 32bit binary) ? I'd like to know if this helps, as the speed loss will, I expect, be negligible. I have no access to amd64 hardware of my own, so your help in this would be appreciated. 

in the portdir games/scummvm :
 set CXXFLAGS="-m32"
 export CXXFLAGS
 make clean && make

Best regards,
Alex Trull

@ alex at trull.org




More information about the Scummvm-devel mailing list