Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Aug 2005 22:54:18 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        "O. Hartmann" <ohartman@mail.uni-mainz.de>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: gcc compiler option -m64
Message-ID:  <20050814205418.GB60825@slackbox.xs4all.nl>
In-Reply-To: <42FFA9D8.7010504@mail.uni-mainz.de>
References:  <42FFA9D8.7010504@mail.uni-mainz.de>

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

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

On Sun, Aug 14, 2005 at 10:30:16PM +0200, O. Hartmann wrote:
> Hello.
> To make ist short: On my box (Athlon64 based machine) I run a FBSD=20
> 6.0Beta2 with no 32Bit support and I hope (but do not exactly know) the=
=20
> machine is 64Bit only that way without any 32Bit compatibilty.

I think the install CD doesn't come with 32bit stuff. If you want to be
absolutely sure, add NO_LIB32=3Dtrue to /etc/make.conf and rebuild the
system.

You can check the state of binaries with the file command:

$ file /bin/dd
/bin/dd: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD),=20
for FreeBSD 5.4-CURRENT (rev 2), dynamically linked (uses shared libs),=20
stripped

To find all 32-bit binaries on your system:

find / -perm -100 -type f|xargs file|grep 32-bit|more

> I see in some compiler hints this undocumented '-m32' or '-m64' option=20
> of  gcc(1) (undocumented that way as I can not find it in the man pages)=
=20

It is documented in the gcc info files. The GNU people in general don't
like manpages.

> .  On SPARC64 systems, the system's default gcc compiler implies '-m64'.=
=20
> Is this also true for AMD64 FreeBSD 6.X?

Yes.

--=20
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt

--EuxKj2iCbKjpUGkD
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFC/696EnfvsMMhpyURAi+9AJ9x9sR6wkgxeP9K2ziKdmQ0ipHHLQCeNfOm
0mcXiebh/HzHbwL/J4CF43o=
=qaJ6
-----END PGP SIGNATURE-----

--EuxKj2iCbKjpUGkD--



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