GHC6.5 + TH + Profiling

Simon Marlow simonmarhaskell at
Mon Apr 24 05:13:41 EDT 2006

Einar Karttunen wrote:

> I am having problems combining TH and profiling with ghc-6.5.20060420. GHC seems to die
> when loading the object file for TH execution and failing to notice that it should
> load profiling symbols. The exact error is:
> Loading package base-1.0 ... linking ... done.
> Loading package template-haskell-1.0 ... linking ... done.
> Loading package mtl-1.0 ... linking ... done.
> Loading package stm-1.0 ... linking ... done.
> ghc-6.5.20060420: .haskell_cache/ unknown symbol `entering_PAP'
> I can create a simpler example of this if needed.

TH and profiling don't mix at the moment, and never have.  There's an 
open bug:

The technical reason is that the interpreter used to execute the TH code 
isn't compatible with the profiled object code in the other compiled 
modules.  It's exactly the same reason you can't load profiled object 
code into GHCi.


More information about the Glasgow-haskell-users mailing list