Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2026 21:08:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-arm@FreeBSD.org
Subject:   [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.
Message-ID:  <bug-292350-7@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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: freebsd-arm@FreeBSD.org
          Reporter: smurf.daemon@mail.smurfd.me

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-292350-7>