[nhc-bugs] Building nhc98 on Windows 2000

Sigbjorn Finne sof@galois.com
Thu, 4 Apr 2002 07:24:26 -0800


"Sigbjorn Finne" <sof@galois.com> writes:
>
...
>
> Is there a description of what's wrong with the released Windows version
> of GHC wrt. compiling up nhc98?
>

I got curious, so I went to have a look at the nhc-bugs archives -- seems
like
what's at the root of it all is that the following ghc invocation:

ghc   -package lang -package posix -c \
 -o /tmp/nhc98-1.12/targets/ix86-CYGWIN_NT-5.0/obj/hmake/QSort.o \
 QSort.hs

Assembler messages:
FATAL: Can't create \
\tmp\nhc98-1.12\targets\ix86-CYGWIN_NT-5.0\obj\hmake\QSort.o

This is a known 'usability bug' with GHC - it doesn't check that the
directory
portion of the '-o' file exists, but just merrily hands it off to the
assembler, which
barfs with the above unfriendly message.

So, for whatever reason, that /tmp/... directory doesn't exist.

--sigbjorn