roc-lang / roc

A fast, friendly, functional language.
https://roc-lang.org
Universal Permissive License v1.0
4.46k stars 313 forks source link

`_dl_fixup` `Assertion failed` on fedora #5943

Open Anton-4 opened 1 year ago

Anton-4 commented 1 year ago
[jan@framey roc]$ sudo dnf check-update && sudo dnf install clang
Last metadata expiration check: 0:18:50 ago on Sun 29 Oct 2023 09:13:32 PM MDT.

crun.x86_64                1.11-1.fc38                 updates
[jan@framey roc]$ roc version
roc: /lib64/libtinfo.so.6: no version information available (required by roc)
roc nightly pre-release, built from commit c509252 on Fr 27 Okt 2023 09:07:30 UTC
[jan@framey roc]$ roc ./examples/platform-switching/rocLovesC.roc 
roc: /lib64/libtinfo.so.6: no version information available (required by roc)
🔨 Rebuilding platform...
Roc <3 C!
Inconsistency detected by ld.so: dl-runtime.c: 63: _dl_fixup: Assertion `ELFW(R_TYPE)(reloc->r_info) == ELF_MACHINE_JMP_SLOT' failed!
[jan@framey roc]$ 
Anton-4 commented 11 months ago

This can be worked around by using --linker=legacy, e.g: cargo run examples/platform-switching/main.roc --linker=legacy