head aches in parser/Parser.hs

Claus Reinke claus.reinke at talk21.com
Mon Aug 4 15:25:00 EDT 2008


Another 'make distclean' removes Parser.hs, but leaves lots of other
.hs files that have .x or .y files:

    $ ls compiler/parser/
    Ctype.lhs           HaddockLex.x     HaddockUtils.hs  Lexer.x        ParserCore.y 
cutils.c
    HaddockLex.hs       HaddockParse.hs  LexCore.hs       Parser.y.pp    ParserCoreUtils.hs 
cutils.h
    HaddockLex.hs-boot  HaddockParse.y   Lexer.hs         ParserCore.hs  RdrHsSyn.lhs 
hschooks.c

This includes Lexer.hs, which -unlike Lexer.x- doesn't know about
ITwarning_prag. It seems that the rumours about the build system
having settled down might have been premature?

Another question: why do buildbot builders start from fresh repos?
Shouldn't they test the more common update repo situation?

Claus

> make distclean; ./darcs-all pull -a; sh boot; ./configure ..; make
>
> first complained about
>
>    parser/Parser.hs:14:36:
>
>        Module `HscTypes' does not export `DeprecTxt'
>
> Since Parser.hs and Parser.y looked different, I removed the former
> and tried again. But now, I get
>
> dist-stage1/build/Parser.hs:7171:5:
>
>    Not in scope: data constructor `ITwarning_prag'
>
> and that constructor really does occur in Parser.y.pp. I've got
> no idea why the location of the file in the message has changed,
> which suggests that something else is wrong.
>
> Since I always do distclean before pull, this kind of confusion
> surprises me, but it does look like leftovers somewhere, especially
> since buildbot just went past that stage1.
> Do I really have to download the whole ghc-repo tarball again and start from scratch (since there 
> have been capitalization issues in the repos since I last did that, I doubt that I can use darcs 
> to copy the old repo?)?
>
> Claus
>
> -- ghc head should come with aspirin
>
> _______________________________________________
> Cvs-ghc mailing list
> Cvs-ghc at haskell.org
> http://www.haskell.org/mailman/listinfo/cvs-ghc 



More information about the Cvs-ghc mailing list