[GHC] #16103: docs-haddock Hadrian target doesn't work reliably

GHC ghc-devs at haskell.org
Fri Dec 28 19:09:25 UTC 2018


#16103: docs-haddock Hadrian target doesn't work reliably
-------------------------------------+-------------------------------------
           Reporter:  harpocrates    |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Build System   |           Version:  8.6.3
  (Hadrian)                          |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 Starting with a clean build, the following doesn't work:

 {{{
 $ ./hadrian/build.sh -c docs-haddock
 }}}

 However, it does work if you've already run `./hadrian/build.sh -c`.
 Here's a sample `--verbose` log (this was produced with
 `./hadrian/build.sh -c --build-root=_qkst-integer-simple
 --flavour=quickest docs-haddock --integer-simple --verbose`, but the
 problem exhibits even without all the extra options):

 {{{
 Up to date
 Up to date
 | ContextData oracle: resolving data for 'haddock' (Stage2, v)...
 | Configure package 'haddock'
 Configuring haddock-2.22.0...
 creating
 /Users/atheriault/Code/ghc/_qkst-integer-simple/stage2/utils/haddock/build
 /Users/atheriault/Code/ghc/_qkst-integer-simple/stage1/bin/ghc --numeric-
 version
 /Users/atheriault/Code/ghc/_qkst-integer-simple/stage1/bin/ghc is version
 8.7.20181227
 /Users/atheriault/Code/ghc/_qkst-integer-simple/stage0/bin/ghc-pkg
 --version
 /Users/atheriault/Code/ghc/_qkst-integer-simple/stage0/bin/ghc-pkg is
 version
 8.7.20181227
 /Users/atheriault/Code/ghc/_qkst-integer-simple/stage1/bin/ghc
 --supported-languages
 /Users/atheriault/Code/ghc/_qkst-integer-simple/stage1/bin/ghc --info
 Reading installed packages...
 /Users/atheriault/Code/ghc/_qkst-integer-simple/stage0/bin/ghc-pkg dump
 --global -v0 '--global-package-db=/Users/atheriault/Code/ghc/_qkst-
 integer-simple/stage1/lib/package.conf.d'
 /Users/atheriault/Code/ghc/_qkst-integer-simple/stage1/bin/ghc --print-
 libdir '-ghcversion-file=/Users/atheriault/Code/ghc/_qkst-integer-
 simple/generated/ghcversion.h'
 CallStack (from HasCallStack):
   die', called at ./Distribution/Simple/Configure.hs:969:20 in
 Cabal-2.5.0.0-inplace:Distribution.Simple.Configure
   configureFinalizedPackage, called at
 ./Distribution/Simple/Configure.hs:467:12 in
 Cabal-2.5.0.0-inplace:Distribution.Simple.Configure
   configure, called at ./Distribution/Simple.hs:596:20 in
 Cabal-2.5.0.0-inplace:Distribution.Simple
   confHook, called at ./Distribution/Simple/UserHooks.hs:67:5 in
 Cabal-2.5.0.0-inplace:Distribution.Simple.UserHooks
   configureAction, called at ./Distribution/Simple.hs:178:19 in
 Cabal-2.5.0.0-inplace:Distribution.Simple
   defaultMainHelper, called at ./Distribution/Simple.hs:148:3 in
 Cabal-2.5.0.0-inplace:Distribution.Simple
   defaultMainWithHooksNoReadArgs, called at
 src/Hadrian/Haskell/Cabal/Parse.hs:145:14 in
 main:Hadrian.Haskell.Cabal.Parse
 hadrian: Encountered missing dependencies:
 xhtml ==3000.2.*

 shakeArgsWith   0.000s    0%
 Function shake  0.010s    0%
 Database read   0.317s   12%  ===
 With database   0.018s    0%
 Running rules   2.166s   86%  =========================
 Total           2.511s   99%
 Error when running Shake build system:
   at src/Main.hs:58:30-42:
 * Depends on: docs-haddock
   at src/Rules/Documentation.hs:79:9-48:
 * Depends on: _qkst-integer-simple/docs/html/libraries/index.html
   at src/Rules/Documentation.hs:136:9-24:
 * Depends on: _qkst-integer-simple/docs/html/libraries/ghc-prim/ghc-
 prim.haddock
   at src/Hadrian/Builder.hs:70:5-23:
 * Depends on: _qkst-integer-simple/stage2/bin/haddock
   at src/Development/Shake/Internal/Rules/Oracle.hs:157:43-68:
 * Depends on: OracleQ (ContextDataKey (Context {stage = Stage2, package =
 Package {pkgType = Program, pkgName = "haddock", pkgPath =
 "utils/haddock"}, way = v}))
   at src/Hadrian/Haskell/Cabal/Parse.hs:202:5-36:
 * Depends on: _qkst-integer-simple/stage2/utils/haddock/setup-config
 * Raised the exception:
 ExitFailure 1
 }}}

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


More information about the ghc-tickets mailing list