[GHC] #16187: Hadrian: Build fails when using absolute path for build root

#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

#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 Resolution: | root relative absolute path Operating System: Linux | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by sykloid): I'm trying to tackle this issue as a beginner get-started-on-ghc task. This particular problem is caused by incorrect argument construction in `hadrian/src/Settings/Builders/Cabal:cabalBuilderArgs`; but other errors pop up when that's fixed, which I'm working on now. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16187#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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 Resolution: | root relative absolute path Operating System: Linux | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by snowleopard): Hi @sykloid! Many thanks for taking this up. If you need any help navigating Hadrian code base, please don't hesitate to get in touch. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16187#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16187: Hadrian: Build fails when using absolute path for build root -------------------------------------+------------------------------------- Reporter: davide | Owner: sykloid Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.6.3 (Hadrian) | Keywords: hadrian build Resolution: | root relative absolute path Operating System: Linux | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by davide): * owner: (none) => sykloid -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16187#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16187: Hadrian: Build fails when using absolute path for build root
-------------------------------------+-------------------------------------
Reporter: davide | Owner: sykloid
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 8.6.3
(Hadrian) | Keywords: hadrian build
Resolution: | root relative absolute path
Operating System: Linux | Architecture:
Type of failure: Building GHC | Unknown/Multiple
failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Marge Bot
participants (1)
-
GHC