logo       

Profiling + External Core = trouble: msg#00054

lang.haskell.glasgow.bugs

Subject: Profiling + External Core = trouble

I'm using the latest version of GHC and gcc 2.96 on a Linux machine, and
I get the following weird behavior when trying to compile programs for
profiling and generate external Core:

$ ghc -fglasgow-exts -fno-code -fext-core -prof -auto-all hello.hs
$ ghc -o hello -prof -auto-all hello.hcr
/tmp/ghc24088.hc:6: `NULL' undeclared here (not in a function)
/tmp/ghc24088.hc:6: initializer element is not constant
/tmp/ghc24088.hc:6: (near initialization for `Main_CAFs_cc_ccs[0].prevStack')
/tmp/ghc24088.hc:6: `NULL' undeclared here (not in a function)
/tmp/ghc24088.hc:6: initializer element is not constant
/tmp/ghc24088.hc:6: (near initialization for `Main_CAFs_cc_ccs[0].indexTable')
/tmp/ghc24088.hc:15: `NULL' undeclared here (not in a function)
/tmp/ghc24088.hc:15: initializer element is not constant
/tmp/ghc24088.hc:15: (near initialization for
`Main_main_closure.header.prof.hp\.rs')
/tmp/ghc24088.hc:63: `NULL' undeclared here (not in a function)
/tmp/ghc24088.hc:63: initializer element is not constant
/tmp/ghc24088.hc:63: (near initialization for
`Main_zdmain_closure.header.prof.\hp.rs')

This happens no matter what program I try to compile, and it doesn't happen
if I don't use -prof -auto-all.

--
Kirsten Chevalier * krc@xxxxxxxxxxxxxxxxxxx * Often in error, never in doubt


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise