The default MAKEOBJDIR is based on OBJTOP not OBJROOT. Without this some
recursive makes for various targets compute an .OBJDIR under / and make
prints various warnings of the form:
make[5] warning: /lib: Permission denied.
Differential D30990
src.sys.obj.mk: Export OBJTOP like OBJROOT jrtc27 on Jul 2 2021, 12:38 AM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions More scrutiny for this would be good, these parts of the build system always risk being like a game of whack-a-mole...
Comment Actions I see that this review has kind of stalled. I've just given a test to the change and I see a problem (maybe related to what @sjg warned about): + make installworld distrib-dirs installkernel -s -j6 '__MAKE_CONF=/usr/home/avg/devel/builds/rock/make.conf' 'SRCCONF=/usr/home/avg/devel/builds/rock/src.conf' 'KERNCONFDIR=/usr/home/avg/devel/builds/rock' 'KERNCONF=KERNEL' 'DESTDIR=/usr/obj/rock/image' 'DB_FROM_SRC=t' 'NO_ROOT=t' make[1]: "/usr/devel/git/rock/Makefile.inc1" line 106: A build is required first. You may have the wrong MAKEOBJDIRPREFIX set. Seems like it could be related to this line: .-include "${OBJTOP}/toolchain-metadata.mk" |