From owner-freebsd-stable@FreeBSD.ORG Mon Sep 15 19:20:33 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3B10106567D for ; Mon, 15 Sep 2008 19:20:33 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail14.syd.optusnet.com.au (mail14.syd.optusnet.com.au [211.29.132.195]) by mx1.freebsd.org (Postfix) with ESMTP id 646308FC0A for ; Mon, 15 Sep 2008 19:20:33 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail14.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m8FJK4YA020225 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Sep 2008 05:20:06 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.2) with ESMTP id m8FJK4LP042360; Tue, 16 Sep 2008 05:20:04 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m8FJK4Mv042359; Tue, 16 Sep 2008 05:20:04 +1000 (EST) (envelope-from peter) Date: Tue, 16 Sep 2008 05:20:04 +1000 From: Peter Jeremy To: Dominic Fandrey Message-ID: <20080915192004.GD15376@server.vk2pj.dyndns.org> References: <48CD3A19.8030404@bsdforen.de> <20080915084126.GW15376@server.vk2pj.dyndns.org> <48CE8AD4.8090408@bsdforen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wu6d9FdQ4ohoCGf7" Content-Disposition: inline In-Reply-To: <48CE8AD4.8090408@bsdforen.de> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-stable@freebsd.org Subject: Re: crossbuilding of RELENG_7 broken? 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: Mon, 15 Sep 2008 19:20:34 -0000 --wu6d9FdQ4ohoCGf7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-Sep-15 18:18:28 +0200, Dominic Fandrey wrote: >Peter Jeremy wrote: >> On 2008-Sep-14 18:21:45 +0200, Dominic Fandrey wr= ote: >>> Building them works fine, but when I nfs-mount /usr/obj and /usr/src on= the >>> target system, install does not work. Neiter installkernel nor installw= orld. >>=20 >> You're going to have to give more detail - like your exact command and >> the last few dozen lines of the make install{world,kernel} output. >>=20 > >So well, here it is: > >Command on the amd64 build machine: > ># env MAKEOBJDIRPREFIX=3D/usr/obj/VECTRA-7 make -j4 buildworld buildkernel= KERNCONF=3DVECTRA-7 > >It builds without incident and yes I did try without -j4 and it didn't wor= k either. > >On the i386 target machine, /usr/src and /usr/obj are NFS mounts: > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > ># env MAKEOBJDIRPREFIX=3D/usr/obj/VECTRA-7/i386 make installkernel KERNCON= F=3DVECTRA-7 I didn't understand exactly what you were doing before. The install{world,kernel} must be executed on the same architecture (and similar FreeBSD version) as the build{world,kernel} because the install{world,kernel} executes code that was built as part of the buildworld. Rather than NFS mounting the buildhost onto the target and running install{world,kernel} on the target, you need to NFS mount the target / and /usr onto the buildhost and use DESTDIR to point the install at the correct location. This will work, modulo some chflags issues (chflags isn't supported over NFS - I don't recall offhand where this is discussed but google should be able to help). --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --wu6d9FdQ4ohoCGf7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjOtWQACgkQ/opHv/APuIc6PQCgm0yEiKqltexI951gC4uNiWYU dy4AoKffGUAJiQeu7O9o7mdpk8pdi8lt =E/Nh -----END PGP SIGNATURE----- --wu6d9FdQ4ohoCGf7--