Skip to content

Hadrian's `--configure` flag is broken on Windows

For some reason I can no longer use Hadrian's --configure flag. When I use it, the configuration step fails with the following obscure error:

rm: cannot remove '.MTREE': No such file or directory

This is certainly caused by this line in configure.ac:

https://github.com/ghc/ghc/blob/93e86d6103757b43017535c92bc6970e9e2315a5/configure.ac#L358

It's unclear what should be done in this case.

Here is the command line I use to invoke Hadrian:

hadrian\build --configure -j --flavour=quickest --integer-simple

When I run the configure script manually from the MinGW shell, it works fine.

Trac metadata
Trac field Value
Version 8.6.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System (Hadrian)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown/Multiple
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information