[GHC] #16187: Hadrian: Build fails when using absolute path for build root
GHC
ghc-devs at haskell.org
Wed Jan 16 00:03:50 UTC 2019
#16187: Hadrian: Build fails when using absolute path for build root
-------------------------------------+-------------------------------------
Reporter: davide | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 8.6.3
(Hadrian) |
Keywords: hadrian build | Operating System: Linux
root relative absolute path |
Architecture: | Type of failure: Building GHC
Unknown/Multiple | failed
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
This fails:
{{{
$ git clean -xdf
$ ./boot && ./configure && ./hadrian/build.sh -o/tmp/build
...
Error when running Shake build system:
at src/Main.hs:58:30-42:
* Depends on: test
at src/Hadrian/Builder.hs:70:5-23:
* Depends on: /tmp/build01/stage2/lib/platformConstants
at src/Hadrian/Utilities.hs:292:5-18:
* Depends on: /tmp/build01/generated/platformConstants
at src/Hadrian/Builder.hs:70:5-23:
* Depends on: /tmp/build01/stage0/bin/deriveConstants
at src/Development/Shake/Internal/Rules/Oracle.hs:157:43-68:
* Depends on: OracleQ (ContextDataKey (Context {stage = Stage0, package =
Package {pkgType = Program, pkgName = "deriveConstants", pkgPath =
"utils/deriveConstants"}, way = v}))
at src/Hadrian/Haskell/Cabal/Parse.hs:214:5-36:
* Depends on: /tmp/build01/stage0/utils/deriveConstants/setup-config
* Raised the exception:
Error, rule finished running but did not produce file:
/tmp/build01/stage0/utils/deriveConstants/setup-config
CallStack (from HasCallStack):
error, called at src/Development/Shake/Internal/Rules/File.hs:180:58 in
shake-0.17.4-5aa097213b9663d13b00fb582ca77bb18e6d60c3b0376f0fc60fdbf22a73c6f4:Development.Shake.Internal.Rules.File
}}}
but changing `/tmp/build` to the relative path succeeds (something like
`-o../../../../tmp/build`).
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16187>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list