Still problems building ghc 6.5 with ghc 6.4

Simon Marlow simonmarhaskell at gmail.com
Mon Mar 27 05:51:31 EST 2006


Michael Marte wrote:
> Hello *,
> 
> when building ghc 6.5 with ghc 6.4 and alex 2.0.1, the build fails as 
> follows:
> 
> make -C ghc/compiler stage=2
> make[2]: Entering directory `/home/marte/fptools/ghc/compiler'
> ../../ghc/compiler/ghc-inplace -H16m -O  -istage2/utils  
> -istage2/basicTypes  -istage2/types  -istage2/hsSyn  -istage2/prelude  
> -istage2/rename  -istage2/typecheck  -istage2/deSugar  -istage2/coreSyn  
> -istage2/specialise  -istage2/simplCore  -istage2/stranal  
> -istage2/stgSyn  -istage2/simplStg  -istage2/codeGen  -istage2/main  
> -istage2/profiling  -istage2/parser  -istage2/cprAnalysis  
> -istage2/ndpFlatten  -istage2/iface  -istage2/cmm  -istage2/nativeGen  
> -istage2/ghci -Istage2 -DGHCI -package template-haskell -threaded 
> -package readline -DUSE_READLINE -cpp -fglasgow-exts -fno-generics 
> -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -package unix -package 
> Cabal -ignore-package lang -recomp -Rghc-timing  -H16M '-#include 
> "hschooks.h"' -ignore-package ghc   -fgenerics  -funbox-strict-fields  
> -c parser/Lexer.hs -o stage2/parser/Lexer.o  -ohi stage2/parser/Lexer.hi
> 
> parser/Lexer.x:578:10:
>    lexical error in string/character literal at character '\955'
> <<ghc: 51822676 bytes, 5 GCs, 98216/98216 avg/max bytes residency (1 
> samples), 16M in use, 0.00 INIT (0.00 elapsed), 0.62 MUT (0.84 elapsed), 
> 0.11 GC (0.13 elapsed) :ghc>>
> make[2]: *** [stage2/parser/Lexer.o] Error 1
> make[2]: Leaving directory `/home/marte/fptools/ghc/compiler'
> make[1]: *** [stage2] Error 2
> make[1]: Leaving directory `/home/marte/fptools'
> make: *** [bootstrap2] Error 2
> 
> Is this problem caused by alex?

This is with a recently checked-out HEAD?  I thought I fixed this 
problem.  It isn't caused by Alex, the issue is that 6.4 didn't have the 
necessary Unicode functionality in its base package.  The fix was to 
include it in the libcompat library when building GHC, but for some 
reason this appears not to be happening for you.

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list