GHC panic: simplifier ticks exhausted
While compiling a project, I ran into this:
Preprocessing library stache-0.1.0...
[1 of 6] Compiling Text.Mustache.Type ( Text/Mustache/Type.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Text/Mustache/Type.o ) [.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/autogen/cabal_macros.h changed]
[2 of 6] Compiling Text.Mustache.Parser ( Text/Mustache/Parser.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/Text/Mustache/Parser.o )
ghc: panic! (the 'impossible' happened)
(GHC version 8.0.1 for x86_64-unknown-linux):
Simplifier ticks exhausted
When trying RuleFired Class op HEq_sc
To increase the limit, use -fsimpl-tick-factor=N (default 100)
If you need to do this, let GHC HQ know, and what factor you needed
To see detailed counts use -ddump-simpl-stats
Total ticks: 189602
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
The code is available here:
https://github.com/stackbuilders/stache
This only happens with GHC 8.0, with 7.10 it just takes forever (which should be a known issue, with 7.8 it's much faster), but nevertheless finishes.
With -fsimpl-tick-factor=150
the build suceeded.
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | CompileTimeCrash |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |