roc
roc copied to clipboard
Internal Compiler Bug
Hello!
Today the compiler informed me that it encountered an internal compiler bug. I was just looking at the help output from roc --help
and noticed the --dev
flag. I tried to use it without any arguments, and then the crash happened.
I don't know if this is a bug, or just misuse.
Example
main.roc
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br" }
import pf.Stdout
main =
Stdout.line! "hello world!"
Then run roc --dev
The output is
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 Undefined Symbol in relocation, (+a0, Relocation { kind: PltRelative, encoding: Generic, size: +20, target: Symbol(SymbolIndex(+5c)), addend: +fffffffffffffffc, implicit_addend: false }): Ok(Symbol { name: "roc_builtins.str.equal", address: +0, size: +0, kind: Unknown, section: Undefined, scope: Unknown, weak: false, flags: Elf { st_info: +10, st_other: +2 } }) Location: crates/linker/src/elf.rs:1452:25