logo       

-fno-implicit-prelude -prof bug on x86: msg#00042

lang.haskell.glasgow.bugs

Subject: -fno-implicit-prelude -prof bug on x86

GHC 6.0 fails to compile this on x86 Linux with -fno-implicit-prelude
-prof:

module M where {}

$ ghc -fno-implicit-prelude -prof -c M.hs
/tmp/ghc4124.hc:5: `NULL' undeclared here (not in a function)
/tmp/ghc4124.hc:5: initializer element is not constant
/tmp/ghc4124.hc:5: (near initialization for `M_CAFs_cc_ccs[0].prevStack')
/tmp/ghc4124.hc:5: `NULL' undeclared here (not in a function)
/tmp/ghc4124.hc:5: initializer element is not constant
/tmp/ghc4124.hc:5: (near initialization for
`M_CAFs_cc_ccs[0].indexTable')

It successfully compiles if either -prof or -fno-implicit-prelude is
removed. It successfully compiles on MacOS X.

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.0
$ uname -a
Linux rollright 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686 GNU/Linux

--
Ashley Yakeley, Seattle WA


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

News | FAQ | advertise