From owner-freebsd-amd64@FreeBSD.ORG Tue Dec 23 17:02:59 2008 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A06C1065775 for ; Tue, 23 Dec 2008 17:02:59 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: from 30.mail-out.ovh.net (30.mail-out.ovh.net [213.186.62.213]) by mx1.freebsd.org (Postfix) with SMTP id 9D91E8FC18 for ; Tue, 23 Dec 2008 17:02:58 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: (qmail 1975 invoked by uid 503); 23 Dec 2008 16:35:53 -0000 Received: from gw2.ovh.net (HELO mail22.ha.ovh.net) (213.251.189.202) by 30.mail-out.ovh.net with SMTP; 23 Dec 2008 16:35:53 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 23 Dec 2008 16:36:15 -0000 Received: from host-89-228-109-220.olsztyn.mm.pl (HELO localhost) (maciej@suszko.eu@89.228.109.220) by ns0.ovh.net with SMTP; 23 Dec 2008 16:36:14 -0000 Date: Tue, 23 Dec 2008 17:36:08 +0100 From: Maciej Suszko To: "Garrett Cooper" Message-ID: <20081223173608.068fe9d8@suszko.eu> In-Reply-To: <7d6fde3d0812222135l753daf54geb37b696c9c1cf8@mail.gmail.com> References: <7d6fde3d0812222135l753daf54geb37b696c9c1cf8@mail.gmail.com> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/07I.D4JU0SUT0K4yXry66UE"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Ovh-Tracer-Id: 1404560134263759012 X-Ovh-Remote: 89.228.109.220 (host-89-228-109-220.olsztyn.mm.pl) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/N Cc: amd64@freebsd.org, stable Subject: Re: -m32 broken on bi-arch amd64 systems? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2008 17:02:59 -0000 --Sig_/07I.D4JU0SUT0K4yXry66UE Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable "Garrett Cooper" wrote: > Hi guys, > I think I may have found an issue today with our bi-endian > structure, and I wanted to make sure whether or not it was an already > known issue (-m32 is broken for gcc with lib32/libgcc.a): >=20 > [root@fbsd-7-test]# gcc -o boo boo.c # Compiles > [root@fbsd-7-test]# gcc -m32 -o boo boo.c > /usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching > for -lgcc /usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when > searching for -lgcc /usr/bin/ld: cannot find -lgcc > [root@fbsd-7-test]# file /usr/lib32/libgcc_s.so.1 > /usr/lib32/libgcc_s.so.1: ELF 32-bit LSB shared object, Intel 80386, > version 1 (FreeBSD), dynamically linked, stripped > [root@fbsd-7-test]# uname -a > FreeBSD fbsd-7-test.gateway.2wire.net 7.1-PRERELEASE FreeBSD > 7.1-PRERELEASE #0: Sun Nov 23 16:19:09 UTC 2008 > root@fbsd-7-test.gateway.2wire.net:/usr/obj/usr/src/sys/STARR amd64 >=20 > I wish I had my amd64 CURRENT machine in front of me to confirm > this, but I don't. > Please keep me CC'ed as I am not subscribed to either amd64@ or > stable@. Thanks! > -Garrett I also noticed that behavior, shouldn't compiler/linker look into /usr/lib32 without additional -B switch? --=20 regards, Maciej Suszko. --Sig_/07I.D4JU0SUT0K4yXry66UE Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAklRE3gACgkQCikUk0l7iGpeIwCeLW+OZJOIEsBFF+q6zVCps0mK 9HYAn39GVLyus5iOidPvSlnkXkAWe7xB =nA6Q -----END PGP SIGNATURE----- --Sig_/07I.D4JU0SUT0K4yXry66UE--