From owner-freebsd-amd64@FreeBSD.ORG Sun Aug 14 20:54:20 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9792216A41F for ; Sun, 14 Aug 2005 20:54:20 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC85243D45 for ; Sun, 14 Aug 2005 20:54:19 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr2.xs4all.nl (8.13.3/8.13.3) with ESMTP id j7EKsIj6074488; Sun, 14 Aug 2005 22:54:19 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id BFC9761B9; Sun, 14 Aug 2005 22:54:18 +0200 (CEST) Date: Sun, 14 Aug 2005 22:54:18 +0200 From: Roland Smith To: "O. Hartmann" Message-ID: <20050814205418.GB60825@slackbox.xs4all.nl> Mail-Followup-To: "O. Hartmann" , freebsd-amd64@freebsd.org References: <42FFA9D8.7010504@mail.uni-mainz.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EuxKj2iCbKjpUGkD" Content-Disposition: inline In-Reply-To: <42FFA9D8.7010504@mail.uni-mainz.de> User-Agent: Mutt/1.4.2.1i X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-amd64@freebsd.org Subject: Re: gcc compiler option -m64 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: Sun, 14 Aug 2005 20:54:20 -0000 --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--