[GHC] #15132: Hadrian-built GHC cannot locate `unlit`

GHC ghc-devs at haskell.org
Wed May 9 14:27:42 UTC 2018


#15132: Hadrian-built GHC cannot locate `unlit`
---------------------------------+----------------------------------------
        Reporter:  tdammers      |                Owner:  alpmestan
            Type:  bug           |               Status:  new
        Priority:  normal        |            Milestone:  8.6.1
       Component:  Build System  |              Version:
      Resolution:                |             Keywords:  hadrian
Operating System:  Linux         |         Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown  |            Test Case:
      Blocked By:                |             Blocking:
 Related Tickets:                |  Differential Rev(s):
       Wiki Page:                |
---------------------------------+----------------------------------------
Changes (by alpmestan):

 * keywords:   => hadrian
 * cc: alpmestan (added)
 * owner:  (none) => alpmestan


Comment:

 This is due to GHC systematically looking for unlit under libexec, not
 even trying to look at the directory where the `ghc` binary resides, to
 see whether it also has an `unlit` executable.

 I have a fairly simple fix for this on the hadrian side, that just places
 `unlit` executables under `<build root>/stage<N>/lib/bin/unlit` instead of
 `<build root>/stage<N>/bin/unlit`. Will submit a PR shortly. A better
 solution would be to change the code from `SysTools.hs` to do something a
 little smarter.

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


More information about the ghc-tickets mailing list