Skip to content

GHCi produces a cryptic message when using HPC

The following test produces an impolite response from GHCi

$ cat t.hs
g :: Int
g = 1 + 1
$ ghc-stage2 --interactive t.hs -fhpc
GHCi, version 7.9.20141217: http://www.haskell.org/ghc/  :? for help
[1 of 1] Compiling Main             ( t.hs, interpreted )
Ok, modules loaded: Main.
*Main> g
ghc-stage2: panic! (the 'impossible' happened)
  (GHC version 7.9.20141217 for x86_64-unknown-linux):
	Loading temp shared object failed: /tmp/ghc25774_0/ghc25774_5.so: undefined symbol: _hpc_tickboxes_Main_hpc

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Discovered while investigating #9878 (closed).

Edited by Facundo Domínguez
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information