Fw: Re: [nhc-bugs] a problem with 1.12

[Forwarded message - original mistakenly sent only to Feliks]
It turned out that I had everything, except for , includePaths = [""]
Anyway, I fixed this manually, and the build seemed to proceed smoothly. Installation complained a little:
Adjusting... hmakerc shUsage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. : NHC98INCDIR: not found shUsage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. : NHC98INCDIR: not found hat-trail.jar hood.jar
Nasty.
Unfortunately, the problem reappeared during an attempt to use the compiler:
I would guess that the installation of the hmakerc file changed the includePaths definition back to [""] for the installed location of the compiler. For now, the easiest solution might be to find the installed copy of the hmakerc file /usr/local/lib/hmake/sparc-solaris2/hmakerc (or with your own prefix instead of /usr/local) and add the correct location of the installed include files, e.g. includePaths = ["/usr/local/include/nhc98"] There are probably at least two entries for nhc98; don't forget to change both of them. Regards, Malcolm

I have now found the cause of this installation bug:
It turned out that I had everything, except for , includePaths = [""]
Anyway, I fixed this manually, and the build seemed to proceed smoothly. Installation complained a little:
Adjusting... hmakerc shUsage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. : NHC98INCDIR: not found shUsage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. : NHC98INCDIR: not found hat-trail.jar hood.jar
It is due to a feature of certain unix-derived operating systems, where in a system() call, the caret character (^) is interpreted as a pipe operator (|). (This is a legacy from the original Unix shell I think.) If you need to fix this bug in hmake-config, a patch is now available at ftp://ftp.cs.york.ac.uk/pub/haskell/nhc98/patch-1.12-hmake-config Regards, Malcolm
participants (1)
-
Malcolm Wallace