From owner-freebsd-stable@FreeBSD.ORG Sun Nov 20 20:24:42 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 77FA316A41F for ; Sun, 20 Nov 2005 20:24:42 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5DA543D49 for ; Sun, 20 Nov 2005 20:24:41 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jAKKOai1086382; Sun, 20 Nov 2005 22:24:36 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 91847-03-5; Sun, 20 Nov 2005 22:24:34 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jAKKLLcK084703 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 20 Nov 2005 22:21:21 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id jAKKLUXZ006136; Sun, 20 Nov 2005 22:21:30 +0200 (EET) (envelope-from ru) Date: Sun, 20 Nov 2005 22:21:30 +0200 From: Ruslan Ermilov To: Eirik ?verby Message-ID: <20051120202130.GH20188@ip.net.ua> References: <437F6E41.2040504@bfoz.net> <84dead720511191043u26808efcn54987c99407500e0@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gTtJ75FAzB1T2CN6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua 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 20:24:42 -0000 --gTtJ75FAzB1T2CN6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 20, 2005 at 10:14:37AM +0100, Eirik ?verby wrote: >=20 > On Nov 20, 2005, at 09:50 , Eirik ?verby wrote: >=20 > > > >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). >=20 > 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... >=20 > Anyone?? >=20 We don't support build host !=3D install host, in a strict sense. But as Joseph pointed out, we do support NFS installs to different architectures. The build host !=3D install host is supported only if a number of conditions are met, most noticeable are that they should be running the same OS version and the same (or compatible) CPU, and of course the same set of options (/etc/make.conf, etc.) Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --gTtJ75FAzB1T2CN6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDgNrKqRfpzJluFF4RAibyAKCLPZSjDxunYJTdGanprbh/Rig+uQCeKEu+ mgGDRJIA+g6emjWM5VerPgo= =KA3v -----END PGP SIGNATURE----- --gTtJ75FAzB1T2CN6--