Skip to content

patchRegsOfInstr panic in GHC 9.2.5, 9.4.4 and 9.6.0

$ cabal unpack SHA-1.5.0.0 && cd SHA-1.5.0.0 && cabal build
Building library for SHA-1.5.0.0..
[1 of 1] Compiling Data.Digest.Pure.SHA

<no location info>: error:
    panic! (the 'impossible' happened)
  GHC version 9.6.0.20230111:
	patchRegsOfInstr
  missing
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/GHC/Utils/Panic.hs:189:37 in ghc:GHC.Utils.Panic
        pprPanic, called at compiler/GHC/CmmToAsm/AArch64/Instr.hs:270:10 in ghc:GHC.CmmToAsm.AArch64.Instr
  CallStack (from HasCallStack):
    panic, called at compiler/GHC/Utils/Error.hs:454:29 in ghc:GHC.Utils.Error

Environment

  • GHC version used: 9.2.5, 9.4.4, 9.6.0-alpha1

Optional:

  • Operating System: macOS Ventura 13.0.1
  • System Architecture: aarch64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information