make release failure on releng/15.0

2 views
Skip to first unread message

Sad Clouds

unread,
May 27, 2026, 2:53:48 PMMay 27
to freebsd-...@freebsd.org
Hello, are there currently known issues with "make release" on the
releng/15.0 branch?

$ git clone --branch releng/15.0 --depth 1 https://git.FreeBSD.org/src.git src

$ cd ${FREEBSD_SRC:?}/release && env \
MAKEOBJDIRPREFIX=${FREEBSD_OBJ:?} SRCCONF="${BUILD_DIR:?}/src.conf" SYSDIR="${FREEBSD_SRC:?}/sys" \
make TARGET=${MACHINE:?} TARGET_ARCH=${MACHINE_ARCH:?} \
release > ${BUILD_DIR:?}/release.log 2>&1 || echo "ERROR: make failed"

The above make command results in the following failure:

FreeBSD-base repository update completed. 338 packages processed.
All repositories are up to date.
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
/usr/libexec/flua: /home/user/freebsd/src/release/scripts/pkgbase-stage.lua:49: assertion failed!
stack traceback:
[C]: in function 'assert'
/home/user/freebsd/src/release/scripts/pkgbase-stage.lua:49: in upvalue 'select_packages'
/home/user/freebsd/src/release/scripts/pkgbase-stage.lua:101: in local 'main'
/home/user/freebsd/src/release/scripts/pkgbase-stage.lua:107: in main chunk
[C]: in ?
*** Error code 1

Stop.
make: stopped making "release" in /home/user/freebsd/src/release

Maku Bex

unread,
May 27, 2026, 3:08:02 PMMay 27
to Sad Clouds, freebsd-...@freebsd.org
Not sure what you are trying to invent with all of that, but is there a reason for not using the `release.sh` script with the companion `release.conf` file? 

Sad Clouds

unread,
May 27, 2026, 4:24:37 PMMay 27
to Maku Bex, freebsd-...@freebsd.org
On Wed, 27 May 2026 14:07:21 -0500
Maku Bex <zagaz...@gmail.com> wrote:

> Not sure what you are trying to invent with all of that, but is there a
> reason for not using the `release.sh` script with the companion
> `release.conf` file?

I'm not trying to invent anything. See release(7) man page and section
"EXAMPLES". I'm following the steps documented there, which invoke make
commands directly, instead of release.sh script.

Sad Clouds

unread,
May 28, 2026, 4:15:38 AMMay 28
to freebsd-...@freebsd.org
It looks like there is a known issue:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294729

However I'm not building a custom kernel, so the issue may have other
root causes, i.e. specific src.conf settings?. The way I build:

BUILD_DIR="/home/user/freebsd"
MACHINE=amd64
MACHINE_ARCH=amd64
FREEBSD_SRC="${BUILD_DIR:?}/src"
FREEBSD_OBJ="${BUILD_DIR:?}/obj"

# Generate src.conf
cat > ${BUILD_DIR:?}/src.conf << 'EOF'
# Enable non-default settings
WITH_BHYVE_SNAPSHOT=yes
WITH_OFED_EXTRA=yes
WITH_REPRODUCIBLE_BUILD=yes
WITH_MALLOC_PRODUCTION=yes

# Disable default settings
WITHOUT_FREEBSD_UPDATE=yes
WITHOUT_LIB32=yes
WITHOUT_TESTS=yes
WITHOUT_TESTS_SUPPORT=yes
EOF

# Build everything
env \
MAKEOBJDIRPREFIX=${FREEBSD_OBJ:?} SRCCONF="${BUILD_DIR:?}/src.conf" SYSDIR="${FREEBSD_SRC:?}/sys" \
make -C ${FREEBSD_SRC:?} TARGET=${MACHINE:?} TARGET_ARCH=${MACHINE_ARCH:?} \
-j 12 buildworld buildkernel > ${BUILD_DIR:?}/build.log 2>&1 \
|| echo "ERROR: make failed"

# Create release
env \
MAKEOBJDIRPREFIX=${FREEBSD_OBJ:?} SRCCONF="${BUILD_DIR:?}/src.conf" SYSDIR="${FREEBSD_SRC:?}/sys" \
make -C ${FREEBSD_SRC:?}/release TARGET=${MACHINE:?} TARGET_ARCH=${MACHINE_ARCH:?} \
Reply all
Reply to author
Forward
0 new messages