roc icon indicating copy to clipboard operation
roc copied to clipboard

Error building RTL

Open arkaitz-dev opened this issue 1 year ago • 2 comments

Trying to build RTL (https://github.com/isaacvando/rtl) it throws this error:

roc build rtl.roc --optimize Downloading https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br into /home/arkaitz/.cache/roc/packages

[8.7 / 8.7 MB] 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, (+13297, Relocation { kind: PltRelative, encoding: Generic, size: +20, target: Symbol(SymbolIndex(+a2)), addend: +fffffffffffffffc, implicit_addend: false }): Ok(Symbol { name: "memmove", address: +0, size: +0, kind: Unknown, section: Undefined, scope: Unknown, weak: false, flags: Elf { st_info: +10, st_other: +0 } }) try compiling with --linker legacy Location: crates/linker/src/elf.rs:1452:25

roc --version roc nightly pre-release, built from commit 2e2be45 on Sa 28 Dez 2024 09:01:40 UTC

arkaitz-dev avatar Dec 30 '24 00:12 arkaitz-dev

Can you try adding the --linker legacy flag?

lukewilliamboswell avatar Dec 30 '24 00:12 lukewilliamboswell

Related issue: #3609

Anton-4 avatar Dec 30 '24 14:12 Anton-4