Can't seem to run any roc files with basic-cli 0.3.0
. I swear it was working last week but now I get the following error. Version 0.2.1
works normally for me
Undefined symbols for architecture arm64:
"_roc__mainForHost_0_caller", referenced from:
__ZN4host16call_the_closure17h497dd8e8438c7188E in macos-arm64.o
"_roc__mainForHost_0_result_size", referenced from:
__ZN4host16call_the_closure17h497dd8e8438c7188E in macos-arm64.o
"_roc__mainForHost_1_exposed_size", referenced from:
_rust_main in macos-arm64.o
ld: symbol(s) not found for architecture arm64
hello: No such file or directory
thread 'main' panicked at 'not yet implemented: gracefully handle `ld` (or `zig` in the case of wasm with --optimize) returning exit code Some(1)', crates/compiler/build/src/program.rs:966:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
app "hello"
packages { cli: "https://github.com/roc-lang/basic-cli/releases/download/0.3/5CcipdhTTAtISf4FwlBNHmyu1unYAV8b0MKRwYiEHys.tar.br" }
imports [cli.Stdout]
provides [main] to cli
main =
Stdout.line "Hello, World!"
I believe you need to update your version of the roc compiler.
There we changes that affected platforms recently.
Just tried and same issue (just going to use 0.2.1 for now)
I think you have to wait for the next nightly or build from source
Looks to be working on main.
New nightlies are available now
Last updated: Jul 06 2025 at 12:14 UTC