Building on windows/mingw issues

Nils Schweinsberg ml at n-sch.de
Sat Jan 1 23:26:34 CET 2011


Hi,

I have some issues building the RTS of GHC on windows. I tried all 
various versions of mingw, including the latest stable release from 
mingw.org, the tarballs from the darcs repo in ghc-tarballs/mingw and 
the version of the currently installed GHC platform with ghc 6.12 (the 
files in mingw/bin). The error I get is always the same, no matter if I 
try to build current GHC HEAD or the stable 7.0.1 release:


~~~

"inplace/bin/ghc-stage1.exe" -optc-Wall -optc-Wextra 
-optc-Wstrict-prototypes -optc-Wmissing-prototypes 
-optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return 
-optc-Wpointer-arith -optc-Wmissing-noreturn -optc-Wnested-externs 
-optc-Wredundant-decls -optc-Iincludes -optc-Irts -optc-DCOMPILING_RTS 
-optc-fno-strict-aliasing -optc-fno-common -optc-Ilibffi/build/include 
-optc-fomit-frame-pointer -optc-DRtsWay=\"rts_thr\" -optc-DTHREADED_RTS 
  -H32m -O -Iincludes -Irts -DCOMPILING_RTS -package-name rts 
-dcmm-lint  -Ilibffi/build/include     -i -irts -irts/dist/build 
-irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen 
     -optc-O2   -c rts/Linker.c -o rts/dist/build/Linker.thr_o

rts\Linker.c:1039:1:  error: conflicting types for 'mktime'
c:\haskell\ghc-src\inplace\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/time.h:104:40: 
note: previous declaration of 'mktime' was here

rts\Linker.c:1039:1:  error: conflicting types for 'localtime'
c:\haskell\ghc-src\inplace\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/time.h:121:45: 
note: previous declaration of 'localtime' was here

rts\Linker.c:1039:1:  error: conflicting types for 'gmtime'
c:\haskell\ghc-src\inplace\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/time.h:120:45: 
note: previous declaration of 'gmtime' was here
make[1]: *** [rts/dist/build/Linker.thr_o] Error 1
make: *** [all] Error 2

~~~


Can anyone confirm this error?

Can anyone help me to fix this error? I definitly do not have any other 
versions of msys/mingw installed/in my path.



Thanks,

Nils



More information about the Glasgow-haskell-users mailing list