From owner-freebsd-questions@FreeBSD.ORG Thu Jun 26 22:14:20 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E0981065681 for ; Thu, 26 Jun 2008 22:14:20 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from raq5.nitrex.net (raq5.nitrex.net [213.165.227.5]) by mx1.freebsd.org (Postfix) with ESMTP id 0873F8FC23 for ; Thu, 26 Jun 2008 22:14:19 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from [192.168.10.144] (gate.zenatode.org.uk [213.165.225.167]) by raq5.nitrex.net (8.13.1/8.13.1) with ESMTP id m5QMEDnQ005385 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 Jun 2008 23:14:16 +0100 Message-ID: <486414B5.6020608@onetel.com> Date: Thu, 26 Jun 2008 23:14:13 +0100 From: Chris Whitehouse User-Agent: Thunderbird 2.0.0.14 (X11/20080611) MIME-Version: 1.0 To: Tim Daneliuk References: <4863F317.6010701@tundraware.com> <4863F4A7.1070909@FreeBSD.org> <4863F5A3.6050209@tundraware.com> <4863FC2A.5040909@FreeBSD.org> <4864015C.7010805@tundraware.com> In-Reply-To: <4864015C.7010805@tundraware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: Making World For amd64 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2008 22:14:20 -0000 Tim Daneliuk wrote: > Kris Kennaway wrote: >> Tim Daneliuk wrote: >>> Kris Kennaway wrote: >>>> Tim Daneliuk wrote: >>>>> Is there anything special one has to do when doing a make world >>>>> intended for 64-bit FreeBSD or is it sufficient to build the 64-bit >>>>> kernel and make world as everywhere else? >>>> The same as everywhere else. >>>> >>>> Kris >>> So, I take it that this means that all the userspace programs, ports, >>> packages, utilities, etc. do *not* take advantage of the 64-bit >>> extensions. That is, only the kernel gets the benefit of the >>> wider word. Is that correct? >>> >> No, everything is 100% native. >> >> Kris >> > > OK, these may be really stupid questions but: > > 1) How does make world know whether to build 32-bit or 64-bit binaries? > > 2) Can a binary from a 32-bit FreeBSD system be run unmodified on the > 64-bit system? > > 3) If I reboot with 32-bit or 64-bit kernels, does the system magically > somehow make the userland stuff work natively at the word width? > If so, how? > > TIA, > This might be a really stupid answer :p and maybe I have misunderstood the context of your question but when you initially downloaded an ISO to install you already chose whether it is 32 or 64 bit. Everything else, like which source and ports you get when you upgrade, follows from that (barring fancy stuff like cross compiling etc) Chris