[GHC] #14573: runtimeRepPrimRep panic when building GHC 8.2.2 with -fprof-auto-exported
GHC
ghc-devs at haskell.org
Tue Dec 12 10:41:43 UTC 2017
#14573: runtimeRepPrimRep panic when building GHC 8.2.2 with -fprof-auto-exported
-------------------------------------+-------------------------------------
Reporter: luite | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.2
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
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
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14573>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list