[nhc-users] Building nhc98 under Cygwin

Ullal Devappa Kini wmbfqj at vsnl.net
Fri Nov 28 19:47:09 EST 2003


Hi!

I shall be happy to receive suggestions about building nhc98.
I seem to have run into a few errors. I enclose the report below.

Thanks in advance.

Best Regards.

U.D.Kini
(Bangalore, India)

I try building nhc98 using nhc98-1.16.tar.gz on i686-pc-cygwin:

Cygwin ( 1.3.22 )
gcc (3.2-3)
Windows 98 2nd Edition
Pentium 3 Processor

   cd /usr/src

   tar -xzf nhc98-1.16.tar.gz

   mv nhc98-1.16 nhc98 

   cd nhc98

   ./configure --prefix=/usr/local/nhc

   make

Error1
-------->
cd src/prelude/ix86-CYGWIN_98-4.10/NHC; make clean all # Patch machine-specific parts.
make[1]: Entering directory `/usr/src/nhc98/src/prelude/ix86-CYGWIN_98-4.10/NHC'
rm -f *.hi
rm -f    DErrNo.hc  
rm -f E:/cygwin/usr/src/nhc98/targets/ix86-CYGWIN_98-4.10/obj/prelude/DErrNo/*.o *.o
rm -f 
rm -f 
E:/cygwin/usr/src/nhc98/script/nhc98 -cpp -c +CTS -lib  -redefine -CTS   +RTS -H32M -RTS -o E:/cygwin/usr/src/nhc98/targets/ix86-CYGWIN_98-4.10/obj/prelude/DErrNo/DErrNo.o DErrNo.hs
Signal 11
make[1]: *** [E:/cygwin/usr/src/nhc98/targets/ix86-CYGWIN_98-4.10/obj/prelude/DErrNo/DErrNo.o] Error 1
make[1]: Leaving directory `/usr/src/nhc98/src/prelude/ix86-CYGWIN_98-4.10/NHC'
make: *** [targets/ix86-CYGWIN_98-4.10/compiler-gcc] Error 2
-------->

Try to see whether error is serious?

   make -i

Error1 is repeated
-------->

Error2.
-------->
cd src/prelude/ix86-CYGWIN_98-4.10/NHC; make CFG=p clean all
make[1]: Entering directory `/usr/src/nhc98/src/prelude/ix86-CYGWIN_98-4.10/NHC'
rm -f *.hi
rm -f    DErrNo.p.c  
rm -f E:/cygwin/usr/src/nhc98/targets/ix86-CYGWIN_98-4.10/objp/prelude/DErrNo/*.p.o *.p.o
rm -f 
rm -f 
E:/cygwin/usr/src/nhc98/script/nhc98 -cpp -p -c +CTS -lib  -redefine -CTS   +RTS -H32M -RTS -o E:/cygwin/usr/src/nhc98/targets/ix86-CYGWIN_98-4.10/objp/prelude/DErrNo/DErrNo.p.o DErrNo.hs
Signal 11
make[1]: [E:/cygwin/usr/src/nhc98/targets/ix86-CYGWIN_98-4.10/objp/prelude/DErrNo/DErrNo.p.o] Error 1 (ignored)
-------->

Error3.
-------->
cd src/prelude/ix86-CYGWIN_98-4.10/NHC; make CFG=z clean all
make[1]: Entering directory `/usr/src/nhc98/src/prelude/ix86-CYGWIN_98-4.10/NHC'
rm -f *.hi
rm -f    DErrNo.z.c  
rm -f E:/cygwin/usr/src/nhc98/targets/ix86-CYGWIN_98-4.10/objz/prelude/DErrNo/*.z.o *.z.o
rm -f 
rm -f 
E:/cygwin/usr/src/nhc98/script/nhc98 -cpp -z -c +CTS -lib  -redefine -CTS   +RTS -H32M -RTS -o E:/cygwin/usr/src/nhc98/targets/ix86-CYGWIN_98-4.10/objz/prelude/DErrNo/DErrNo.z.o DErrNo.hs
Signal 11
make[1]: [E:/cygwin/usr/src/nhc98/targets/ix86-CYGWIN_98-4.10/objz/prelude/DErrNo/DErrNo.z.o] Error 1 (ignored)
-------->

A number of executables and libraries get built. So, try

   make -i install

Lots of files get installed under /usr/local/nhc.The following errors are seen:

-------->
 Adjusting... hmakerc
I/O error:
  action :  openFile ReadMode
  on file:  /cygdrive/c/WINDOWS/TEMP\hmakeconfig.tmp
  gave   :  ENOENT (No such file or directory)
I/O error (user-defined), call to function `userError':
  nhc98 not found
(This error message is harmless)
hmake-config: compiler not known:
  'E:/cygwin/usr/local/nhc/bin/nhc98'
hmake-config: compiler not known:
-------->

   export PATH=/usr/local/nhc/bin:$PATH

   nhc98 --version

Gives output of version information.
--------------------End of Report---------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://haskell.org/pipermail/nhc-users/attachments/20031128/25d59c35/attachment.htm


More information about the Nhc-users mailing list