From owner-freebsd-ports@FreeBSD.ORG Fri Feb 11 17:38:06 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 328621065670 for ; Fri, 11 Feb 2011 17:38:06 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id A00B28FC15 for ; Fri, 11 Feb 2011 17:38:05 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id p1BHR1E7064956; Fri, 11 Feb 2011 18:27:01 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id p1BHR189064955; Fri, 11 Feb 2011 18:27:01 +0100 (CET) (envelope-from marius) Date: Fri, 11 Feb 2011 18:27:00 +0100 From: Marius Strobl To: Jan Henrik Sylvester Message-ID: <20110211172700.GH15808@alchemy.franken.de> References: <4D553ACA.5060503@janh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D553ACA.5060503@janh.de> User-Agent: Mutt/1.4.2.3i Cc: ports-list freebsd Subject: Re: sysutils/cdrtools in i386 chroot on amd64 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2011 17:38:06 -0000 On Fri, Feb 11, 2011 at 02:34:02PM +0100, Jan Henrik Sylvester wrote: > I am trying to build all ports that I have installed in an i386 chroot > environment on an amd64 machine. All work except for sysutils/cdrtools. > > I have installed an i386 system to some directory, mounted a devfs to > the devfs subdirectory, set "MACHINE=i386 ; UNAME_p=i386 ; UNAME_m=i386" > and exported them, chrooted to the directory, and called > "/etc/rc.d/ldconfig start". > > sysutils/cdrtools fails with many errors as it still builds for amd64. > > Is this expected? Should I do more to get an i386 environment? (I have > tried to set ARCH and MACHINE_ARCH with no change.) > Yes, that approach isn't expected to generally work for cross-building ports for i386 on amd64. What is expected to work is compiling them in an i386 environment on amd64 running a kernel with r210369/rev. 1.103 of sys/kern/kern_mib.c (r210855/rev. 1.98.2.5 for 8-STABLE) in place so the i386 binaries act as if they are running on native i386 without hacks like MACHINE, UNAME_* etc being set. The cdrtools port is known to be buildable for i386 in an i386 jail on amd64 that way. Marius