Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Dec 2008 12:23:13 -0500
From:      Alexander Kabaev <kabaev@gmail.com>
To:        Maciej Suszko <maciej@suszko.eu>
Cc:        amd64@freebsd.org, Garrett Cooper <yanefbsd@gmail.com>, stable <stable@freebsd.org>
Subject:   Re: -m32 broken on bi-arch amd64 systems?
Message-ID:  <20081223122313.6254e173@kan.dnsalias.net>
In-Reply-To: <20081223173608.068fe9d8@suszko.eu>
References:  <7d6fde3d0812222135l753daf54geb37b696c9c1cf8@mail.gmail.com> <20081223173608.068fe9d8@suszko.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/4ioWb7WqVNutJYefyNdX3X1
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Tue, 23 Dec 2008 17:36:08 +0100
Maciej Suszko <maciej@suszko.eu> wrote:

> "Garrett Cooper" <yanefbsd@gmail.com> 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
>=20
> I also noticed that behavior, shouldn't compiler/linker look
> into /usr/lib32 without additional -B switch?
> --=20
> regards, Maciej Suszko.

Read email archives, this was discussed on several occasions before.
Short summary: it never worked and will not work unless some
non-trivial work is put into how GCC handles include and linker search
paths.

--=20
Alexander Kabaev

--Sig_/4ioWb7WqVNutJYefyNdX3X1
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iD8DBQFJUR6BQ6z1jMm+XZYRAs3SAJ9ZTA35UkjFt6Q3FhbTr8elnOSJcwCfWjZV
/kLeaKOsdVes4MoDhSuwKVg=
=8iH3
-----END PGP SIGNATURE-----

--Sig_/4ioWb7WqVNutJYefyNdX3X1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081223122313.6254e173>