From owner-freebsd-amd64@FreeBSD.ORG Tue Mar 20 18:48:05 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 A3FB016A407 for ; Tue, 20 Mar 2007 18:48:05 +0000 (UTC) (envelope-from mwm-dated-1175278886.7c9915@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id 1301113C45B for ; Tue, 20 Mar 2007 18:48:04 +0000 (UTC) (envelope-from mwm-dated-1175278886.7c9915@mired.org) Received: (qmail 37727 invoked by uid 1001); 20 Mar 2007 18:21:26 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Tue, 20 Mar 2007 14:21:25 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17920.9765.726023.526080@bhuda.mired.org> Date: Tue, 20 Mar 2007 14:21:25 -0400 To: Peter Jeremy In-Reply-To: <20070320073030.GC76696@turion.vk2pj.dyndns.org> References: <45FE7615.3090606@icyb.net.ua> <20070320073030.GC76696@turion.vk2pj.dyndns.org> X-Mailer: VM 7.17 under 21.4 (patch 20) "Double Solitaire" XEmacs Lucid 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.5 (Fettercairn) From: Mike Meyer Cc: Andriy Gapon , freebsd-amd64@freebsd.org Subject: Re: 32-bit/i386 ports/packges on 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: Tue, 20 Mar 2007 18:48:05 -0000 In <20070320073030.GC76696@turion.vk2pj.dyndns.org>, Peter Jeremy typed: > Solaris (and I suspect Linux) has taken the approach that the kernel > is 64-bit but userland is primarily 32-bit with applications able to > build/run as 64-bit if desired. Linux (at least the rhe distribution) doesn't do this. The system binaries are all 64-bit, the toolchains build 64-bit binaries by default, etc. However, the toolchains are also configured so that passing -m32 to gcc will do the right thing all the way down the line; last time I tried that (6.1 or so) it didn't work. The first step in getting the ports/packages to work properly is to either 1) get the system c cmopiler to correctly handle requests to build 32-bit binaries, or 2) add a port that adds a C compiler that does that. FWIW, OSX has a 32-bit kernel and userland, but can run (and build) 64-bit binaries. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.