Stream: beginners

Topic: ✔ error in ./roc examples/platform-switching/rocLovesRus...


view this post on Zulip Artur Swiderski (Nov 25 2022 at 18:34):

Platform ubuntu 20, newly created container

do you know that problem?

:hammer: Rebuilding platform...
An internal compiler expectation was broken.
This is definitely a compiler bug.
Please file an issue here: https://github.com/roc-lang/roc/issues/new/choose
thread '<unnamed>' panicked at 'Permission denied (os error 13)', crates/linker/src/lib.rs:201:66
stack backtrace:
0: rust_begin_unwind
at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/panicking.rs:142:14
2: roc_linker::generate_dynamic_lib
3: roc_linker::build_and_preprocess_host
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
thread 'main' panicked at 'Failed to (re)build platform.: Any { .. }', crates/cli/src/build.rs:305:46
stack backtrace:
0: rust_begin_unwind
at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/panicking.rs:142:14
2: core::result::unwrap_failed
at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/result.rs:1814:5
3: roc_cli::build::build_file
4: roc_cli::build
5: roc::main

view this post on Zulip Folkert de Vries (Nov 25 2022 at 18:35):

what is the error?

view this post on Zulip Artur Swiderski (Nov 25 2022 at 18:36):

I suspect some dependency missing

view this post on Zulip Artur Swiderski (Nov 25 2022 at 18:37):

it is almost vanilla linux

view this post on Zulip Folkert de Vries (Nov 25 2022 at 18:38):

hmm, the errors is on a line that writes a file. Not sure why permission would be denied on that

view this post on Zulip Folkert de Vries (Nov 25 2022 at 18:38):

did you build from source?

view this post on Zulip Artur Swiderski (Nov 25 2022 at 18:39):

I unpacked that roc_nightly-linux_x86_64-2022-11-23-0ac6fe7.tar.gz

view this post on Zulip Artur Swiderski (Nov 25 2022 at 18:40):

it looks more like rust problem than roc?

view this post on Zulip Folkert de Vries (Nov 25 2022 at 18:40):

kinda? it might also be that the path is just nonsense

view this post on Zulip Artur Swiderski (Nov 25 2022 at 18:44):

ok rust does not work either I will fix that

view this post on Zulip Artur Swiderski (Nov 25 2022 at 18:53):

ok, I don't get the problem but it happened when I transferred files from host to container. Something was messed up with user rights although I kept the same user name in the container it blowed up anyway

view this post on Zulip Artur Swiderski (Nov 25 2022 at 18:53):

I think this topic is no longer valid and can be removed

view this post on Zulip Notification Bot (Nov 25 2022 at 18:58):

Folkert de Vries has marked this topic as resolved.

view this post on Zulip Folkert de Vries (Nov 25 2022 at 18:58):

I tried to add some additional debug prints here https://github.com/roc-lang/roc/pull/4604 hopefully that makes troubleshooting easier in the future


Last updated: Jul 06 2025 at 12:14 UTC