[Bug 294436] bmake: Linux cross-build fails, MAKEOBJDIR issue

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 12 Apr 2026 23:21:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294436

--- Comment #2 from Lexi Winter <ivy@FreeBSD.org> ---
> There should be no functional change in this version of bmake.

well, something changed. :-)  c5961b6fcfe0 works, and 34a3834eadd doesn't, and
the only change between those two commits is the bmake import.  (the older
commit does eventually hit a different error, but it's not bmake-related.)

> You might find it useful to put the following in share/mk/site.sys.env.mk

% MAKEOBJDIRPREFIX=/obj/test tools/build/make.py --cross-bindir /usr/bin
--cross-compiler-type clang -j36 TARGET=powerpc TARGET_ARCH=powerpc64le
buildworld
bmake: /src/bsd/main/share/mk/src.sys.obj.mk:117: Cannot use
MAKEOBJDIR=${.CURDIR:S,^${SRCTOP},${OBJTOP},}
Unset MAKEOBJDIR to get default: 
MAKEOBJDIR='${.CURDIR:S,^${SRCTOP},${OBJTOP},}'
        in /src/bsd/main/share/mk/src.sys.env.mk:95
        in /src/bsd/main/share/mk/local.sys.env.mk:64
        in /src/bsd/main/share/mk/sys.mk:46

bmake: stopped making "buildworld" in /src/bsd/main
.CURDIR='/src/bsd/main'
.OBJDIR='/src/bsd/main'
SRCTOP='/src/bsd/main'
OBJTOP='/obj/test/src/bsd/main/powerpc.powerpc64le'
MAKEOBJDIR='${.CURDIR:S,^${SRCTOP},${OBJTOP},}'
%

-- 
You are receiving this mail because:
You are the assignee for the bug.