Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2007 05:03:49 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Hugo Silva <hugo@barafranca.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: More issues with 7.0-BETA4
Message-ID:  <20071212180349.GQ11310@server.vk2pj.dyndns.org>
In-Reply-To: <475F2D07.2080205@barafranca.com>
References:  <475DADF7.6020702@yahoo.com> <fjlu5n$qc4$1@ger.gmane.org> <475EA859.7000407@yahoo.com> <9bbcef730712110815g34adb0dfv8fe89dbb52225cb3@mail.gmail.com> <475F2D07.2080205@barafranca.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--b0op/nKJ9CeIhp9z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 12, 2007 at 12:36:23AM +0000, Hugo Silva wrote:
>Building 32 bit binaries on amd64 apparently isn't working:
>
># cc -m64 -march=3Dk8 -o test64 test.c && ./test64
>testing!!
>
># cc -m32 -march=3Dk8 -o test32 test.c  && ./test32
>/usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for=20
>-lgcc
>/usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for=20
>-lgcc
>/usr/bin/ld: cannot find -lgcc

This isn't supported at present.  Note that just pointing at
/usr/lib32 results in executables that won't run on FreeBSD/i386.
And, quite apart from the linker issues, 'cc -m32' is using the wrong
include files: All the machine-dependent types are defined in terms of
I32LP64 primitives whilst 'cc -m32' uses ILP32 primitives.

The current suggestion is to perform i386 compiles in a FreeBSD/i386
chroot environment.

--=20
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.

--b0op/nKJ9CeIhp9z
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHYCKF/opHv/APuIcRAmq+AJ9fhnkiHSiRE9ADP1JL0zBmqv6VKgCgstNL
gkU4h+1JoIt6r7+Tid6m4Wo=
=D0v/
-----END PGP SIGNATURE-----

--b0op/nKJ9CeIhp9z--



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