
Hi all, I receive the following message when I try to compile and install nhc98 at WinXP: timeUnix.c:7:23: sys/times.h: No such file or directory timeUnix.c: In function `timerRead': timeUnix.c:19: storage size of `buffer' isn't known timeUnix.c:20: `clock_t' undeclared (first use in this function) timeUnix.c:20: (Each undeclared identifier is reported only once timeUnix.c:20: for each function it appears in.) make[2]: ** [c:/nhc98-1.18/targets/ix86-CYGWIN_NT-5.1 /obj/runtime/Kernel/timeUni x.o] Erro 1 make[2]: Leaving directory `/cygdrive/c/nhc98-1.18/src/runtime/Kernel' make[1]: ** [ofiles] Erro 2 make[1]: Leaving directory `/cygdrive/c/nhc98-1.18/src/runtime' make: ** [targets/ix86-CYGWIN_NT-5.1/runtime] Erro 2 The error above appears when I type "make". Has anyone any idea about what's happening? Thanks in advance, Monique Monteiro

Monique Louise
I receive the following message when I try to compile and install nhc98 at WinXP:
timeUnix.c:7:23: sys/times.h: No such file or directory
My guess is that your installation of Cygwin is missing the component
that provides some of the standard C header files.

Hi Malcolm,
I've installed the packages and the first problem was solved. Now I'm
receiving the following message:
ghc -package lang -package util -package base -i../hmake -package lang -pac
kage util -package base -c -cpp -o c:/nhc98-1.18/targets/ix86-CYGWIN_NT-5.1
/obj
/interpreter/HInteractive.o HInteractive.hs
'h: line 19: syntax error near unexpected token `
make[1]: ** [c:/nhc98-1.18/lib/ix86-CYGWIN_NT-5.1/HInteractive.exe] Erro 2
make[1]: Leaving directory `/cygdrive/c/nhc98-1.18/src/interpreter'
make: ** [targets/ix86-CYGWIN_NT-5.1/hmake-ghc] Erro 2
Has anyone any idea about what may be happening?
Thanks,
Monique
On 11/17/05, Malcolm Wallace
Monique Louise
writes: I receive the following message when I try to compile and install nhc98 at WinXP:
timeUnix.c:7:23: sys/times.h: No such file or directory
My guess is that your installation of Cygwin is missing the component that provides some of the standard C header files.
is part of the POSIX standard (4.5.2), and is normally supported by Cygwin. Check (using Cygwin's setup.exe) that you have at least these packages from the Devel category:
gcc-mingw-core glib-devel
There may be others that are required also.
Regards, Malcolm _______________________________________________ Nhc-users mailing list Nhc-users@haskell.org http://www.haskell.org/mailman/listinfo/nhc-users

Monique Louise
I've installed the packages and the first problem was solved. Now I'm receiving the following message:
ghc -package lang -package util -package base -i../hmake -package lang -pac kage util -package base -c -cpp -o c:/nhc98-1.18/targets/ix86-CYGWIN_NT-5.1 /obj/interpreter/HInteractive.o HInteractive.hs 'h: line 19: syntax error near unexpected token `
Strange. I don't know what the 'h at the beginning of the error message means, but it suggests something weird is happening. Certainly, line 19 of the file HInteractive.hs does not have a backquote ` character, so the message cannot be referring to that. If you are not likely to use the 'hmake interactive' tool, then you can easily change the build to ignore it, for instance, by commenting out line 281 of the toplevel Makefile. Regards, Malcolm
participants (2)
-
Malcolm Wallace
-
Monique Louise