[GHC] #16073: Hadrian build fails on Windows

GHC ghc-devs at haskell.org
Sat Jan 12 01:39:09 UTC 2019


#16073: Hadrian build fails on Windows
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.8.1
       Component:  Build System      |              Version:  8.6.3
  (Hadrian)                          |
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by snowleopard):

 Alp: I can reproduce this on my machine. Indeed, in addition to the
 directory `_build/stage0/lib`, I appear to also have `_build/stage0/x86_64
 -windows-ghc-8.4.3`.

 If I look at a file like `_build/stage0/libraries/ghc-boot-
 th/build/autogen/Paths_ghc_boot_th.hs`, I can see the following directory
 settings:

 {{{
 bindir     = "${pkgroot}/..\\bin"
 libdir     = "${pkgroot}/..\\x86_64-windows-ghc-8.4.3\\ghc-boot-th-8.7"
 dynlibdir  = "${pkgroot}/..\\x86_64-windows-ghc-8.4.3"
 datadir    = "${pkgroot}/..\\x86_64-windows-ghc-8.4.3\\ghc-boot-th-8.7"
 libexecdir = "${pkgroot}/..\\ghc-boot-th-8.7\\x86_64-windows-ghc-8.4.3
 \\ghc-boot-th-8.7"
 sysconfdir = "${pkgroot}/..\\etc"
 }}}

 So, it looks like these settings are computed incorrectly. Is this done by
 Cabal? Or `ghc-pkg`? This is the Hadrian corner which I understand very
 little about.

 Could you show the above list of settings on your machine?

 Perhaps, Moritz could help figure this out, since I believe he was writing
 some of the associated code?

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16073#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list