[nhc-users] failure to compile on mips-sgi6.5

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Fri Dec 12 10:50:52 EST 2003


"William S." <wstan at xs4all.nl> writes:

> ... in /usr/people/wstan/nhc98-1.16/src/runtime/Kernel
> /usr/include/stdint.h:5:2: #error This header file is to be used only for
>                                   c99 mode compilations

I suggest you alter the files
    src/runtime/Kernel/mark.h
    include/HsFFI.h
Where there is a conditional inclusion of <stdint.h>, change the
condition to make the IRIX version include <inttypes.h> instead.
For instance

#    if defined(__sun__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#      include <inttypes.h>
#    else
#      include <stdint.h>
#    endif

could become something like

#    if defined(__sun__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__sgi)
#      include <inttypes.h>
#    else
#      include <stdint.h>
#    endif

If this still does not solve the problem, you could try using the
Cygwin-like branch of the conditional instead.

Regards,
    Malcolm


More information about the Nhc-users mailing list