From owner-freebsd-stable Mon Nov 4 14:54:32 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49EBC37B401 for ; Mon, 4 Nov 2002 14:54:30 -0800 (PST) Received: from alcanet.com.au (mail3.alcanet.com.au [208.178.117.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07F7443E3B for ; Mon, 4 Nov 2002 14:54:25 -0800 (PST) (envelope-from peter.jeremy@alcatel.com.au) Received: from sydsmtp01.alcatel.com.au (IDENT:root@localhost.localdomain [127.0.0.1]) by alcanet.com.au (8.12.4/8.12.4/Alcanet1.3) with ESMTP id gA4MsGwL023442; Tue, 5 Nov 2002 09:54:17 +1100 Received: from gsmx07.alcatel.com.au ([139.188.20.247]) by sydsmtp01.alcatel.com.au (Lotus Domino Release 5.0.11) with ESMTP id 2002110509541525:2485 ; Tue, 5 Nov 2002 09:54:15 +1100 Received: from gsmx07.alcatel.com.au (localhost [127.0.0.1]) by gsmx07.alcatel.com.au (8.12.5/8.12.5) with ESMTP id gA4MsFRL086678; Tue, 5 Nov 2002 09:54:15 +1100 (EST) (envelope-from peter.jeremy@alcatel.com.au) Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.12.5/8.12.5/Submit) id gA4MsFBx086677; Tue, 5 Nov 2002 09:54:15 +1100 (EST) (envelope-from peter.jeremy@alcatel.com.au) Date: Tue, 5 Nov 2002 09:54:14 +1100 From: Peter Jeremy To: Chris BeHanna Cc: FreeBSD-Stable Subject: Re: installworld from a cross-buildworld Message-ID: <20021104225414.GR6446@gsmx07.alcatel.com.au> Mail-Followup-To: Chris BeHanna , FreeBSD-Stable References: <20021103212810.GA381@server.c18609.belrs1.nsw.optusnet.com.au> <20021103194756.I568-100000@topperwein.pennasoft.com> Mime-Version: 1.0 In-Reply-To: <20021103194756.I568-100000@topperwein.pennasoft.com> User-Agent: Mutt/1.4i X-MIMETrack: Itemize by SMTP Server on SYDSMTP01/AlcatelAustralia(Release 5.0.11 |July 24, 2002) at 05/11/2002 09:54:15 AM, Serialize by Router on SYDSMTP01/AlcatelAustralia(Release 5.0.11 |July 24, 2002) at 05/11/2002 09:54:18 AM, Serialize complete at 05/11/2002 09:54:18 AM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-Nov-03 19:51:49 -0500, Chris BeHanna wrote: >On Mon, 4 Nov 2002, Peter Jeremy wrote: > >> I have a fast x86 machine and a slow Alpha so I'd like to be able to >> do the Alpha buildworlds on the x86 and then install via NFS. >> >> make TARGET_ARCH=alpha buildworld >> works, and I can successfully mount /usr/src (actually /home/src4) >> and /usr/obj/alpha (actually /home/obj/alpha) onto the Alpha. But >> the installworld fails because there's no /usr/obj/home/src4/alpha >> tree (built as /home/obj/alpha/home/src4/alpha ). >> >> Any suggestions? > > Make sure the mount points match the environment on which the >build was done, then tweak using MAKEOBJDIRPREFIX?. > > targetbox# mount -t nfs buildbox:/home/src4 /home/src4 > targetbox# mount -t nfs buildbox:/home/obj /home/obj > targetbox# cd /home/src4 > targetbox# env MAKEOBJDIRPREFIX=/home/obj/alpha make installworld > >Worst case, the mounted filesystems may need a symlink from >/home/obj/alpha/home/src4 to /home/obj/alpha/usr/src to trick >the build environment. The problem is that the cross-build environment builds a cross build/ install environment suitable for the build machine. In order to do the install on the target machine, I need an install environment built for it. Having had a closer look at /usr/src/Makefile.inc1, I suspect that running some combination of _bootstrap-tools, _build-tools and _cross-tools on the target will work, but I need to do some more investigation. I doubt I'll get the chance before next weekend. In any case, it seems that cross-building from x86 to Alpha is currently broken due to compiler problems. (It builds but doesn't run). Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message