[nhc-bugs] nhc-1.16: no stdint.h

Albert REINER areiner@tph.tuwien.ac.at
Sat, 15 Mar 2003 14:37:42 +0100


Hi,

I just tried to install nhc-1.16 on a rather old system (Linux, kernel
2.0.35, libc1).

Configure output:

,----
...
| Looking for already-installed Haskell compilers:
|   Looking for hbc...   found 0.9999.4,
|   Looking for ghc...   found 4.08.2
|   Looking for nhc98... (not found)
...
| You are going to build nhc98 with:          ghc
| nhc98comp uses RTS delimiters?              yes
| This machine's endian-ness is:              -DLOW_BYTE_FIRST (cached) 
| Executables need .exe suffix?               no  (detected)
| Testing for the curses library:             -lncurses (cached) 
| Testing for the readline library:           -lreadline -lncurses (detected)
| Reading /usr/include/errno.h:               no change
| Default heap for compiled programs is: 100000 words (cached) 
...
`----

According to `make help`,

,----
| Default target is:     basic + heapprofile + timeprofile
`----

`make`, after setting up some directories, fails with the following:

,----
| cd Kernel; make all
| make[2]: Entering directory `/home/albert/nhc98-1.16/src/runtime/Kernel'
...
| gcc -c   -DLOW_BYTE_FIRST -O3 -I/home/albert/nhc98-1.16/include -DVERSION="\"1.16\""   -o /home/albert/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/mutator.o mutator.c
| In file included from mutator.c:13:
| mark.h:10: stdint.h: No such file or directory
| make[2]: *** [/home/albert/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/mutator.o] Error 1
| make[2]: Leaving directory `/home/albert/nhc98-1.16/src/runtime/Kernel'
| make[1]: *** [ofiles] Error 2
| make[1]: Leaving directory `/home/albert/nhc98-1.16/src/runtime'
| make: *** [targets/ix86-Linux/runtime] Error 2
`----

I suppose this has something to do with the ancient C library (though
I do not recall seeing libc2 listed as a prerequisite in the
installation instructions); is there any simple way to build or
install nhc on this system?

Regards,

Albert.