Ticket #5488 (closed bug: duplicate)
GHC-7.2.1 standalone failed to bootstrap ghc-HEAD on windows
AR_STAGE0 gets set to: AR_STAGE0='D:/slave/stable/builder/tempbuild/build/inplace/mingw/bin/ar.exe'
ghc --info spits out:
I'll try the latest Haskell platform installer next.
Haskell platform is 2011.2.0.1 which is ghc-7.0.2 and doesn't output the ar.exe line from --info.
I forced AR_STAGE0 to the inplace mingw/bin/ar.exe path via manually editing config.status.
CC_STAGE0 had a similar problem. 7.2.1 standalone printed: $topdir/../mingw/bin/gcc.exe
which turned into: opdir../mingw/bin/gcc.exe while trying to ghc-cabal.exe configure libraries/Cabal/cabal
Forcing CC_STAGE0 to $$topdir/.... didn't help either.
So i fixed CC_STAGE0 to inplace/mingw/bin/gcc.exe. Now ghc-cabal is configuring away.