trouble compiling 6.8.3 using 6.8.3

Jason Pepas cell at
Fri Apr 3 09:19:14 EDT 2009

Hi Guys,

I'm trying to rebuild ghc 6.8.3 (the previous version was built without 
readline linked in), and I'm running into a compilation issue.

build error:

/lusr/bin/ghc -#include cutils.h -DSTAGE=1 -package-name ghc-6.10.1
-hide-all-packages -no-user-package-conf -package-conf
-i -idist-stage1/build -inativeGen -ibasicTypes -icmm -icodeGen -icoreSyn
-icprAnalysis -ideSugar -ighci -ihsSyn -iiface -imain -iparser -iprelude
-iprofiling -irename -isimplCore -isimplStg -ispecialise -istgSyn -istranal
-itypecheck -itypes -iutils -ivectorise -idist-stage1/build/autogen
-Idist-stage1/build/autogen -Idist-stage1/build -Istage1
-I../libraries/base/cbits -I../libraries/base/include -I. -Iparser -Iutils
-optP-include -optPdist-stage1/build/autogen/cabal_macros.h -odir
dist-stage1/build -hidir dist-stage1/build -stubdir dist-stage1/build 
Cabal- -package array- -package base- -package
bytestring- -package containers- -package directory-
-package extensible-exceptions- -package filepath- -package
haskell98- -package hpc- -package old-time- -package
process- -package unix- -O -Wall -fno-warn-name-shadowing
-fno-warn-orphans -XPatternSignatures -XCPP -XMagicHash -XUnboxedTuples
-XPatternGuards -XForeignFunctionInterface -XEmptyDataDecls
-XTypeSynonymInstances -XMultiParamTypeClasses -XFlexibleInstances 
-XScopedTypeVariables -XDeriveDataTypeable -idist-stage1/build  -H32m -O
-Rghc-timing   -c types/Unify.lhs -o dist-stage1/build/Unify.o  -ohi

parser/Lexer.x:1652:17: Not in scope: data constructor `SLIT'

parser/Lexer.x:1653:23: Not in scope: data constructor `SLIT'
<<ghc: 351226848 bytes, 20 GCs, 3982677/8409088 avg/max bytes residency (3
samples), 36M in use, 0.00 INIT (0.00 elapsed), 0.32 MUT (0.37 elapsed), 
0.12 GC
(0.13 elapsed) :ghc>>
make[2]: *** [dist-stage1/build/Lexer.o] Error 1
make[2]: *** Waiting for unfinished jobs....
<<ghc: 236588812 bytes, 17 GCs, 4490581/8404992 avg/max bytes residency (3
samples), 36M in use, 0.00 INIT (0.00 elapsed), 0.49 MUT (0.57 elapsed), 
0.15 GC
(0.15 elapsed) :ghc>>
make[1]: *** [build.stage.1] Error 2
make: *** [stage1] Error 1

I've hit up google and the only results which stood out were other "data 
constructor not in scope" messages which were due to people trying to 
run old haskell code using newer versions of the compiler, but I doubt 
that's the case here as I am using the same version of the compiler as 
both host and target.

Any ideas?


More information about the Glasgow-haskell-users mailing list