Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jan 2009 05:44:00 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Bakul Shah <bakul@bitblocks.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: critical floating point incompatibility
Message-ID:  <20090129184400.GI1755@server.vk2pj.dyndns.org>
In-Reply-To: <20090128192421.C9E3D5B13@mail.bitblocks.com>
References:  <20071220093950.GA79196@server.vk2pj.dyndns.org> <20071221181125.0B6F25B42@mail.bitblocks.com> <20071221201633.GM57756@deviant.kiev.zoral.com.ua> <200901261651.29116.jhb@freebsd.org> <20090128192421.C9E3D5B13@mail.bitblocks.com>

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

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

On 2009-Jan-28 11:24:21 -0800, Bakul Shah <bakul@bitblocks.com> wrote:
>On a mac, cc -m64 builds 64 bit binaries and cc -m32 builds
>32 bit binaries.  The following script makes it as easy to do
>so on a 64 bit FreeBSD -- at least on the few programs I
>tried.  Ideally the right magic needs to be folded in gcc's
>builtin "specs".
>
>#!/bin/sh
>args=3D/usr/bin/cc
>while [ ".$1" !=3D . ]
>do
>    a=3D$1; shift
>    case $a in
>    -m32) args=3D"$args -B/usr/lib32 -I/usr/include32 -m32";;
>    *) args=3D"$args $a";;
>    esac
>done
>$args

You also need to manually populate /usr/include32 since it doesn't
exist by default and may still get bitten by stuff in
/usr/local/include.  Do you have a script (or installworld patches) to
do this?

amd64/112215 includes a first attempt at updating the gcc specs
(though it's missing the include handling), as well as some of
the remaining problems.

>Ideally x86_64 platforms run *all* i386 programs (that don't
>depend on a 32 bit kernel).

Agreed.

--=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.

--6Vw0j8UKbyX0bfpA
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iEYEARECAAYFAkmB+PAACgkQ/opHv/APuIcQMwCgu3oFCnRIbPUZvQR51+2mZbJz
I+gAmwW0xoTQ/arjlwpqcDISBwrBQZe6
=du2O
-----END PGP SIGNATURE-----

--6Vw0j8UKbyX0bfpA--



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