I think this used to work for me a month ago but perhaps I am misremembering things. I am trying to play with basic-cli
example repo and for some reason cannot get past a user error that says the following:
$ roc build.roc --linker=legacy
Legacy linking failed: Failed to find any legacy linking files; I need one of these three paths to exist:
platform/macos-arm64.a
platform/macos-arm64.o
platform/libhost.a
The error is confusing since I thought that invocation would invoke cargo
down the line to actually build the platform/host for use by examples apps in examples
. Is that not the case? Am I missing something vital here?
FWIW I am on arm64-apple-darwin
host.
@Brendan Hansknecht @Luke Boswell Apologies for pinging you guys directly but I'd appreciate some help with this so that I could test the surgical linker .
The jump-start script is what you want
It compiles the platform and moves over the files.
For Linux x64 it should invoke the surgical linker. For Mac, probably need to edit some commands to make it use the same path as Linux x64
Nice, that was it, thanks!
Jakub Konka has marked this topic as resolved.
Last updated: Jul 06 2025 at 12:14 UTC