Building on windows/mingw issues
ml at n-sch.de
Sat Jan 1 23:26:34 CET 2011
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-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'
note: previous declaration of 'mktime' was here
rts\Linker.c:1039:1: error: conflicting types for 'localtime'
note: previous declaration of 'localtime' was here
rts\Linker.c:1039:1: error: conflicting types for 'gmtime'
note: previous declaration of 'gmtime' was here
make: *** [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.
More information about the Glasgow-haskell-users