From owner-freebsd-arch@FreeBSD.ORG Fri Jan 16 10:57:02 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7F1D10657C3; Fri, 16 Jan 2009 10:57:02 +0000 (UTC) (envelope-from ck-lists@cksoft.de) Received: from mx1.cksoft.de (mx1.cksoft.de [62.111.66.10]) by mx1.freebsd.org (Postfix) with ESMTP id 550B28FC12; Fri, 16 Jan 2009 10:57:02 +0000 (UTC) (envelope-from ck-lists@cksoft.de) Received: from m.cksoft.de (m.cksoft.de [192.168.64.204]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.cksoft.de (Postfix) with ESMTP id C8BAA2EB925; Fri, 16 Jan 2009 11:57:00 +0100 (CET) Received: from amavis.ahti.cksoft.de (amavis.ahti.cksoft.de [IPv6:2001:4068:10:1::201]) by m.cksoft.de (Postfix) with ESMTP id 6DC50ED02C; Fri, 16 Jan 2009 11:56:59 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from m.cksoft.de ([192.168.64.204]) by amavis.ahti.cksoft.de (amavis.ahti.cksoft.de [192.168.64.201]) (amavisd-new, port 10024) with ESMTP id YXBu0kI3xcO2; Fri, 16 Jan 2009 11:56:55 +0100 (CET) Received: from tapio.cksoft.de (tapio.cksoft.de [IPv6:2001:4068:10:1:218:8bff:fe76:5932]) by m.cksoft.de (Postfix) with ESMTP id AB21CED029; Fri, 16 Jan 2009 11:56:55 +0100 (CET) Received: by tapio.cksoft.de (Postfix, from userid 1000) id 84288B8DC; Fri, 16 Jan 2009 11:56:55 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by tapio.cksoft.de (Postfix) with ESMTP id 767EEB809; Fri, 16 Jan 2009 11:56:55 +0100 (CET) Date: Fri, 16 Jan 2009 11:56:55 +0100 (CET) From: Christian Kratzer X-X-Sender: ck@tapio.cksoft.de To: Andrew Hotlab In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-Spammer-Kill-Ratio: 75% MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-i386@freebsd.org, freebsd-amd64@freebsd.org, freebsd-arch@freebsd.org Subject: RE: Cross compiling FreeBSD X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Christian Kratzer List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2009 10:57:03 -0000 Hi, On Fri, 16 Jan 2009, Andrew Hotlab wrote: > 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 Handbook) > # cd /usr/src > # make buildworld TARGET=i386 > # make installworld TARGET=i386 DESTDIR=/path-to-jail > # cd etc/ > # make distribution DESTDIR=/path-to-jail > # mount -t devfs devfs /path-to-jail/dev yes that should do it but I think you can skip the cd etc/ part. make distribution should work from /usr/src >> 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, i386 combination. > Wonderful, I'll try this as soon as possible. Thank you! let us know if it works out. Greetings Christian -- Christian Kratzer CK Software GmbH Email: ck@cksoft.de Schwarzwaldstr. 31 Phone: +49 7452 889 135 D-71131 Jettingen Fax: +49 7452 889 136 HRB 245288, Amtsgericht Stuttgart Web: http://www.cksoft.de/ Geschaeftsfuehrer: Christian Kratzer