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
what is the error?
I suspect some dependency missing
it is almost vanilla linux
hmm, the errors is on a line that writes a file. Not sure why permission would be denied on that
did you build from source?
I unpacked that roc_nightly-linux_x86_64-2022-11-23-0ac6fe7.tar.gz
it looks more like rust problem than roc?
kinda? it might also be that the path is just nonsense
ok rust does not work either I will fix that
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
I think this topic is no longer valid and can be removed
Folkert de Vries has marked this topic as resolved.
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