ziglang / zig-bootstrap

take off every zig
368 stars 86 forks source link

build failure on M1 Mac #155

Closed gegogi closed 1 year ago

gegogi commented 1 year ago

Latest zig-bootstrap (bf1b2cdb83141ad9336eec42160c9fe87f90198d) build on M1 Mac is failing. Build command line is ./build native-native-musl baseline. What could be the reason?

Screenshot 2023-07-01 at 11 55 34 AM
nektro commented 1 year ago

error message includes potential fix, its recommending you try ./build native-native-none baseline

but also if you're doing native-native you should follow the regular build from source instructions https://github.com/ziglang/zig/wiki/Building-Zig-From-Source instead of using zig-bootstrap

gegogi commented 1 year ago

Ok, I can see that now. But what does it mean to specify 'none' for part of the triple? Doesn't the repo contain the musl source code?

And I also wonder why it is preferred way to use zig repo instead of zig-bootstrap repo. Isn't zig-bootstrap a collection of the safe revision of zig and needed dependencies?

nektro commented 1 year ago

musl is a libc implementation for linux, not macos. so trying to use it with a macos triple will not work.