Stream: beginners

Topic: basic-cli 0.3.0 not working


view this post on Zulip Seth Workman (Mar 23 2023 at 20:38):

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!"

view this post on Zulip Brendan Hansknecht (Mar 23 2023 at 20:51):

I believe you need to update your version of the roc compiler.

view this post on Zulip Brendan Hansknecht (Mar 23 2023 at 20:51):

There we changes that affected platforms recently.

view this post on Zulip Seth Workman (Mar 23 2023 at 21:28):

Just tried and same issue (just going to use 0.2.1 for now)

view this post on Zulip Brendan Hansknecht (Mar 23 2023 at 21:59):

I think you have to wait for the next nightly or build from source

view this post on Zulip Brendan Hansknecht (Mar 23 2023 at 21:59):

Looks to be working on main.

view this post on Zulip Anton (Mar 24 2023 at 09:39):

New nightlies are available now


Last updated: Jul 06 2025 at 12:14 UTC