Download raw body.
Update zig-0.16.0
Hi ports@
On Fri, 1 May 2026 18:36:15 -0400, Brandon Mercer wrote:
> Zig has moved from github to codeberg. This diff updates to zig-0.16.0,
> references codeberg instead of github, makes use of clang 21, and bumps
> the stack limit to 16mb, which was needed on aarch64 to allow it to
> build.
(...)
> This has been built and run on amd64 and aarch64 and things work well. I
> would appreciate a close look and feedback. Things should be good so
> OK's are welcome post ports unlock.
Build OK on current/amd64.
I have a similar diff for Zig release 0.16.0 using codeberg to download sources bundle.
You said that you bumps the stack limit to 16mb but in your patch, you don't modify the 'do-build' step:
# set stacksize limit to 10M during the build
do-build:
@ulimit -s 10240 && ${MODCMAKE_BUILD_TARGET}
I was unable to run tests via 'make test', some archs (riscv32-linux-gnu, riscv64-linux-gnu...) needs more than 18 GB RAM to run.
$ make test
(...)
stage3/bin/zig build test -j1 --verbose --verbose-link
git -C /usr/obj/ports/zig-0.16.0/zig-0.16.0 --git-dir .git describe --match "*.*.*" --tags --abbrev=9
error: compile test Debug hexagon-linux-musl: this step declares an upper bound of 18600000000 bytes of memory, exceeding the available 10720493568 bytes of memory
error: compile test Debug riscv32-linux-gnu: this step declares an upper bound of 18600000000 bytes of memory, exceeding the available 10720493568 bytes of memory
error: compile test Debug riscv64-linux-gnu: this step declares an upper bound of 18600000000 bytes of memory, exceeding the available 10720493568 bytes of memory
error: compile test Debug riscv64-linux-musl: this step declares an upper bound of 18600000000 bytes of memory, exceeding the available 10720493568 bytes of memory
error: compile test Debug riscv32-linux-none: this step declares an upper bound of 18600000000 bytes of memory, exceeding the available 10720493568 bytes of memory
error: compile test Debug riscv32-linux-musl: this step declares an upper bound of 18600000000 bytes of memory, exceeding the available 10720493568 bytes of memory
error: compile test Debug hexagon-linux-none: this step declares an upper bound of 18600000000 bytes of memory, exceeding the available 10720493568 bytes of memory
error: compile test Debug riscv64-linux-none: this step declares an upper bound of 18600000000 bytes of memory, exceeding the available 10720493568 bytes of memory
error: compile test Debug wasm32-wasi-none: this step declares an upper bound of 18600000000 bytes of memory, exceeding the available 10720493568 bytes of memory
error: compile test Debug riscv64-openbsd-none: this step declares an upper bound of 18600000000 bytes of memory, exceeding the available 10720493568 bytes of memory
error: compile test Debug riscv64-freebsd-none: this step declares an upper bound of 18600000000 bytes of memory, exceeding the available 10720493568 bytes of memory
error: compile test Debug wasm32-wasi-musl: this step declares an upper bound of 18600000000 bytes of memory, exceeding the available 10720493568 bytes of memory
info: use --maxrss 18600000000 to proceed, risking system memory exhaustion
error: the following build command failed with exit code 1
Laurent
Update zig-0.16.0