Hadrian-built GHC cannot locate `unlit`
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.
Trac metadata
Trac field | Value |
---|---|
Version | |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Build System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |