Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 2026 23:21:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 294436] bmake: Linux cross-build fails, MAKEOBJDIR issue
Message-ID:  <bug-294436-227-2VXzOAO53V@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-294436-227@https.bugs.freebsd.org/bugzilla/>

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

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-294436-227-2VXzOAO53V>