Closed Vexu closed 1 week ago
Hmm, I cannot seem to repro this locally.
I don't know if it matters but this happens on a Zig binary built without stage1.
I wonder if this is due to how Zig is built. My invocation is something like:
$ ./stage3/bin/zig build -p stage4 -Dstatic-llvm --search-prefix /home/kubkon/dev/zig-bootstrap/out/x86_64-linux-musl-baseline
Mine is pretty much the same except that --search-prefix
points at zig-bootstrap/out/native-linux-gnu-native/
I haven't looked into this yet but as a clue - "native" is a zig-only concept; it's supposed to get resolved into a concrete architecture before it gets sent to LLVM.
It seems to work properly on a zig binary built by cmake and a release zig binary built by the cmake zig but not on a debug Zig built by that release zig.
This is caused by passing native to build
, I think it should either resolve to the canonical value or be disallowed entirely.
@Vexu just to be clear, is the repro for this issue just ./build x86_64-windows native
on a Linux machine?
That works for me FWIW.
I think it happened when using ./build native-linux-gnu native
but I haven't tried it since making this issue.
Both ./build native-linux-gnu native
and ./build native-windows-gnu native
work for me on Linux.
Do you think it's safe to close this?
Fine by me. I haven't ran into this since.
To reproduce on Linux: