Opened 6 years ago

Closed 6 years ago

Last modified 6 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: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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' \
                               ; \
fi
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 http://hackage.haskell.org/trac/ghc/wiki/Building/Prerequisites and ought, if kept, to be checked and reported in the initial configure phase.

Best regards
Thorkil

Change History (4)

comment:1 Changed 6 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 6 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 <igloo@earth.li>
  * If HADDOCK_DOCS is YES, then fail the build early if we couldn't find haddock
  This fixes trac #2266.

comment:3 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:4 Changed 6 years ago by simonmar

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