Stream: contributing

Topic: failing test cli_run::platform_switching_main on Fedora


view this post on Zulip Nick Gravgaard (Dec 06 2023 at 00:59):

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?

view this post on Zulip Brendan Hansknecht (Dec 06 2023 at 01:06):

not expected, but it may be some sort of os config

view this post on Zulip Brendan Hansknecht (Dec 06 2023 at 01:07):

I would start by trying to run that file directly

view this post on Zulip Brendan Hansknecht (Dec 06 2023 at 01:07):

something like cargo run examples/platform-switching/main.roc

view this post on Zulip Brendan Hansknecht (Dec 06 2023 at 01:07):

see what it tells you

view this post on Zulip Nick Gravgaard (Dec 06 2023 at 01:12):

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!

view this post on Zulip Brendan Hansknecht (Dec 06 2023 at 01:38):

Interesting. Can you try with --linker=legacy

view this post on Zulip Nick Gravgaard (Dec 06 2023 at 09:16):

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?

$

view this post on Zulip Anton (Dec 06 2023 at 10:06):

It worked as expected there, "Which platform am I running on now?" is the output.

view this post on Zulip Anton (Dec 06 2023 at 10:12):

Can you share what OS you are using @Nick Gravgaard?

view this post on Zulip Nick Gravgaard (Dec 06 2023 at 13:01):

Sure, Fedora 39 on x86_64 (AMD)

view this post on Zulip Anton (Dec 06 2023 at 13:07):

Thanks @Nick Gravgaard, this is being tracked in #5943


Last updated: Jul 06 2025 at 12:14 UTC