When building GHC-4.0 on NT4.0 / cygwin32 b19.0, I encounter  folowing minor
problems:

1)


../../ghc/driver/ghc  -I../includes -I. -Igum -optc-Wall  -optc-W -optc-Wstr
ict-prototypes  -optc-Wmissing-prototypes  -optc-Wmissing-declarations -optc
-Winline -optc-Waggregate-return -optc-Wpointer-arith -optc-Wbad-function-ca
st     -c Itimer.c -o Itimer.o
Itimer.c:62: parse error before `*'
Itimer.c:62: warning: type defaults to `int' in declaration of
`vtalrm_cback'
Itimer.c:62: warning: data definition has no type or storage class
Itimer.c:74: warning: implicit declaration of function `timeBeginPeriod'
Itimer.c:75: `TIMERR_NOCANDO' undeclared (first use this function)
Itimer.c:75: (Each undeclared identifier is reported only once
Itimer.c:75: for each function it appears in.)
Itimer.c:79: warning: implicit declaration of function `timeSetEvent'
Itimer.c:81: `LPTIMECALLBACK' undeclared (first use this function)
Itimer.c:81: parse error before `vtalrm_cback'
Itimer.c:135: warning: assignment from incompatible pointer type

I fixed this by adding  " && !defined(HAVE_SETITIMER) "  to line 49 'cause
setitimer is implemented in beta19.

2)  the next one had two flavours:

FiniteMap.lhs:62:
    Name.hi-boot:6 Interface-file parse error; toks= []
FiniteMap.lhs:62: Could not find valid interface file `Name'
FiniteMap.lhs:62: Module `Name' does not export `Name'

and

headFS: empty FS:

I fixed  by adding several empty lines at the end of all .hi-boot files. One
or even two lines wasn't sufficient for some...

3)
gcc -Iparser -I. -I../includes -O    -c parser/hsclink.c -o parser/hsclink.o
ghc -c -o
parser/hschooks.o -I../includes -cpp -fglasgow-exts -Rghc-timing -I. -IcodeG
en -InativeGen -Iparser -iutils:basicTypes:types:hsSyn:prelude:rename:typech
eck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:abs
CSyn:main:reader:profiling:parser:nativeGen -recomp     parser/hschooks.c
parser/hschooks.c:17: conflicting types for `ErrorHdrHook'
/gw19/usr/lib/ghc-3.03/includes/stgdefs.h:232: previous declaration of
`ErrorHdrHook'
parser/hschooks.c:24: conflicting types for `PatErrorHdrHook'
/gw19/usr/lib/ghc-3.03/includes/stgdefs.h:240: previous declaration of
`PatErrorHdrHook'
parser/hschooks.c:31: conflicting types for `PreTraceHook'
/gw19/usr/lib/ghc-3.03/includes/stgdefs.h:241: previous declaration of
`PreTraceHook'
parser/hschooks.c:38: conflicting types for `PostTraceHook'
/gw19/usr/lib/ghc-3.03/includes/stgdefs.h:242: previous declaration of
`PostTraceHook'

the fix was to replace int fd with StgInt fd in definitions of the
functions.

Cheers,
Alex.



Reply via email to