Index | Thread | Search

From:
Laurent Cheylus <foxy@free.fr>
Subject:
Re: UPDATE: Zig 0.17.0
To:
ports@openbsd.org
Date:
Sat, 10 Oct 2026 17:16:30 -0000

Download raw body.

Thread
  • Laurent Cheylus:

    UPDATE: Zig 0.17.0

  • Brad Smith:

    UPDATE: Zig 0.17.0

  • Hi,
    
    On Fri, 9 Oct 2026 22:40:58 -0400, Brad Smith wrote:
    
    > Here is an update to Zig 0.17.0.
    > 
    > Build tested on aarch64 and amd64.
    
    Build OK on current/amd64, build/run of Zig projects lightly tested with this 0.17.0 version.
    
    With a current/amd64 VM with only 4 GB RAM, there are some errors because Zig build needs >= 8 GB for RAM:
    
    $ make build
    (...)
    FAILED: stage3/bin/zig /usr/obj/ports/zig-0.17.0/build-amd64/stage3/bin/zig
    cd /usr/obj/ports/zig-0.17.0/zig && /usr/obj/ports/zig-0.17.0/build-amd64/zig2 build --zig-lib=/usr/obj/ports/zig-0.17.0/zig/lib -Dversion-string=0.17.0+7647adab8 -Dtarget=native -Dcpu=baseline -Denable-llvm -Dconfig_h=/usr/obj/ports/zig-0.17.0/build-amd64/config.h -Doptimize=ReleaseFast -Dstrip --prefix /usr/obj/ports/zig-0.17.0/build-amd64/stage3
    error: compile exe zig fast native-native: this step declares an upper bound of 8000000000 bytes of memory, exceeding the available 4278042624 bytes of memory
    info: use --skip-oom-steps to proceed, skipping memory limited steps
    info: use --maxrss 8000000000 to proceed, risking system memory exhaustion
    ninja: build stopped: subcommand failed.
    
    It would be good to add in Makefile a check for this "physical" constraint on RAM to build port.
    
    Laurent
    
    
  • Laurent Cheylus:

    UPDATE: Zig 0.17.0

  • Brad Smith:

    UPDATE: Zig 0.17.0