[nhc-bugs] Error compiling nhc98-1.10 in Linux

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Tue, 23 Oct 2001 17:32:12 +0100


> When compiling nhc98-1.10 on my Red Hat Linux 7.2 box
> with ghc-5.02 (after applying the patch that enables the
> detection of ghc) compilation stops with an error message:
> 
> .... hmake -nhc98 Hatobserve ....
> hmake: Sorry, I do not know about your installation of nhc98

Ah, that is unfortunate.  Some of the hat tools (hat-observe and
hat-detect) must be compiled with nhc98, but the hmake in your build
tree does not yet know about the fresh nhc98, because hmake was
configured _before_ you built nhc98!

A workaround is:

    make install	# install the fresh nhc98
    script/confhc	# detect compilers again, including the fresh nhc98
    ./configure		# propagate the new hmake configuration
    make all		# finish off the build (just the hat tools)
    make install	# and do the final install

For the future, I shall try to think of a clean way to enable hmake
to have automatic knowledge of the fresh nhc98 in the build tree.

Regards,
    Malcolm