Got some time to look at Roc again and saw the warning about no MacOS 13 support, but tried running the rocLoves* examples anyway and the Zig one fails. I'd like to help fix this. @Anton I see you added the warning to the Markdown files - do you have any extra context on the issue with Zig 0.9.1 on MacOS 13? More info about the error below.
I'm running MacOS 13 on Apple silicon with Zig 0.9.1 installed with asdf. This is the error I see, but I'm not sure what the "Darwin is handled separately..." part means:
🔨 Rebuilding platform...
An internal compiler expectation was broken.
This is definitely a compiler bug.
Please file an issue here: https://github.com/roc-lang/roc/issues/new/choose
thread '<unnamed>' panicked at 'Error:
Failed to rebuild host.zig:
The executed command was:
zig build-obj examples/platform-switching/zig-platform/host.zig -femit-bin=examples/platform-switching/zig-platform/macos-arm64.o --pkg-begin str crates/compiler/builtins/bitcode
/src/str.zig --pkg-end --pkg-begin compiler_rt /Users/daviddunn/.asdf/installs/zig/0.9.1/lib/std/special/compiler_rt.zig --pkg-end --library c
stderr of that command:
thread 1597901 panic: Darwin is handled separately via std.zig.system.darwin module
Unable to dump stack trace: debug info stripped
', crates/compiler/build/src/link.rs:1590:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'Failed to (re)build platform.: Any { .. }', crates/cli/src/build.rs:342:46
Hi @doubledup, here is our old conversation when the error first showed up. This is the relevant zig issue.
It looks like zig 0.10.1 solves this issue, but introduces compiler errors. Is there any reason to not upgrade to zig 0.10.1? I'd be willing to put in the work to fix the compiler errors and testing it out. Wanted to see if there was a reason not to update zig.
updating zig means updating LLVM
that work has all been done
but then we ran into some linker issues
there are some PRs for this and work on branches, but it's not quite done yet
Last updated: Jul 06 2025 at 12:14 UTC