From owner-freebsd-stable Tue Nov 5 1:58:13 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 3AD9237B401 for ; Tue, 5 Nov 2002 01:58:11 -0800 (PST) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id B331743E4A for ; Tue, 5 Nov 2002 01:58:05 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Sunbay) with ESMTP id gA59vtRK066293 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 5 Nov 2002 11:57:55 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Submit) id gA59vndG066265; Tue, 5 Nov 2002 11:57:49 +0200 (EET) Date: Tue, 5 Nov 2002 11:57:49 +0200 From: Ruslan Ermilov To: Peter Jeremy Cc: Jake Burkholder , freebsd-stable@FreeBSD.ORG Subject: Re: installworld from a cross-buildworld Message-ID: <20021105095749.GB64277@sunbay.com> References: <20021103171945.M22677@locore.ca> <20021103230626.GA1093@server.c18609.belrs1.nsw.optusnet.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hQiwHBbRI9kgIhsi" Content-Disposition: inline In-Reply-To: <20021103230626.GA1093@server.c18609.belrs1.nsw.optusnet.com.au> User-Agent: Mutt/1.4i 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 --hQiwHBbRI9kgIhsi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 04, 2002 at 10:06:26AM +1100, Peter Jeremy wrote: > On Sun, Nov 03, 2002 at 05:19:46PM -0500, Jake Burkholder wrote: > >Apparently, On Mon, Nov 04, 2002 at 08:28:10AM +1100, > > Peter Jeremy said words to the effect of; > > > >> 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. > ... > >The only way I've found to do this is to nfs mount the filesystems of > >the target machine on the build machine and do the installworld with > >DESTDIR=3D/path/to/nfs/mount. ie: > > > > make buildworld TARGET_ARCH=3Dsparc64 > > mount sparc64:/ /mnt (etc) > > make installworld TARGET_ARCH=3Dsparc64 DESTDIR=3D/mnt >=20 > I just tried this. It fails because NFS doesn't support flags: > asv400# ls -lo /usr/lib/libcrypt.so.2 > -r--r--r-- 1 root wheel schg 47202 Nov 4 09:29 /usr/lib/libcrypt.so.2 > asv400# >=20 > server# ls -lo /mnt/usr/lib/libcrypt.so.2 > -r--r--r-- 1 root wheel - 47202 Nov 4 09:29 /mnt/usr/lib/libcrypt.so.2 > server# install -s -o root -g wheel -m 444 -fschg /usr/obj/alpha/home/src= 4/lib/libcrypt/libcrypt.so.2 /mnt/usr/lib > install: /mnt/usr/lib/libcrypt.so.2: Permission denied > server# >=20 > Even if I remove the schg flag on the Alpha, I can't set it from the x86 > box: > server# install -o root -g wheel -m 444 -fschg /usr/obj/alpha/home/src4/= lib/libcrypt/libcrypt.so.2 /mnt/usr/lib > install: /mnt/usr/lib/libcrypt.so.2: chflags: Operation not supported > server# >=20 This warning is harmless, and is documented in the install(1)'s BUGS section. Of course you should do the chflags(1) first on the install host as you appear to have done. We currently don't support building and installing on incompatible hosts. Incompatible may mean different architectures, different OS versions of the same architecture, or even otherwise compatible but different CPU machines (i586 vs. i686). For this very reason, and to minimize the impact on this, we build our build-tools and cross-tools (ones that are run on the install host later) with the -DNO_CPU_CFLAGS and -DNOSHARED options, so that the generated tools don't depend on possibly missing shared libraries, etc. This still does not work quite right if e.g. the build host has CPUTYPE=3Di686 and the install host has the i586 CPU. So, in short, to build only once for the cluster of similar machines, the build host should be the least common denominator of these, in any of the above mentioned senses: architecture, CPU, and kernel. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --hQiwHBbRI9kgIhsi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE9x5YdUkv4P6juNwoRAtM/AJ9vM9adwnq5tq2iFA7IeNHvpUheCwCdGeTB TIIg8T8T7d0iCQMGffhXR6I= =iINk -----END PGP SIGNATURE----- --hQiwHBbRI9kgIhsi-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message