Skip to content

Panic running stack build - GHC 8.6.5 linux unknown (Manjaro)

Summary

I'm trying to build https://github.com/jeopard/haskell-checking-account.git using the suggested method (stack setup && stack build)

Steps to reproduce

git clone https://github.com/jeopard/haskell-checking-account.git
cd haskell-checking-account
stack setup
stack build

Expected behavior

To build the app

Environment

  • GHC version used: GHC version 8.6.5 for x86_64-unknown-linux

Optional:

  • Operating System: Manjaro Linux
  • Kernel: 5.18.17-1-MANJARO
  • CPU: Intel i7-7700 (8) @ 4.200GHz
  • Memory: 8984MiB / 15888MiB
  • System Architecture: x86_64

Console output:

ghc: panic! (the 'impossible' happened)
  (GHC version 8.6.5 for x86_64-unknown-linux):
        Prelude.chr: bad argument: 1543503875

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug


--  While building simple Setup.hs (scroll up to its section to see the error) using:
      /home/REDACTED/.stack/programs/x86_64-linux/ghc-tinfo6-8.6.5/bin/ghc-8.6.5 -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.4.0.1 /home/REDACTED/.stack/setup-exe-src/setup-mPHDZzAJ.hs /home/REDACTED/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /home/REDACTED/.stack/setup-exe-cache/x86_64-linux-tinfo6/tmp-Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5
    Process exited with code: ExitFailure 1
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information