convert_libraries chokes on Posix.hsc

Ross Paterson ross@soi.city.ac.uk
Sat, 12 Oct 2002 20:54:39 +0100


On Sat, Oct 12, 2002 at 11:00:13AM -0700, Levent Erkok wrote:
> Typing "make" on a freshly checked out hugs yields:
> 
> ............
> Converting base/Text/Regex/Posix.hsc
> /usr/local/ghc-5.04/bin/i386-unknown-linux/hsc2hs: /hsc2hs-bin: No such file or directory
> sed: can't read ../../libraries/Text/Regex/Posix.hs: No such file or directory
> Converting base/Text/Show.hs
> ............
> 
> everything else goes fine..
> 
> (apologies if this is a local problem on my machine. The ghc installation 
> being used is right out of the linux binary bundle. If I'm having this problem, 
> others might be getting into trouble as well.)

Looks like /usr/local/ghc-5.04/bin/i386-unknown-linux/hsc2hs doesn't set
the HSC2HS_BINDIR variable (i.e. a problem in the ghc bundle).

This also raises the issue that Posix.hsc makes the Hugs build depend
on a GHC installation.  The script already avoids depending on happy
to convert *.ly by using the corresponding .hs file if available, and
the rpm source bundle contains a converted Language/Haskell/Parser.hs.
I'll do the same for *.hsc and Text/Regex/Posix.hsc.