From owner-freebsd-stable@FreeBSD.ORG Sun Nov 20 09:15:20 2005 Return-Path: X-Original-To: stable@freebsd.org 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 8FFAA16A422 for ; Sun, 20 Nov 2005 09:15:20 +0000 (GMT) (envelope-from ltning@anduin.net) Received: from anduin.net (anduin.net [212.12.46.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96AF143D46 for ; Sun, 20 Nov 2005 09:15:13 +0000 (GMT) (envelope-from ltning@anduin.net) Received: from ranger.anduin.net ([81.0.162.52] helo=[192.168.1.110]) by anduin.net with esmtpa (Exim 4.50 (FreeBSD)) id 1EdlHw-000AB2-TT; Sun, 20 Nov 2005 10:15:08 +0100 In-Reply-To: References: <437F6E41.2040504@bfoz.net> <84dead720511191043u26808efcn54987c99407500e0@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: =?ISO-8859-1?Q?Eirik_=D8verby?= Date: Sun, 20 Nov 2005 10:14:37 +0100 To: =?ISO-8859-1?Q?Eirik_=D8verby?= X-Mailer: Apple Mail (2.746.2) Cc: Brandon Fosdick , stable@freebsd.org, Joseph Koshy Subject: Re: Centralized building X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Nov 2005 09:15:20 -0000 On Nov 20, 2005, at 09:50 , Eirik =D8verby wrote: > > On Nov 19, 2005, at 19:43 , Joseph Koshy wrote: > >>> AFAICT cross-compiling amd64 on a i386 machine isn't supported >>> yet. I ran into a similar problem when I upgraded an i386 >>> machine to amd64. I thought I could just set CPUTYPE=3Dathlon-64 >>> and buildworld would do the right thing. Apparently not. >> >> Bootstrapping a single machine is supported: >> >> # make buildworld TARGET_ARCH=3Dnew-arch >> >> plus a few other steps. (See build(7)). >> >> There have been a couple of postings on the mailing lists >> on this topic in the recent past. I've taken a stab at >> describing how to cross-bootstrap too: >> >> http://edoofus.blogspot.com/2005/10/cross-building-freebsd.html >> >> The OP wanted to do a 'buildworld TARGET_ARCH=3Dfoo' on one >> machine and then an 'installworld' on a different set of >> machines. > > Yes, and he still wonders if this is supposed to be doable or not. > I think the culprit is (partly) the fact that every architecture is =20= > built into its own subdirectory in /usr/obj, EXCEPT the =20 > architecture the build is running on. The same goes for the install =20= > part, and if the build and install architectures differ, it cannot =20 > ever work. Setting MAKEOBJDIRPREFIX on the target host makes the =20 > install start, but it fails after a couple of minutes with the "dd: =20= > not found" error. > (I do notice that there is a /usr/obj/usr directory created also =20 > when cross-building; I'm assuming this contains the build bootstrap =20= > tools). Follow-up. If I enter src/sys and do a "make install", the dd step =20 works perfectly - however it stops later when trying to install =20 cdboot. I am assuming this is due to missing options or wrong target =20 for make, but - from all I can tell - shows a weakness in the build/=20 install system. Or maybe not... Anyone?? /Eirik > > > >> >> -- >> FreeBSD Volunteer, http://people.freebsd.org/~jkoshy >> >> > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-=20 > unsubscribe@freebsd.org" > >