[nhc-bugs] Trouble getting nhc98 to work

Karl Crary crary at cs.cmu.edu
Mon Jul 17 18:26:57 EDT 2006


Dear NHC98 maintainers,

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.  Unfortunately, I never got far enough to try that; it's 
failing right out of the box.

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
/usr/local/bin/nhc98: line 131: 
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/hmake-PRAGMA: No such 
file or directory
/usr/local/bin/nhc98: line 131: 
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/hmake-PRAGMA: No such 
file or directory
/usr/local/bin/nhc98: line 547: 
C:/cygwin/usr/local/lib/nhc98/ix86-CYGWIN_NT-5.1/nhc98comp: No such file 
or directory

I then tried to build from source, but with no better luck.  Configure 
seems to go smoothly, but the build breaks down quickly:

bash-3.1$ make
ghc  -cpp -o lib/ix86-CYGWIN_NT-5.1/hmake-PRAGMA script/hmake-PRAGMA.hs
cd src/runtime;        make all nhc98heap.exe
make[1]: Entering directory `/c/nhc98-1.18/src/runtime'
Makefile:27: *** target pattern contains no `%'.  Stop.
make[1]: Leaving directory `/c/nhc98-1.18/src/runtime'
make: *** [targets/ix86-CYGWIN_NT-5.1/runtime] Error 2
bash-3.1$ gmake
bash: gmake: command not found
bash-3.1$ which make
/usr/bin/make
bash-3.1$ make
cd src/runtime;        make all nhc98heap.exe
make[1]: Entering directory `/c/nhc98-1.18/src/runtime'
Makefile:27: *** target pattern contains no `%'.  Stop.
make[1]: Leaving directory `/c/nhc98-1.18/src/runtime'
make: *** [targets/ix86-CYGWIN_NT-5.1/runtime] Error 2

Any idea what I might be doing wrong?

    -- Karl Crary



More information about the Nhc-bugs mailing list