Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Nov 2002 11:57:49 +0200
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Peter Jeremy <peterjeremy@optushome.com.au>
Cc:        Jake Burkholder <jake@locore.ca>, freebsd-stable@FreeBSD.ORG
Subject:   Re: installworld from a cross-buildworld
Message-ID:  <20021105095749.GB64277@sunbay.com>
In-Reply-To: <20021103230626.GA1093@server.c18609.belrs1.nsw.optusnet.com.au>
References:  <20021103171945.M22677@locore.ca> <20021103230626.GA1093@server.c18609.belrs1.nsw.optusnet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021105095749.GB64277>