[GHC] #15922: Can't make a `binary-dist` on MacOS with Hadrian

GHC ghc-devs at haskell.org
Tue Nov 20 11:08:43 UTC 2018


#15922: Can't make a `binary-dist` on MacOS with Hadrian
-------------------------------------+-------------------------------------
           Reporter:  harpocrates    |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:  8.6.3
          Component:  Build System   |           Version:  8.6.2
  (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:
-------------------------------------+-------------------------------------
 Steps to reproduce on a Mac:

 {{{
 $ ./hadrian/build.sh -c -j "binary-dist"
 <snip>
 Error when running Shake build system:
   at src/Main.hs:58:30-42:
 * Depends on: binary-dist
 * Raised the exception:
 user error (Development.Shake.cmd, system command failed
 Command: cp -r _D5316/stage1/lib/x86_64-darwin-
 ghc-8.7.20181119/rts-1.0/include _D5316/bindist/ghc-8.7.20181119-x86_64
 -apple-darwin
 Exit code: 1
 Stderr:
 cp: _D5316/stage1/lib/x86_64-darwin-ghc-8.7.20181119/rts-1.0/include: No
 such file or directory
 )
 }}}

 There is an `_D5316/stage1/lib/x86_64-osx-
 ghc-8.7.20181119/rts-1.0/include` folder though (note the `darwin`/`osx`
 difference)...

 At a glance, I think this is a case of Cabal having a different naming
 convention then Hadrian's `HostOs` (I'm pretty sure that the folders in
 `lib` are created by Cabal using its internal convention).

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


More information about the ghc-tickets mailing list