#4871: Build failure on windows: rts/Linker.c
---------------------------------+------------------------------------------
Reporter: nsch | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version:
Keywords: mingw | Testcase:
Blockedby: | Difficulty:
Os: Windows | Blocking:
Architecture: Unknown/Multiple | Failure: Building GHC failed
---------------------------------+------------------------------------------
Comment(by nsch):
To be honest, I'm somehow confused on which tools you should use to build
GHC on windows. The different links to the MinGW tools on
[wiki:Building/Preparation/Windows] are broken (there's no
http://www.haskell.org/ghc/tools/Win32 anymore) and by just downloading
the latest MinGW versions from http://mingw.org I get another error:
{{{
"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-Wno-strict-prototypes -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/Adjustor.c -o rts/dist/build/Adjustor.thr_o
In file included from
c:/mingw/lib/gcc/mingw32/4.5.0/../../../../include/pthread.h:288:0,
from includes/rts/OSThreads.h:30,
from includes/Rts.h:178,
from rts\Adjustor.c:40:0:
c:/mingw/lib/gcc/mingw32/4.5.0/../../../../include/sched.h:152:53: error:
expected ')' before 'pid'
c:/mingw/lib/gcc/mingw32/4.5.0/../../../../include/sched.h:154:53: error:
expected ')' before 'pid'
make[1]: *** [rts/dist/build/Adjustor.thr_o] Error 1
make: *** [all] Error 2
}}}
Yes, there's that ghc-tarballs repository, but it's missing at least
"make" and "autoreconf" (and I think "sh" and stuff like that), so I need
at least some tools from the msys/mingw packages.
This might be just some missing/unclear documentation, but I spend the
last couple of days trying to fix this and I'm not entirely sure anymore
if it's really all my own fault...
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4871#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs