Stream: beginners

Topic: ✔ Failing Go platform example


view this post on Zulip Ghislain (May 11 2024 at 13:54):

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!

view this post on Zulip Anton (May 11 2024 at 14:01):

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.

view this post on Zulip Ghislain (May 11 2024 at 14:04):

It's okay, it was just for testing, I didn't see you're working on it

view this post on Zulip Luke Boswell (May 11 2024 at 14:22):

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?

view this post on Zulip Luke Boswell (May 11 2024 at 14:22):

Later when I have my laptop at least

view this post on Zulip Ghislain (May 11 2024 at 14:24):

No need to rush on it, I'll wait until the fix is done on the repo, thank you

view this post on Zulip Notification Bot (May 11 2024 at 15:43):

Ghislain has marked this topic as resolved.


Last updated: Jul 06 2025 at 12:14 UTC