[GHC] #15948: Hadrian cannot build on Windows

#15948: Hadrian cannot build on Windows -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (Hadrian) | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- 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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15948 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15948: Hadrian cannot build on Windows -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (Hadrian) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Indeed `cp -R inplace/mingw _build` seems to allow the build to proceed. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15948#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15948: Hadrian cannot build on Windows -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (Hadrian) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by snowleopard): I think I know what's going on: right now `inplace/mingw` is copied to `_build` only when the `-c` flag is passed, and you prefer to run `configure` manually. See this: https://github.com/ghc/ghc/blob/master/hadrian/src/Rules/Configure.hs#L37-L4... This is a hack, and we should get rid of it, but I couldn't come up with anything significantly better. Do you have any suggestions on how to reliably handle mingw tarballs? It might seem like this is a task for the `configure` script, but unfortunately it doesn't know the build root (`_build` may be overriden). Here is the corresponding issue on GitHub: https://github.com/snowleopard/hadrian/issues/564. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15948#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15948: Hadrian cannot build on Windows -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (Hadrian) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Ahh, thanks for the quick reply, Andrey! That explanation sounds quite plausible. A slight improvement might be to follow through on the TODO you pointed at and add proper dependency tracking. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15948#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15948: Hadrian build fails on Windows when invoked without --configure flag -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (Hadrian) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15948#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15948: Hadrian build fails on Windows when invoked without --configure flag -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.8.1 Component: Build System | Version: 8.7 (Hadrian) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by alpmestan): I got bitten by this as well. We probably want to fix this sometimes this month, as I suspect most/all Windows users will be bitten by this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15948#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC