make installworld -DNO_ROOT

From: Christopher Bowman <crb_at_chrisbowman.com>
Date: Mon, 10 Apr 2023 07:00:45 UTC
Id like to build some images and I’d like do that as an ordinary user NOT as root

I’m experimenting with “make installworld -DNO_ROOT TARGET_ARCH=armv7”

When I do that or  “make distribution -DNO_ROOT TARGET_ARCH=armv7”

I get the following error messages during the make run:

make[4] warning: /etc: Permission denied.
make[4] warning: /lib: Permission denied.
make[5] warning: /lib/geom: Permission denied.
make[4] warning: /libexec: Permission denied.
make[4] warning: /bin: Permission denied.
make[4] warning: /rescue: Permission denied.
make[4] warning: /sbin: Permission denied.
make[4] warning: /etc: Permission denied.
make[2] warning: /etc: Permission denied.
make[3] warning: /etc/gss: Permission denied.
make[3] warning: /etc/mtree: Permission denied.
make[3] warning: /lib: Permission denied.
make[4] warning: /lib/geom: Permission denied.
make[3] warning: /libexec: Permission denied.
make[3] warning: /bin: Permission denied.
make[3] warning: /rescue: Permission denied.
make[3] warning: /sbin: Permission denied.
make[3] warning: /etc: Permission denied.

I think as a results either the recursive makes are failing or not doing all they are supposed to.

It’s possible I’m using -DNO_ROOT wrong but if anyone has some suggestions about what’s happening that would be very helpful.

In the alternative I’m open to suggestions as to how to debug the hugs set of make invocations.  I find reading and debug make files hard enough but on huge treee like this with all the invocations and arguments I’m kind lost as to even which command within the make files are causing this.

Thanks
Christopher