Skip to content

Question on Hadrian build via Stack on Windows

Summary

Hadrian build failure (on Commit: 5a3fdcfd) with details below. (I am confused about the error so the issue's title may be misleading.)

Steps to reproduce

I also modified resolver:ghc-9.2 in stack.yaml.

./boot && ./configure --enable-tarballs-autodownload

cd hadrian

stack exec --sh configure

stack exec hadrian -- --directory=".." --flavour=quickest

Below is error message:

$ stack exec hadrian -- --directory ".." --flavour=quickest
Stack has not been tested with GHC versions above 9.0, and using 9.2, this may fail
Stack has not been tested with Cabal versions above 3.4, but version 3.6.3.0 was found, this may fail
[...]
| Configure package 'rts'
| In tree GMP will be built
| Run Make "_build/stage1/libffi/build": none => none
Command line: C:/msys64/usr/bin/make.exe -C _build/stage1/libffi/build MAKEFLAGS=-j4 install
===> Command failed with error code: 2
/usr/bin/sh: line 10: /usr/bin/make: No such file or directory
make: *** [Makefile:2906: install] Error 127
make: Entering directory '/home/carri/ghc/ghc/_build/stage1/libffi/build'
MAKE x86_64-pc-mingw64 : 0 * install
make: Leaving directory '/home/carri/ghc/ghc/_build/stage1/libffi/build'
Command failed
Build failed.

Environment

  • GHC version used: 9.2.2

Optional:

  • Operating System: Windows(msys64)
  • System Architecture: x86_64
Edited by CarrieMY
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information