From owner-freebsd-stable@freebsd.org Mon Jan 25 23:05:36 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C1A41A46139 for ; Mon, 25 Jan 2016 23:05:36 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.netplex.net", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8C9901C5; Mon, 25 Jan 2016 23:05:36 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.15.1/8.15.1/NETPLEX) with ESMTP id u0PN5YHL010632; Mon, 25 Jan 2016 18:05:34 -0500 X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.4.3 (mail.netplex.net [204.213.176.9]); Mon, 25 Jan 2016 18:05:34 -0500 (EST) Date: Mon, 25 Jan 2016 18:05:34 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net Reply-To: Daniel Eischen To: Craig Rodrigues cc: FreeBSD stable Subject: Re: Cross buildworld on amd64 for i386 errors In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2016 23:05:36 -0000 On Mon, 25 Jan 2016, Craig Rodrigues wrote: > On Mon, Jan 25, 2016 at 1:55 PM, Daniel Eischen > wrote: > >> >> I'm trying to build an i386 buildworld on an amd64 system. >> I'm at r294370. >> >> This is what I've tried so far: >> >> make TARGET_ARCH=i386 MAKEOBJDIRPREFIX=/opt/foo/obj.x86 -j8 buildworld >> make TARGET=i386 MAKEOBJDIRPREFIX=/opt/foo/obj.x86 -j8 buildworld >> >> Neither of which work. They both result in the error below. What >> is the standard procedure for cross-building i386 from amd64? >> > > It looks like you are not alone in encountering these problems. > For this build set up by Li-Wen Hsu: > https://jenkins.freebsd.org/job/FreeBSD_HEAD_i386 > > he downloads this image > http://ftp.freebsd.org/pub/FreeBSD/releases/i386/i386/10.2-RELEASE/base.txz > and then extracts that to create an i386 jail, where the build is performed > on an amd64 host. Currently, I'm just trying to test out the cross-build, but the final result is that I want to use nanobsd to create embedded images, all from amd64. Multiple people here want to be able to do that. I don't really want to have to setup a jail (with LDAP logins, cause that's what we use) or even an x86 box to do that. I thought even ARM and MIPS cross-builds worked, I didn't expect amd64->i386 problems. I think I will ask on -current, as that is also an option for us. -- DE