Opened 9 months ago

Last modified 7 months ago

#15982 new bug

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

Reported by: snowleopard Owned by:
Priority: high Milestone: 8.8.1
Component: Build System (Hadrian) Version: 8.6.2
Keywords: Cc:
Operating System: Windows Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

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.

Change History (5)

comment:1 Changed 9 months ago by snowleopard

Invoking Hadrian using the build.cabal.bat script seems to work fine too:

hadrian\build.cabal.bat --configure -j --flavour=quickest --integer-simple

So this is somehow related to my Stack setup. Can anyone reproduce?

comment:2 Changed 9 months ago by bgamari

Milestone: 8.6.3

Ticket retargeted after milestone closed

comment:3 Changed 9 months ago by bgamari

Milestone: 8.8.1
Operating System: Unknown/MultipleWindows
Priority: normalhigh

comment:4 Changed 8 months ago by snowleopard

I propose to switch to the Cabal build script by default, at least until this ticket is resolved:

https://gitlab.haskell.org/ghc/ghc/merge_requests/100

Note: See TracTickets for help on using tickets.