Re: Trouble getting nhc98 to work
Malcolm Wallace <[email protected]> Fri, 21 Jul 2006 15:01:09 +0100
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Organization | Dept of Computer Science, University of York |
| Message-ID | <[email protected]> |
Karl Crary <[email protected]> wrote: > I was experimenting with nhc98 because I was led to believe that using > it, I might be able to use the Haskell FFI to link with libraries > built using Cygwin. Should be possible, yes. > First I tried the binary distribution. The configure and install > process seemed to go smoothly, but in my first attempt to use the > compiler I get: > > /usr/local/bin/nhc98: line 131: > C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/hmake-PRAGMA: > No such file or directory The executable hmake-PRAGMA.exe is certainly included in the tar bundle. As far as I can see, it should therefore have been installed in the quoted directory, given the standard installation prefix. Is it there? If so, then maybe the driver script for nhc98 just needs to know about the .exe suffix (but that would seem unlikely in Cygwin). > I then tried to build from source, but with no better luck. Configure > seems to go smoothly, but the build breaks down quickly: > > make[1]: Entering directory `/c/nhc98-1.18/src/runtime' > Makefile:27: *** target pattern contains no `%'. Stop. Did you use a Windows-style pathname at configure-time? (e.g. --prefix="C:\blah") Replacing that with a Cygwin unix-style pathname might fix it (e.g. --prefix="/c/blah"). Regards, Malcolm