cross building i386 on amd64

Peter Blok pblok at bsd4all.org
Fri Apr 16 17:22:48 UTC 2021


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?

Peter


More information about the freebsd-hackers mailing list