Hi,
I'm following the example from https://www.roc-lang.org/examples/GoPlatform/README.html. I get this error:
➜ go-platform tree
.
├── main.roc
└── platform
├── dynhost
├── go.mod
├── host.h
├── libapp.dylib
├── main.go
└── main.roc
2 directories, 7 files
➜ go-platform roc preprocess-host main.roc
thread 'main' panicked at crates/linker/src/generate_dylib/macho.rs:90:27:
Failed to link dummy shared library - stderr of the `ld` command was:
ld: Missing -platform_version option
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I don't understand what I'm suppose to set as "platform_version". Could you help me?
PS: it's been a long time (1 year) since I left this zulip chat, what a pleasure to see the evolution of the language, keep up the good work!
Hi again @Ghislain,
I was working on adding macos testing for this but I also could not get the Go example to work. I think @Luke Boswell knows how to solve the error on my PR though.
It's okay, it was just for testing, I didn't see you're working on it
I have a working go platform, but not in a public repository. Just on my phone rn. But I can probably share the WIP if your interested?
Later when I have my laptop at least
No need to rush on it, I'll wait until the fix is done on the repo, thank you
Ghislain has marked this topic as resolved.
Last updated: Jul 06 2025 at 12:14 UTC