GHC 6.6.1 Build failure on plain vanilla linux i686 build

My build dies very soon after issuing "make". Here are the last few
lines. Does anyone know what is happening and how to fix it? (The
floating constant of which the error message speaks is
__GHC_PATCHLEVEL__, which is set to 2.20060331.) I have a working GHC
6.4 installed, BTW.
/sec/bin/ghc -optc-O -optc-I. -optc-Iinclude
-optc-D__GHC_PATCHLEVEL__=2.20060331 -optc-I../libraries/base/cbits
-optc-I../libraries/base/include -H16m -O -I. -Iinclude -Rghc-timing
-ignore-package Cabal -I../libraries -fglasgow-exts -no-recomp -c
cbits/unicode.c -o cbits/unicode.o
cbits/unicode.c:1:63: error: floating constant in preprocessor
expression
<

Hi Robin, On Fri, Jun 22, 2007 at 01:21:00AM -0300, Robin Bate Boerop wrote:
My build dies very soon after issuing "make". Here are the last few lines. Does anyone know what is happening and how to fix it? (The floating constant of which the error message speaks is __GHC_PATCHLEVEL__, which is set to 2.20060331.) I have a working GHC 6.4 installed, BTW.
What does "/sec/bin/ghc --version" say? I suspect it'll be 6.4.2.20060331 rather than 6.4.2. The simplest thing to do is just to remove all the content of compat/cbits/unicode.c (assuming you do have something > 6.4; if you have 6.4 itself (or something older) then you'll need to leave the #include line in the file, but remove the #if and #endif). Thanks Ian

Ian, indeed ghc --version was what you expected. Thank you for the
advice. My build continues....
Was my 6.4.2 installed or configured improperly, so that the --version
string was wrong?
On 28/06/07, Ian Lynagh
Hi Robin,
On Fri, Jun 22, 2007 at 01:21:00AM -0300, Robin Bate Boerop wrote:
My build dies very soon after issuing "make". Here are the last few lines. Does anyone know what is happening and how to fix it? (The floating constant of which the error message speaks is __GHC_PATCHLEVEL__, which is set to 2.20060331.) I have a working GHC 6.4 installed, BTW.
What does "/sec/bin/ghc --version" say? I suspect it'll be 6.4.2.20060331 rather than 6.4.2.
The simplest thing to do is just to remove all the content of compat/cbits/unicode.c (assuming you do have something > 6.4; if you have 6.4 itself (or something older) then you'll need to leave the #include line in the file, but remove the #if and #endif).
-- Robin Bate Boerop http://robin.bateboerop.name

On Thu, Jun 28, 2007 at 03:58:32PM -0300, Robin Bate Boerop wrote:
On 28/06/07, Ian Lynagh
wrote: What does "/sec/bin/ghc --version" say? I suspect it'll be 6.4.2.20060331 rather than 6.4.2.
Ian, indeed ghc --version was what you expected. Thank you for the advice. My build continues....
Was my 6.4.2 installed or configured improperly, so that the --version string was wrong?
It wasn't actually 6.4.2, it was one of the nightly snapshots (from 3 weeks before the 6.4.2 release). The code was probably almost identical to 6.4.2, though. Thanks Ian
participants (2)
-
Ian Lynagh
-
Robin Bate Boerop