when I run cargo test
it says test cli_run::platform_switching_main ... FAILED
. Is this expected? Can I help figure out what's wrong?
not expected, but it may be some sort of os config
I would start by trying to run that file directly
something like cargo run examples/platform-switching/main.roc
see what it tells you
thanks, that says:
Inconsistency detected by ld.so: dl-runtime.c: 63: _dl_fixup: Assertion `ELFW(R_TYPE)(reloc->r_info) == ELF_MACHINE_JMP_SLOT' failed!
Interesting. Can you try with --linker=legacy
Thanks Brendan. That doesn't crash but it also doesn't output anything:
$ cargo run examples/platform-switching/main.roc --linker=legacy
Finished dev [unoptimized + debuginfo] target(s) in 0.18s
Running `target/debug/roc examples/platform-switching/main.roc --linker=legacy`
🔨 Rebuilding platform...
Which platform am I running on now?
$
It worked as expected there, "Which platform am I running on now?" is the output.
Can you share what OS you are using @Nick Gravgaard?
Sure, Fedora 39 on x86_64 (AMD)
Thanks @Nick Gravgaard, this is being tracked in #5943
Last updated: Jul 06 2025 at 12:14 UTC