-fno-implicit-prelude -prof bug on x86
Ashley Yakeley
ashley at semantic.org
Wed Jul 16 04:04:01 EDT 2003
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
More information about the Glasgow-haskell-bugs
mailing list