Stream: beginners

Topic: ✔ difficulty building platform for basic-cli


view this post on Zulip Jakub Konka (Dec 29 2024 at 21:37):

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?

view this post on Zulip Jakub Konka (Dec 29 2024 at 21:38):

FWIW I am on arm64-apple-darwin host.

view this post on Zulip Jakub Konka (Dec 29 2024 at 21:45):

@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 .

view this post on Zulip Brendan Hansknecht (Dec 29 2024 at 22:13):

The jump-start script is what you want

view this post on Zulip Brendan Hansknecht (Dec 29 2024 at 22:14):

It compiles the platform and moves over the files.

view this post on Zulip Brendan Hansknecht (Dec 29 2024 at 22:15):

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

view this post on Zulip Jakub Konka (Dec 29 2024 at 22:19):

Nice, that was it, thanks!

view this post on Zulip Notification Bot (Dec 29 2024 at 22:19):

Jakub Konka has marked this topic as resolved.


Last updated: Jul 06 2025 at 12:14 UTC