Skip to content

Hadrian build fails on Windows when invoked without --configure flag

The Hadrian build on Windows currently fails with

'C:/msys64/home/ben/ghc/builds/0/project-0/_build/stage0/bin/ghc.exe' exited
ghc.exe: could not detect mingw toolchain

when trying to build the RTS.

I strongly suspect that the problem is that the stage1 toolchain built by Hadrian lives in _build/stage0/bin/ghc whereas the mingw tarballs were extracted to inplace/mingw. It's quite unclear to me how this ever worked.

Trac metadata
Trac field Value
Version 8.7
Type Bug
TypeOfFailure OtherFailure
Priority highest
Resolution Unresolved
Component Build System (Hadrian)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC alpmestan, snowleopard
Operating system
Architecture
Edited by Andrey Mokhov
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information