problem compiling with profiling

Simon Marlow simonmar at microsoft.com
Thu Jan 12 05:18:05 EST 2006


Frederik Eaton wrote:
> When I compile my code with profiling turned on, I get an "unknown
> symbol" error which is not present during a normal compilation.
> 
> Frederik
> 
> $ rm -f *.o
> $ ghc -fignore-asserts -fth --make vec-test-1.hs -o vec-test-1
> Chasing modules from: vec-test-1.hs
> Compiling Fu.Prepose       ( ./Fu/Prepose.hs, ./Fu/Prepose.o )
> Compiling Fu.GenUtil       ( ./Fu/GenUtil.hs, ./Fu/GenUtil.o )
> Compiling Fu.Vector        ( ./Fu/Vector.hs, ./Fu/Vector.o )
> Compiling Main             ( vec-test-1.hs, vec-test-1.o )
> Loading package base-1.0 ... linking ... done.
> Loading package haskell98-1.0 ... linking ... done.
> Loading package mtl-1.0 ... linking ... done.
> Loading package template-haskell-1.0 ... linking ... done.
> Linking ...
> $ rm -f *.o                                                   
> $ ghc -auto-all -prof -fignore-asserts -fth --make vec-test-1.hs -o vec-test-1 && time ./vec-test-1 +RTS -P -xc
> Chasing modules from: vec-test-1.hs
> Compiling Fu.Prepose       ( ./Fu/Prepose.hs, ./Fu/Prepose.o )
> Compiling Fu.GenUtil       ( ./Fu/GenUtil.hs, ./Fu/GenUtil.o )
> Compiling Fu.Vector        ( ./Fu/Vector.hs, ./Fu/Vector.o )
> Compiling Main             ( vec-test-1.hs, vec-test-1.o )
> Loading package base-1.0 ... linking ... done.
> Loading package haskell98-1.0 ... linking ... done.
> Loading package mtl-1.0 ... linking ... done.
> Loading package template-haskell-1.0 ... linking ... done.
> ghc-6.4.1: ./Fu/Vector.o: unknown symbol `era'

Template Haskell doesn't work with profiling, I'm afraid (for the same 
reason that you can't load profiled object code into GHCi).  I thought 
we had an open bug on this, but I couldn't find one, so I just created one:

http://cvs.haskell.org/trac/ghc/ticket/651

Cheers,
	Simon




More information about the Glasgow-haskell-bugs mailing list