elf_reloc_aarch64.c Assertion failure
Summary
Apologies if this issue is known I could not find anything related. I'm using clash on aarch64 nixos and I'm trying to upgrade to 9.6.4 or 9.8.1 from 9.0.2. But in both instances GHC balks when running clash with an assertion failure:
clash: internal error: ASSERTION FAILED: file rts/linker/elf_reloc_aarch64.c, line 99
(GHC version 9.8.1 for aarch64_unknown_linux)
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Steps to reproduce
It assumes you have nix installed(I don't have access to a non-nixos linux aarch64 system).
I have made a mininal reproducer:
git clone git@github.com:rowanG077/ghc-aarch64-bug.git
cd ghc-aarch64-bug
-
nix-shell -p haskell.compiler.ghc98 cabal-install
A similar assert is hit when going the full nix route. But instead of hitting the assert on line 99 it hits the one on line 76. cabal run clash
Expected behavior
I expect it to run clash.
Environment
- GHC version used: 9.8.1 and 9.6.4
Optional:
- Operating System: NixOS unstable
- System Architecture: Aarch64
Edited by Matthew Pickering