
Hi there, I am trying to build hat using ghc6.4.1 with windows/cygwin. I also tried nhc, but with the same error. ./configure works fine, but "make" exits with the following error: Warning: package(s) base not available (according to ghc-pkg) Can't find module lang in user directories . . ../compiler98 Or in installed libraries/packages at Asked for by: commandline Fix using the -I, -P, or -package flags. Stop - hmake dependency error. make[1]: *** [c:/dev/hat-2.04/lib/ix86-CYGWIN_NT-5.1/hat-trans.exe] Error 255 make[1]: Leaving directory `/cygdrive/c/dev/hat-2.04/src/hattrans' make: *** [targets/ix86-CYGWIN_NT-5.1/hat-trans-ghc] Error 2 Any ideas? Thanks, Klaus P.S.: It would be great if you could add binaries to your download section

P.S.: It would be great if you could add binaries to your download section Since hmake doesn't work under Windows, and hat-trans is much harder to use without it, its hard for a Windows user to generate .hat files. Once this capability has been added to Yhc (its half the way there),
Hi Klaus, then Windows users will be able to generate .hat files. Once that has been done, I do intend to release native Windows binaries - I have compiled them (they require a few patches), but can't really test them without a hat file generator. Of course, with Cygwin you might have some success, I'm just waiting for native Windows binaries :) Thanks Neil

Klaus Ostermann
I am trying to build hat using ghc6.4.1 with windows/cygwin. I also tried nhc, but with the same error.
Warning: package(s) base not available (according to ghc-pkg)
Interesting warning.
Can't find module lang in user directories . ../compiler98 Or in installed libraries/packages at
The fact that no attempted location is reported for the standard installed libraries is worrying. It suggests that ghc-pkg is being invoked incorrectly by hmake. Another thing that looks wrong is that of course there is no module 'lang' - it is a library package instead. One suggestion is that the version of GHC is not being detected correctly. If the contents of the file targets/ix86-CYGWIN_NT-5.1/ghcsym are not "604" (without whitespace), then this would cause at least some of the symptoms you see. Correcting that, (and the corresponding variable definition for GHCSYM in lib/ix86-CYGWIN_NT-5.1/config ) might be enough to get you further.
P.S.: It would be great if you could add binaries to your download section
If a Windows user will create them, we will gladly host them for download. Regards, Malcolm

On 21 Jun 2006, at 11:05, Malcolm Wallace wrote:
Klaus Ostermann
wrote: I am trying to build hat using ghc6.4.1 with windows/cygwin. I also tried nhc, but with the same error.
Warning: package(s) base not available (according to ghc-pkg)
Interesting warning.
Can't find module lang in user directories . ../compiler98 Or in installed libraries/packages at
The fact that no attempted location is reported for the standard installed libraries is worrying. It suggests that ghc-pkg is being invoked incorrectly by hmake. Another thing that looks wrong is that of course there is no module 'lang' - it is a library package instead.
I have to admit seeing this error with ghc-6.5 on OS X... Simply removing the "-package lang" in the options worked for me - I assume the lang package is brought in by default now. Bob
participants (4)
-
Klaus Ostermann
-
Malcolm Wallace
-
Neil Mitchell
-
Thomas Davie