problem using ffi with profiling

Hal Daume III hdaume@ISI.EDU
Sun, 26 Jan 2003 10:35:10 -0800 (PST)


Hi all,

I'm having difficulty compiling something with profiling which uses
ffi.  It compiles fine without profiling, but not with:

% rm CMU_LM.hi CMU_LM.o
% ghc -c CMU_LM.hs -fglasgow-exts -ffi -package data -cpp

this works fine.

% rm CMU_LM.hi CMU_LM.o
% ghc -c CMU_LM.hs -fglasgow-exts -ffi -package data -cpp -prof -auto-all
In file included from /tmp/ghc5638.hc:6:
lm_bridge.h:4:32: pc_libs/pc_general.h: No such file or directory
lm_bridge.h:5:29: rr_libs/general.h: No such file or directory
lm_bridge.h:6:19: ngram.h: No such file or directory
lm_bridge.h:7:21: toolkit.h: No such file or directory
In file included from /tmp/ghc5638.hc:6:
lm_bridge.h:10: parse error before "word"
lm_bridge.h:11: parse error before "word"
lm_bridge.h:12: parse error before "word"



Any idea why there would be a difference?



--
Hal Daume III

 "Computer science is no more about computers    | hdaume@isi.edu
  than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume