runtimeRepPrimRep panic when building GHC 8.2.2 with -fprof-auto-exported
When building GHC 8.2.2 with the following options in build.mk
, the stage1 compiler panics when building StgCmmMonad.p_o
SRC_HC_OPTS = -O -H64m
GhcStage1HcOpts = -O
GhcStage2HcOpts = -O2 -fprof-auto-exported
GhcLibHcOpts = -O2 -fprof-auto-exported
BUILD_PROF_LIBS = YES
ghc-stage1: panic! (the 'impossible' happened)
(GHC version 8.2.2 for x86_64-unknown-linux):
runtimeRepPrimRep
typePrimRep (a_12 :: TYPE k0_10)
k0_10
Call stack:
CallStack (from HasCallStack):
prettyCurrentCallStack, called at compiler/utils/Outputable.hs:1133:58 in ghc:Outputable
callStackDoc, called at compiler/utils/Outputable.hs:1137:37 in ghc:Outputable
pprPanic, called at compiler/simplStg/RepType.hs:360:5 in ghc:RepType
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
(tested on x86_64 linux with GHC 8.0.2 as bootstrap compiler)
The GHC 8.4 branch doesn't appear to do this, but I'm not sure if the underlying problem has been fixed.
Compiling only the StgCmmMonad
module with -fprof-auto-exported
does not trigger the panic
Trac metadata
Trac field | Value |
---|---|
Version | 8.2.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |