ziglang / zig

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
https://ziglang.org
MIT License
33.35k stars 2.43k forks source link

error: NoSpaceLeft with MacOS target on x86 host #20124

Open markus-oberhumer opened 2 months ago

markus-oberhumer commented 2 months ago

Zig Version

zig-linux-x86-0.13.0-dev.343+2008d0f7c

Steps to Reproduce and Observed Behavior

Compiling hello.zig from https://ziglang.org/documentation/master/#toc-Hello-World with the 32-bit zig build:

$ ./zig-linux-x86-0.13.0-dev.343+2008d0f7c/zig build-exe -target x86_64-macos-none hello.zig
error: NoSpaceLeft

Building with the 64-bit compiler works, though:

$ ./zig-linux-x86_64-0.13.0-dev.343+2008d0f7c/zig build-exe -target x86_64-macos-none hello.zig
# OK

Might be related to https://github.com/ziglang/zig/issues/19026

Expected Behavior

No error.

markus-oberhumer commented 2 months ago

cc @kubkon

markus-oberhumer commented 2 months ago

FYI, I stumbled on this while testing deterministic builds at upx-test-build-with-zig

CI log at https://github.com/upx/upx-test-build-with-zig/actions/runs/9306834999/job/25616849678