Ben Lippmeier wrote:
Hi All,
When I build with "make -j8" on my dept T2 (mavericks) I'm getting what looks like build races. Has anyone seen this problem before?

Not being a make or unix file system expert, my only guess is that the interface file is being written to the FS in chunks, and that make is trying to compile modules that depend on it before the file is all there. However, that seems so obvious that someone would have noticed and fixed it by now.

The machine reports:
b...@mavericks:~> uname -a
SunOS mavericks 5.10 Generic_127127-11 sun4v sparc SUNW,SPARC-Enterprise-T5120

I get the problem after:
$ make distclean
$ sh boot
$ ./configure

$ make -j8
... runs for a while then gives:
/data0/home/benl/software/ghc-6.8.3/bin/ghc -#include cutils.h -DSTAGE=1 ... -XRelaxedPolyRec -idist-stage1/build -H64m -O0 -fvia-c -Rghc-timing -O0 -c simplCore/CSE.lhs -o dist-stage1/build/CSE.o -ohi dist-stage1/build/CSE.hi

coreSyn/CoreLint.lhs:40:0:
   Bad interface file: dist-stage1/build/ListSetOps.hi
       magic number mismatch: old/corrupt interface file?

This is a bug in GHC prior to 6.10.1, it was fixed in the patch for this:

http://hackage.haskell.org/trac/ghc/ticket/1736

Cheers,
        Simon

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to