[nhc-bugs] Error when building nhc with cygwin and win2000

Magnus Lindberg f98mali@dd.chalmers.se
Thu, 13 Feb 2003 08:02:35 +0100


Hello! I've tried to install nhc98 on win2000 using Cygwin. However, I
get an error message (see the last rows in the first text extract
below). I have tested to compile with both GHC and GCC but I always
get the same error message. (I run configure with: `$ configure' and
`$ configure --buildwith=gcc')
  Can anyone tell me what I am doing wrong / what the error is? I
think that the heap profiling tools seem useful that's why I would
like tor try nhc.

Keen regards
  Magnus Lindberg


`make'  results in:
....
make[1]: Entering directory
`/cygdrive/f/Unex_progs/Haskell/nhc98src-1.14a/nhc98
-1.14a/src/prelude/ix86-CYGWIN_NT-5.0'
rm -f *.hi
rm -f    DErrNo.hc
rm -f
/cygdrive/f/Unex_progs/Haskell/nhc98src-1.14a/nhc98-1.14a/targets/ix86
-CYG
WIN_NT-5.0/obj/prelude/DErrNo/*.o *.o
rm -f
rm -f
/cygdrive/f/Unex_progs/Haskell/nhc98src-1.14a/nhc98-1.14a/script/nhc98
-cpp -c +
CTS -lib  -redefine -CTS   +RTS -H32M -RTS -o
/cygdrive/f/Unex_progs/Haskell/nhc
98src-1.14a/nhc98-1.14a/targets/ix86-CYGWIN_NT-5.0/obj/prelude/DErrNo/
DErrNo.o D
ErrNo.hs
Signal 11
Signal 11
Signal 11
make[1]: ***
[/cygdrive/f/Unex_progs/Haskell/nhc98src-1.14a/nhc98-1.14a/targets/
ix86-CYGWIN_NT-5.0/obj/prelude/DErrNo/DErrNo.o] Error 1
make[1]: Leaving directory
`/cygdrive/f/Unex_progs/Haskell/nhc98src-1.14a/nhc98-
1.14a/src/prelude/ix86-CYGWIN_NT-5.0'
make: *** [targets/ix86-CYGWIN_NT-5.0/compiler-gcc] Error 2

Magnus_Linbrg@LEOMAHEO
/cygdrive/f/Unex_progs/Haskell/nhc98src-1.14a/nhc98-1.1
4a
$ /






When I then run `make install' some files are not found (well, not too
strange since `make' didn't work?) :


Executables and object lib files go into:
    /usr/local/lib/nhc98/ix86-CYGWIN_NT-5.0 (created)
    /usr/local/lib/hmake/ix86-CYGWIN_NT-5.0 (created)
        ./
        ...
        ./Prelude.a
        ./Runtime.a
mv: cannot stat `MkProg.exe': No such file or directory
mv: cannot stat `Older.exe': No such file or directory
mv: cannot stat `hmakerc': No such file or directory
mv: cannot stat `HInteractive.exe': No such file or directory
mv: cannot stat `MkConfig.exe': No such file or directory
        Adjusting... hmakerc
exec:
/cygdrive/f/Unex_progs/Haskell/nhc98src-1.14a/nhc98-1.14a/lib/ix86-CYG
WIN_
NT-5.0/MkConfig: not found
exec:
/cygdrive/f/Unex_progs/Haskell/nhc98src-1.14a/nhc98-1.14a/lib/ix86-CYG
WIN_
NT-5.0/MkConfig: not found
(This error message is harmless)
exec:
/cygdrive/f/Unex_progs/Haskell/nhc98src-1.14a/nhc98-1.14a/lib/ix86-CYG
WIN_
NT-5.0/MkConfig: not found
exec:
/cygdrive/f/Unex_progs/Haskell/nhc98src-1.14a/nhc98-1.14a/lib/ix86-CYG
WIN_
NT-5.0/MkConfig: not found
        hood.jar





And when I later run nhc98:

$ nhc98 Example.hs
Signal 11
Signal 11
Signal 11




Or hmake:

$ hmake Example.hs
/usr/local/lib/hmake/ix86-CYGWIN_NT-5.0/MkProg: not found
rm: cannot remove
`/cygdrive/c/DOCUME~1/MAGNUS~1/LOKALA~1/Temp/hmake1376': No su
ch file or directory
Stop - hmake dependency error.