Skip to content

Applying -dannot-lint to GHC itself causes a panic

I tried building with:

hadrian.settings

stage1.ghc.ghc.hs.opts += -dcore-lint -dannot-lint

with build command

./hadrian/build --flavour=perf+ipe -j4 --freeze1 --build-root=_build-perf

Leads to error:

ghc: panic! (the 'impossible' happened)
  GHC version 9.3.20220119:
	idInfo
  m_a1bv
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/GHC/Utils/Panic.hs:181:37 in ghc:GHC.Utils.Panic
        pprPanic, called at compiler/GHC/Types/Var.hs:786:34 in ghc:GHC.Types.Var

Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information