From crary at cs.cmu.edu Mon Jul 17 18:26:57 2006 From: crary at cs.cmu.edu (Karl Crary) Date: Fri Jul 21 09:26:16 2006 Subject: [nhc-bugs] Trouble getting nhc98 to work Message-ID: <44BC0EB1.80007@cs.cmu.edu> 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 From Malcolm.Wallace at cs.york.ac.uk Fri Jul 21 10:01:09 2006 From: Malcolm.Wallace at cs.york.ac.uk (Malcolm Wallace) Date: Fri Jul 21 09:53:25 2006 Subject: [nhc-bugs] Trouble getting nhc98 to work In-Reply-To: <44BC0EB1.80007@cs.cmu.edu> References: <44BC0EB1.80007@cs.cmu.edu> Message-ID: <20060721150109.727eee66.Malcolm.Wallace@cs.york.ac.uk> Karl Crary 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 From gamer_uwe at yahoo.com Tue Jul 25 14:56:28 2006 From: gamer_uwe at yahoo.com (GaMeR uWe) Date: Mon Aug 21 10:33:44 2006 Subject: [nhc-bugs] nhc98 bug Message-ID: <20060725190632.76647.qmail@web82008.mail.mud.yahoo.com> I found something in the nhc98's configure script that leads me to believe that there is a bug somewhere, I don't see the point in searching for it on my own as it is nothing big, just slightly annoying. When ./configure is run, the file nhc98-1.18/lib/ix86-linux/config is created, however make cannot be run because of the following message it will output, "*** missing separator.". I then checked what the file generated by ./configure contained and I found the problem. It contained: "... GHCSYM= 604 TRUE=/bin/true" Where ... represents other variables set before GHCSYM (none of those above had a problem). As you can see, there is a gap between GHCSYM= and the value of 604 which seems to belong to GHCSYM. So I changed it to GHCSYM=604 and then everything compiled and installed. nhc98 does execute from the terminal, I havn't tried compiling anything yet but I am sure it will compile things without a problem, I just thought I'd let you know about this problem with that file. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.haskell.org//pipermail/nhc-bugs/attachments/20060725/197d2249/attachment.htm