From owner-freebsd-i386@FreeBSD.ORG Fri Jan 16 10:24:47 2009 Return-Path: Delivered-To: freebsd-i386@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47719106564A; Fri, 16 Jan 2009 10:24:47 +0000 (UTC) (envelope-from andrew.hotlab@hotmail.com) Received: from col0-omc1-s7.col0.hotmail.com (col0-omc1-s7.col0.hotmail.com [65.55.34.17]) by mx1.freebsd.org (Postfix) with ESMTP id 254238FC0C; Fri, 16 Jan 2009 10:24:46 +0000 (UTC) (envelope-from andrew.hotlab@hotmail.com) Received: from COL112-W78 ([65.55.34.9]) by col0-omc1-s7.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 16 Jan 2009 02:24:46 -0800 Message-ID: X-Originating-IP: [217.133.1.92] From: Andrew Hotlab To: Date: Fri, 16 Jan 2009 10:24:46 +0000 Importance: Normal In-Reply-To: References: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 16 Jan 2009 10:24:46.0794 (UTC) FILETIME=[A7B852A0:01C977C4] Cc: freebsd-i386@freebsd.org, freebsd-amd64@freebsd.org, freebsd-arch@freebsd.org Subject: RE: Cross compiling FreeBSD X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2009 10:24:47 -0000 > Date: Fri=2C 16 Jan 2009 10:32:39 +0100 > From: ck-lists@cksoft.de > > On Wed=2C 14 Jan 2009=2C Andrew Hotlab wrote: > >> At this time=2C I've tried to build RELENG_7_1 for the i386 architecture= using an amd64 >> machine (running RELENG_7_0 for amd64) then=2C exporting /usr/src and /u= sr/obj via >> NFS in read-only mode to target machines=2C I've experienced a lot of tr= oubles trying to >> install both kernel and world=2C which made impossible for me to install= FreeBSD on >> target i386 machines. >> Can anyone kindly confirm that it's a supported procedure to compile Fre= eBSD for >> a Tier1 architecture by using another Tier1-architecture machine? Maybe = I didn't >> understood documentation or I'm missing some essential steps in the buil= d process? > > as you already found out this does not work as the crossbuild process > will build the native host tools in /usr/obj and the target system > binaries in /usr/obj/i386. > > On recent RELENG_7 or HEAD machines you should be able to build > in an i386 chroot. This would produce a clean /usr/obj you > can copy to your i386 machines and install from there. > Sorry for my stupid question: I'll do the right thing if I'll build an i386= jail chroot/jail on the amd64 builder host with the following commands? (grabbed from the FreeBSD H= andbook) # cd /usr/src # make buildworld TARGET=3Di386 # make installworld TARGET=3Di386 DESTDIR=3D/path-to-jail # cd etc/ # make distribution DESTDIR=3D/path-to-jail # mount -t devfs devfs /path-to-jail/dev > The hack to enable building in an i386 chroot is to set UNAME_m > and UNAME_p to i386. I use following in the chroots .cshrc > > setenv UNAME_m i386 > setenv UNAME_p i386 > > This will avoid any crossbuild magic and you will be able to build > as if on an i386 machine. > > This of course only works for the amd64=2C i386 combination. Wonderful=2C I'll try this as soon as possible. Thank you! _________________________________________________________________ News=2C entertainment and everything you care about at Live.com. Get it now= ! http://www.live.com/getstarted.aspx=