Re: Validate failures in DPH

Ben Lippmeier <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
On 19/10/2012, at 2:17 AM, Simon Peyton-Jones wrote:

> I’m getting these failures in DPH when validating on Windows (32-bit)
>  
>    dph/nbody                     dph-nbody-copy-fast [exit code non-0] (normal)
>    dph/nbody                     dph-nbody-vseg-fast [exit code non-0] (normal)
>  
> It’s a type error as below.  Can anyone (Manuel, Ben?) say what’s wrong and how to fix it?   I assume it’s some kind of library mismatch.
>  
> Simon
>  
> cd ./dph/nbody && 'C:/code/HEAD/inplace/bin/ghc-stage2.exe' -fforce-recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history -outputdir vseg-fast --make -o dph-nbody-vseg-fast Main  -O0 -package dph-lifted-vseg -package dph-prim-par  >dph-nbody-vseg-fast.comp.stderr 2>&1
> Compile failed (status 256) errors were:
> [ 1 of 10] Compiling Randomish        ( Randomish.hs, vseg-fast\Randomish.o )
>  
> Randomish.hs:59:67:
>     Couldn't match expected type `Word64' with actual type `Integer'
>     In the second argument of `mod', namely `range'
>     In the first argument of `(+)', namely `(x `mod` range)'
>     In the second argument of `($)', namely `(x `mod` range) + valMin'


There haven't been any commits to the dph repo since August.

I went to find out what got broken and I'm getting a validate failure somewhere else:

compiler/stage1/build/Parser.hs:38:27:
    Module `StaticFlags' does not export `opt_Hpc'
make[1]: *** [compiler/stage1/build/Parser.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2


One of the productions is still trying to use that flag, too:

Parser.y:1411
        | hpc_annot exp                         { sL (comb2 $1 $>) $ if opt_Hpc
                                                        then HsTickPragma (unLoc $1) $2
                                                        else HsPar $2 }

Ben.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.