Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Apr 2021 19:23:08 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        Peter Blok <pblok@bsd4all.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: cross building i386 on amd64
Message-ID:  <20210416192308.GK71823@spindle.one-eyed-alien.net>
In-Reply-To: <376DADB2-A7A9-4519-888C-BCD8A32B62B3@bsd4all.org>
References:  <376DADB2-A7A9-4519-888C-BCD8A32B62B3@bsd4all.org>

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

[-- Attachment #1 --]
On Fri, Apr 16, 2021 at 07:22:38PM +0200, Peter Blok wrote:
> Hi,
> 
> I???m cross building 12-STABLE i386 on a 12-STABLE amd64 system. Sources are refreshed every day.
> 
> Build runs fine and put everything in the right directory. For the target i386 system it is in /usr/obj/i386TARGET.
> 
> Next I NFS mount the source /on /usr/src and /usr/obj/i386TARGET on /usr/obj on the target machine
> 
> When I run make installworld it will use install from /usr/obj/usr/src/i386.i386/tmp/legacy/usr/bin because it is the first install it finds in the PATH set by installworld. This tanks because install is compiled for amd64.
> 
> I understand why the legacy path is compiled for amd64. This is needed to build a distribution.
> 
> So is this is bug or is the way I distribute the objects not supported?

This way of distributing objects is not reliably supported.  You could probably
work around it by running "make toolchain" on the i386 box (perhaps
after installing devel/llvm11 and adding CROSS_TOOLCHAIN=llvm11 to avoid
building clang).  You might also find that nuking
/usr/obj/usr/src/i386.i386/tmp/legacy works.

-- Brooks

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJgeeQcAAoJEKzQXbSebgfANfkH/i8RUeEMbkRCGsSV3VyZ0nu1
kfvQW3NRw2mcPjGztP6M1dEtkKC3NDlrgw9s8BkY9U9QTG21JwJdaxlszlnVGAlb
PPlzgwgzRdUIBDEEaAZU5jb/pb1pqAaHTHVYb2Z1Lcbcl/O+HqusZjosw/0P0SCl
KP9ZiUnzQ4JA6Li97afFsLSzyjNbNR/PAKhrFzZ64s7qnp7XYGoCRF3JGC/KDYvv
K6YenOir21wUtl04pPN/6GTdjaL3IWaqTiZZtVBmE2I+Vr+WIYvUkk7asq07wjO9
tFl41sP1tWCE+mROlSmTZ+/TrtoN3a8anzursEkzphzWXAPrj53Kd3E+/F7MD/E=
=gHgR
-----END PGP SIGNATURE-----

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