Re: FastString.lhs:629: parse error on input `#'
Marc van Dongen wrote: Hi again, When trying to build ghc from cvs (cvs update, make clean, etc) I got: ==fptools== make all - --no-print-directory -r; in /newdisk/dongen/cvs/fptools/ghc/compiler /usr/local/bin/ghc -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:profiling:parser:usageSP:cprAnalysis:nativeGen -recomp -c utils/FastString.lhs -o utils/FastString.o -osuf o FastString.lhs:629: parse error on input `#' Compilation had errors make[2]: *** [utils/FastString.o] Error 1 make[1]: *** [all] Error 1 make: *** [all] Error 1 Odd, because I get (from the anon-cvs repository) /usr/local/pub-bkb/ghc/ghc-latest/bin/ghc -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:profiling:parser:usageSP:cprAnalysis:nativeGen -recomp -H40m -Onot -c utils/FastString.lhs -o utils/FastString.o -osuf o FastString.lhs:632: Couldn't match `ByteArray Int' against `MutableByteArray RealWorld Int' Expected type: ByteArray Int Inferred type: MutableByteArray RealWorld Int In the second argument of `hPutBufBA', namely `mba' In a do statement: hPutBufBA handle mba (I# l#) Compilation had errors "cvs status" tells me that my copy of FastString.lhs is up-to-date.
Re: FastString.lhs:629: parse error on input `#'
George Russell ([EMAIL PROTECTED]) wrote: : Marc van Dongen wrote: [error at line 629] : Odd, because I get (from the anon-cvs repository) : : /usr/local/pub-bkb/ghc/ghc-latest/bin/ghc -cpp -fglasgow-exts -Rghc-timing -I. :-IcodeGen -InativeGen -Iparser :-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:profiling:parser:usageSP:cprAnalysis:nativeGen : -recomp -H40m -Onot -c utils/FastString.lhs -o utils/FastString.o -osuf o : : FastString.lhs:632: : Couldn't match : `ByteArray Int' against `MutableByteArray RealWorld Int' : Expected type: ByteArray Int : Inferred type: MutableByteArray RealWorld Int : In the second argument of `hPutBufBA', namely `mba' : In a do statement: hPutBufBA handle mba (I# l#) : : Compilation had errors : : : "cvs status" tells me that my copy of FastString.lhs is up-to-date. Maybe you build with a different ghc-version? #if __GLASGOW_HASKELL__ 405 | otherwise = hPutBufBA handle (ByteArray bot ba#) (I# l#) #elsif __GLASGOW_HASKELL__ 407 | otherwise = hPutBufBA handle (ByteArray bot bot ba#) (I# l#) #else | otherwise = do mba - stToIO $ unsafeThawByteArray (ByteArray (bot::Int) bo hPutBufBA handle mba (I# l#) Just a guess. Regards, Marc van Dongen
Re: FastString.lhs:629: parse error on input `#'
Marc van Dongen wrote: Maybe you build with a different ghc-version? Seems plausible. I usually build with the last version successfully compiled from CVS, which in this case was downloaded at 4am on 10th March.