Skip to content

ghc: panic! (the 'impossible' happened)

I used hprotoc to generate some code for Google protocol buffers.

The QueryValue.proto file is attached.

You can install hprotoc tool using cabal. then use

hprotoc QueryValue.proto

to generate code. Then create a minimal cabal file.

cabal init -m --is-library -n

Then if you build it with optimization enabled, the build will fail

ghc: panic! (the 'impossible' happened)
  (GHC version 7.8.3 for x86_64-apple-darwin):
	Simplifier ticks exhausted
    When trying UnfoldingDone $j_sEMq{v} [lid]
    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: 59242
Edited by Simon Peyton Jones
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information