Skip to content

Hadrian: Build fails when using absolute path for build root

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).

Trac metadata
Trac field Value
Version 8.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System (Hadrian)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC alpmestan, snowleopard
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information