[nhc-bugs] Problems building hmake
Bryn Keller
brk@jenkon.com
Thu, 26 Dec 2002 11:25:55 -0800
Hi folks,
I'm trying to build hmake, so I can build HaXml. I'm running a Windows
2000 system with the latest Cygwin (as of this morning) and GHC-5.04.2.
I'm having some trouble with the cygwin path that's passed to GHC during
the build process:
$ make
cd src/hmake; make HC=ghc install config
make[1]: Entering directory `/temp/hmake-3.06/src/hmake'
ghc -package lang -c -o
/cygdrive/c/temp/hmake-3.06/targets/ix86-CYGWIN_NT-5.0/obj/hmake/QSort.o
QSort.hs
d:\ghc\ghc-5.04.2\bin\ghc.exe: error: directory portion of
"/cygdrive/c/temp/hmake-3.06/targets/ix86-CYGWIN_NT-5.0/obj/hmake/QSort.o"
does not exist (used with "-o" option.)
make[1]: ***
[/cygdrive/c/temp/hmake-3.06/targets/ix86-CYGWIN_NT-5.0/obj/hmake/Q
Sort.o] Error 1
make[1]: Leaving directory `/temp/hmake-3.06/src/hmake'
make: *** [targets/ix86-CYGWIN_NT-5.0/hmake-ghc] Error 2
I did find this bit of advice (linked from the NHC page, not the hmake
page, btw):
The build system for nhc98 uses an absolute pathname as the
destination of a compile command. This is one of the areas where Cygwin
and GHC can conflict if you are not careful. The important thing to
remember is that the location in which you unpack the nhc98 distribution
must have the same absolute filepath in both Cygwin and Windows. For
instance, a Cygwin mount that maps C:\tmp to /tmp will work fine,
whereas a mount that maps C:\cygwin\tmp to /tmp will probably not work.
So I did this:
mount c:\\temp /temp
cd /temp
make clean
./configure
and edited the path (BUILDDIR) in config.cache to reflect this new
situation. However, the path that it's passing to GHC is still the old
/cygdrive path. How should I correct this?
Thanks in advance,
Bryn