Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2266 closed bug (fixed)

validate requires haddock to be installed

Reported by: thorkilnaur Owned by:
Priority: normal Milestone: 6.10 branch
Component: Compiler Version: 6.8.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


A validate of a recent GHC HEAD on a machine that didn't have haddock installed ended with the report:

if ifBuildable/ifBuildable ghc-prim; then \
  cd ghc-prim && setup/Setup haddock --html-location='../$pkg' \
                               ; \
Setup: haddock version >=0.6 is required but it could not be found.
make[1]: *** [doc.library.ghc-prim] Error 1
make[1]: Leaving directory `/usr/home/tn/tn/GHCDarcsRepository/ghc-HEAD-complete-20080503_0226/ghc/libraries'
make: *** [stage1] Error 2

This requirement is not mentioned on and ought, if kept, to be checked and reported in the initial configure phase.

Best regards Thorkil

Change History (4)

comment:1 Changed 8 years ago by igloo

  • difficulty set to Unknown
  • Milestone set to 6.10 branch

This is a bit fiddly - it's Cabal that finds haddock, so it's hard to know if it will succeed or not. Maybe we should detect it ourselves instead, and tell Cabal where to find it.

comment:2 Changed 8 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

We now do tell Cabal where to find haddock, and this means we can fail early if we can't find it. This ticket is therefore fixed by:

Sun Jul 13 17:53:05 BST 2008  Ian Lynagh <>
  * If HADDOCK_DOCS is YES, then fail the build early if we couldn't find haddock
  This fixes trac #2266.

comment:3 Changed 8 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:4 Changed 8 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.