[Yhc] Something wrong with dependency generation, uses wrong version of ghc

Bernie Pope bjpop at csse.unimelb.edu.au
Sun Feb 18 07:20:07 EST 2007


Hi all,

If I run:

   scons fullclean
   scons ghc=/usr/bin/ghc-6.4.1

It compiles for a while and uses the correct version of ghc,
until it gets to this part:

   Getting dependencies for src/compiler98/Compile.lhs.

Then I get an error:

   An error ocurred running `ghc 
   -M-optdep-f-optdepsrc/compiler98/.Compile.lhs.dep 
   -fwarn-missing-signatures
-i./src/compiler98:./src/libraries/general:.
  
/src/libraries/core:depends/cpphs:depends/filepath:./src/interactive
  
   src/compiler98/Compile.lhs`:

   ./src/compiler98/ByteCode/Write.hs:9:7:
   Could not find module `Control.Monad.State':
   Use -v to see a list of the files searched for.

I think the problem is that it is using "ghc" to generate
the dependencies, when it ought to be using
"/usr/bin/ghc-6.4.1"

Cheers,
Bernie


More information about the Yhc mailing list