Skip to content

Hadrian Stack build fails on WIndows

Summary

PS C:\Users\spacekitteh\code\ghc> hadrian\build.stack.bat -c -j
| Checking for Windows tarballs...
| Run Configure ".": hadrian/cfg/system.config.in (and 3 more) => hadrian/cfg/system.config (and 3 more)
configure: error: GHC is required.
[31mError when running Shake build system:
  at action, called at src\Rules.hs:70:19 in main:Rules
  at apply1, called at src\Development\Shake\Internal\Rules\Oracle.hs:159:32 in shake-0.18.3-3BLsgGZEbdn8lXb9PZvVjC:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","cross-compiling"))
  at need, called at src\Hadrian\Oracles\TextFile.hs:90:9 in main:Hadrian.Oracles.TextFile
* Depends on: hadrian/cfg/system.config
  at &%>, called at src\Rules\Configure.hs:21:5 in main:Rules.Configure
* Depends on: hadrian/cfg/system.config mk/config.h compiler/ghc.cabal rts/rts.cabal
* Raised the exception:
user error (Development.Shake.cmd, system command failed
Command line: sh configure
Current directory: C:\Users\spacekitteh\code\ghc
Exit code: 1
Stderr:
configure: error: GHC is required.
)
[0m

PS C:\Users\spacekitteh\code\ghc>

Steps to reproduce

hadrian\build.stack.bat -c -j

Expected behavior

Build GHC

Environment

  • GHC version used: HEAD

Optional:

  • Operating System: Win10
  • System Architecture: x64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information