Re: Haddock error

2015-01-01 Thread Mateusz Kowalczyk
On 01/01/2015 08:34 PM, Simon Peyton Jones wrote:
 Folks I'm getting this Haddock error (see below) from a clean build
 on Windows. Does it ring any bells for anyone?  Anyone have any idea
 how to fix?  My build isn't exactly HEAD but I'd be very surprised if
 my changes are the cause. Thanks Simon
 
 C:/code/HEAD/inplace/bin/haddock
 --odir=libraries/ghc-prim/dist-install/doc/html/ghc-prim
 --no-tmp-comp-dir
 --dump-interface=libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock
 --html --hoogle --title=ghc-prim-0.3.1.0: GHC primitives
 --prologue=libraries/ghc-prim/dist-install/haddock-prologue.txt
 --optghc=-hisuf --optghc=hi --optghc=-osuf --optghc=o --optghc=-hcsuf
 --optghc=hc --optghc=-static --optghc=-H32m --optghc=-O
 --optghc=-Werror --optghc=-Wall --optghc=-H64m --optghc=-O0
 --optghc=-this-package-key --optghc=ghcpr_FgrV6cgh2JHBlbcx1OSlwt
 --optghc=-hide-all-packages --optghc=-i
 --optghc=-ilibraries/ghc-prim/.
 --optghc=-ilibraries/ghc-prim/dist-install/build
 --optghc=-ilibraries/ghc-prim/dist-install/build/autogen
 --optghc=-Ilibraries/ghc-prim/dist-install/build
 --optghc=-Ilibraries/ghc-prim/dist-install/build/autogen
 --optghc=-Ilibraries/ghc-prim/. --optghc=-optP-include
 --optghc=-optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h
 --optghc=-package-key --optghc=rts --optghc=-this-package-key
 --optghc=ghc-prim --optghc=-XHaskell2010 --optghc=-O2 --optghc=-O
 --optghc=-dcore-lint --optghc=-fno-warn-deprecated-flags
 --optghc=-fno-warn-tabs --optghc=-Wwarn --optghc=-no-user-package-db
 --optghc=-rtsopts --optghc=-fno-warn-trustworthy-safe --optghc=-odir
 --optghc=libraries/ghc-prim/dist-install/build --optghc=-hidir
 --optghc=libraries/ghc-prim/dist-install/build --optghc=-stubdir
 --optghc=libraries/ghc-prim/dist-install/build
 libraries/ghc-prim/./GHC/CString.hs
 libraries/ghc-prim/./GHC/Classes.hs
 libraries/ghc-prim/./GHC/Debug.hs
 libraries/ghc-prim/./GHC/IntWord64.hs
 libraries/ghc-prim/./GHC/Magic.hs
 libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.hs
 libraries/ghc-prim/./GHC/Tuple.hs  libraries/ghc-prim/./GHC/Types.hs
 libraries/ghc-prim/dist-install/build/autogen/GHC/Prim.hs +RTS
 -tlibraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock.t
 --machine-readable
 
 [snip]
 
 Declaration for $fOrdMaybe: attempting to use module 'GHC.Classes'
 (libraries/ghc-prim/./GHC/Classes.hs) which is not loaded CCSOf#
 (libraries/ghc-prim/dist-install/build/autogen/GHC/Prim.hs:3187)
 
 [snip]
 
 Cannot continue after interface file error 
 libraries/ghc-prim/ghc.mk:4: recipe for target
 'libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock'
 failed make[1]: ***
 [libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock]
 Error 1 Makefile:71: recipe for target 'all' failed make: *** [all]
 Error 2 HEAD (master)$
 

Hi Simon,

In InterfaceFile.hs in Haddock there is

binaryInterfaceVersion :: Word16
#if (__GLASGOW_HASKELL__ = 711)  (__GLASGOW_HASKELL__  713)
binaryInterfaceVersion = 27
…

Try bumping this to 28 and if it works then then you may want to commit
the change.

By the way I see that there is a lot of output from Haddock now as I
made it print locations of missing documentation by default. Maybe
--no-print-missing-docs should be passed in for GHC stuff.


-- 
Mateusz K.
___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs


Fwd: [Haddock] error: utils/haddock_dist_PROGNAME is not set

2013-03-25 Thread Rob Stewart
Hi Ian,

That may well be true. However, I ran multiple ./sync-all commands,
due to the following error that I am seeing with the parallel library:

$ ./sync-all -r http://darcs.haskell.org --extra get -b ghc-7.6
...
Cloning into 'libraries/process'...
== libraries/process: running git config --local core.ignorecase true
== running git clone
http://darcs.haskell.org/packages/template-haskell.git
libraries/template-haskell -b ghc-7.6
Cloning into 'libraries/template-haskell'...
== libraries/template-haskell: running git config --local core.ignorecase true
== running git clone http://darcs.haskell.org/packages/unix.git
libraries/unix -b ghc-7.6
Cloning into 'libraries/unix'...
== libraries/unix: running git config --local core.ignorecase true
== running git clone http://darcs.haskell.org/packages/parallel.git
libraries/parallel -b ghc-7.6
Cloning into 'libraries/parallel'...
fatal: Remote branch ghc-7.6 not found in upstream origin
Unexpected end of command stream
git failed: 32768 at ./sync-all line 193.

--
Rob

On 24 March 2013 19:03, Ian Lynagh i...@well-typed.com wrote:
 On Sun, Mar 24, 2013 at 07:50:34PM +0100, David Waern wrote:
 Not sure what's wrong here. Maybe someone on ghc-devs@ knows.

 2013/3/24 Rob Stewart robstewar...@gmail.com

  I am not able to build ghc 7.6 from source, and come across an error
  in utils/haddock/ghc.mk
 
  utils/haddock/ghc.mk:28: *** utils/haddock_dist_PROGNAME is not set.

 I suspect that either your haddock repository is out-of-date, or that
 some of your repositories are on the 7.6 branch and some are on master.


 Thanks
 Ian


___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs