[Bug 292350] MAKEOBJDIRPREFIX can only be set in environment or src-env.conf(5), not as a global (in make.conf(5) or src.conf(5)) or command-line variable.
| Newsgroups | gmane.os.freebsd.devel.arm |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292350
Bug ID: 292350
Summary: MAKEOBJDIRPREFIX can only be set in environment or
src-env.conf(5), not as a global (in make.conf(5) or
src.conf(5)) or command-line variable.
Product: Base System
Version: CURRENT
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: arm
Assignee: [email protected]
Reporter: [email protected]
Hey
Im crossbuilding (for fun) world and kernel on my mac mini4, using pkgsrc
binaries. Been doing it for years.
With the command:
```
git pull && MAKEOBJDIRPREFIX=/tmp/obj tools/build/make.py -j8 TARGET=arm64
TARGET_ARCH=aarch64 buildworld buildkernel --cross-bindir=/opt/pkg/bin --clean
WITHOUT_LIB32=yes
```
Last i sucessfully ran this was:
```
--------------------------------------------------------------
>>> Kernel build for GENERIC completed on Thu Jan 8 21:44:51 CET 2026
--------------------------------------------------------------
>>> Kernel(s) GENERIC built in 60 seconds, ncpu: 10, make -j8
```
Now as of commit 509a185dd9405141df4d304d7805019b40e736cf i get this error(it
could ofcourse be before this):
```
MAKEOBJDIRPREFIX=/tmp/obj tools/build/make.py -j8 TARGET=arm64
TARGET_ARCH=aarch64 buildworld buildkernel --cross-bindir=/opt/pkg/bin --clean
WITHOUT_LIB32=yes
bmake: bmake: no system rules (sys.mk).
bmake: /somefolder/freebsd-src/makefile:248: warning: Command "/usr/bin/env -i
PATH=ALOTOFBINFOLDERS /tmp/obj/bmake-install/bin/bmake MK_AUTO_OBJ=no
__MAKE_CONF=/etc/make.conf SRCCONF=/etc/src.conf SRC_ENV_CONF= -f /dev/null
-V MAKEOBJDIRPREFIX dummy" exited with status 2
bmake: /somefolder/freebsd-src/makefile:253: MAKEOBJDIRPREFIX can only be set
in environment or src-env.conf(5), not as a global (in make.conf(5) or
src.conf(5)) or command-line variable.
bmake: stopped making "buildworld buildkernel" in /somefolder/freebsd-src
```
But seems clearig the folder /tmp/obj makes it build again! building as i write
this.
--
You are receiving this mail because:
You are the assignee for the bug.