Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Num.floor crashes roc_nightly-linux_x86_64-2023-05-30-ef05ec6 #5490

Closed
salarii opened this issue May 31, 2023 · 2 comments
Closed

Num.floor crashes roc_nightly-linux_x86_64-2023-05-30-ef05ec6 #5490

salarii opened this issue May 31, 2023 · 2 comments

Comments

@salarii
Copy link

salarii commented May 31, 2023

    packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.3.1/97mY3sUwo433-pcnEQUlMhn-sWiIf_J9bPhcAFZoqY4.tar.br" }
    imports [pf.Stdout] 
    provides [main] to pf

main =

    dbg  Num.floor  2.4
    Stdout.line "I'm a Roc application!"
@salarii
Copy link
Author

salarii commented May 31, 2023

roc dev reprod.roc
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 'main' panicked at 'Undefined Symbol in relocation, (+3382, Relocation { kind: PltRelative, encoding: Generic, size: +20, target: Symbol(SymbolIndex(+26)), addend: +fffffffffffffffc, implicit_addend: false }): Ok(Symbol { name: "floor", address: +0, size: +0, kind: Label, section: Undefined, scope: Unknown, weak: false, flags: Elf { st_info: +10, st_other: +0 } })', crates/linker/src/elf.rs:1482:33
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@Anton-4
Copy link
Collaborator

Anton-4 commented May 31, 2023

Hi @salarii, this is a duplicate of #3609.
As a temporary workaround, you can use the flag --linker=legacy as follows:

roc dev examples/helloWorld.roc --linker=legacy

@Anton-4 Anton-4 closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants