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

GHC ghc-devs at haskell.org
Wed May 9 11:16:47 UTC 2018


#15132: Hadrian-built GHC cannot locate `unlit`
----------------------------------------+---------------------------------
           Reporter:  tdammers          |             Owner:  (none)
               Type:  bug               |            Status:  new
           Priority:  normal            |         Milestone:  8.6.1
          Component:  Build System      |           Version:
           Keywords:                    |  Operating System:  Linux
       Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
          Test Case:                    |        Blocked By:
           Blocking:                    |   Related Tickets:
Differential Rev(s):                    |         Wiki Page:
----------------------------------------+---------------------------------
 When trying to compile a Literate Haskell source with a Hadrian-built GHC,
 compilation fails due to GHC not finding the `unlit` binary.

 How to reproduce:

 - Compile GHC using the default Hadrian `build.sh` script
 - Create a minimal LHS file, e.g. `echo '> main = return ()' > test.lhs`
 - Compile the LHS file with the in-place GHC:
 `$GHC_SRC_TREE/_build/stage1/bin/ghc test.lhs`

 This fails with something like:

 {{{
 ghc: could not execute: $GHC_SRC_TREE/_build/stage1/lib/bin/unlit
 }}}

 However, the `unlit` binary is in `$GHC_SRC_TREE/_build/stage1/bin/unlit`.
 Considering how `make`-built GHC works fine, this seems to be a
 misconfiguration in the Hadrian build system.

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


More information about the ghc-tickets mailing list