From owner-freebsd-amd64@FreeBSD.ORG Mon May 21 15:54:26 2007 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D6F9D16A46B for ; Mon, 21 May 2007 15:54:26 +0000 (UTC) (envelope-from mwm-dated-1180625228.6d4b27@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id 66E8513C487 for ; Mon, 21 May 2007 15:54:26 +0000 (UTC) (envelope-from mwm-dated-1180625228.6d4b27@mired.org) Received: (qmail 51346 invoked by uid 1001); 21 May 2007 15:27:08 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Mon, 21 May 2007 11:27:08 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18001.47692.41735.333931@bhuda.mired.org> Date: Mon, 21 May 2007 11:27:08 -0400 To: Craig Butler In-Reply-To: <4651766B.5080901@lerwick.hopto.org> References: <4651766B.5080901@lerwick.hopto.org> X-Mailer: VM 7.19 under Emacs 21.3.1 X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Mike Meyer Cc: freebsd-amd64@freebsd.org Subject: Re: compile 32bit port on FreeBSD 6.2 amd64 ? 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: Mon, 21 May 2007 15:54:26 -0000 In <4651766B.5080901@lerwick.hopto.org>, Craig Butler typed: > Hi All > > Is there a way to compile 32bit versions of ports and 64 bit FreeBSD ? Yes. Or no, depending on what you meant. Neither the ports nor packages system supports cross-platform installation, so you'll have to build and install everything yourself. Of course, support for 32bit compilation beyond rebuilding the base system doesn't really exist. You'll need to install the 32 bit libraries from the base system; there are hooks in the makefiles to do that for you. You'll have to tell gcc to use those instead of the standard ones; the -m32 flag that causes it to generate 32bit code doesn't do that. You'll also need to install the i386 platform-dependent header files and tell gcc to use those; I don't believe there's a simple way to do that, but it's not all that complicated. > I am sure this question must have been asked in the past, but the > archives are broke atm on the mailing list. Several times, some recently. Personally, I very seldom found the archives to be useful, and use http://www.google.com/bsd instead. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.