From owner-freebsd-stable@FreeBSD.ORG Wed Sep 9 20:57:57 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D4961065672 for ; Wed, 9 Sep 2009 20:57:57 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from fallbackmx07.syd.optusnet.com.au (fallbackmx07.syd.optusnet.com.au [211.29.132.9]) by mx1.freebsd.org (Postfix) with ESMTP id 771848FC08 for ; Wed, 9 Sep 2009 20:57:56 +0000 (UTC) Received: from mail15.syd.optusnet.com.au (mail15.syd.optusnet.com.au [211.29.132.196]) by fallbackmx07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n89JXn7v011143 for ; Thu, 10 Sep 2009 05:33:49 +1000 Received: from server.vk2pj.dyndns.org (c122-106-217-45.belrs3.nsw.optusnet.com.au [122.106.217.45]) by mail15.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n89JXkjg031138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 10 Sep 2009 05:33:47 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id n89JXkSY061400; Thu, 10 Sep 2009 05:33:46 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id n89JXjlr061399; Thu, 10 Sep 2009 05:33:45 +1000 (EST) (envelope-from peter) Date: Thu, 10 Sep 2009 05:33:45 +1000 From: Peter Jeremy To: =?iso-8859-1?Q?V=E1clav?= Haisman Message-ID: <20090909193345.GA55347@server.vk2pj.dyndns.org> References: <4A9D561F.5000808@sh.cvut.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline In-Reply-To: <4A9D561F.5000808@sh.cvut.cz> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-stable@freebsd.org Subject: Re: GCC -m32 option on FreeBSD/AMD64 7.2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2009 20:57:57 -0000 --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2009-Sep-01 19:13:03 +0200, V=E1clav Haisman wrot= e: >is C++ + GCC -m32 option officially supported by FreeBSD/AMD64 7.2? The short answer is "no" - though this is a common request and there are some PRs open for it. At present, the only supported way to build i386 code on amd64 is by installing an i386 world and compiling in either a jail or chroot. Basically, whilst '-m32' correctly generates 32-bit code, virtually all programs wind up (indirectly) #include'ing files from /usr/include/machine and this directory assumes the native machine definitions - in the case of amd64, longs and pointers are 64-bits. Whilst it's not immediately obvious what happened here, I am confident this is the underlying cause. --=20 Peter Jeremy --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkqoAxkACgkQ/opHv/APuIf78ACfcqfmVlgpkjFNe9UGbJM5fXVP AuUAn0KFZe2OSwOCGYgSVRQNQctF/YR2 =ncBT -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE--