From owner-freebsd-ports@FreeBSD.ORG Mon Jan 31 09:57:53 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61F6516A4CE for ; Mon, 31 Jan 2005 09:57:53 +0000 (GMT) Received: from moonbase.turandot.net (moonbase.turandot.net [82.110.87.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EEF743D41 for ; Mon, 31 Jan 2005 09:57:52 +0000 (GMT) (envelope-from lysander@turandot.net) Received: by moonbase.turandot.net (Postfix, from userid 1000) id 1890416860E; Mon, 31 Jan 2005 09:21:25 +0000 (GMT) Date: Mon, 31 Jan 2005 09:21:25 +0000 From: Alex Trull To: Christer.Solskogen@telenor.com Message-ID: <20050131092125.GN837@moonbase.turandot.net> References: <08D2DB09963FCE4CB20E0DBC54B606FE375AA1@TNS-FBU-2E-014.corp.telenor.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <08D2DB09963FCE4CB20E0DBC54B606FE375AA1@TNS-FBU-2E-014.corp.telenor.no> User-Agent: Mutt/1.4.2.1i cc: ports@FreeBSD.org cc: scummvm-devel@lists.sourceforge.net Subject: Re: FreeBSD Port: scummvm-0.7.0 (Intern) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jan 2005 09:57:53 -0000 * Christer.Solskogen@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@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@trull.org