[Hackage] #494: cabal-install cannot build docs that involve Paths_

#494: cabal-install cannot build docs that involve Paths_ ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: low | Milestone: Component: cabal-install tool | Version: 1.6.0.1 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ---------------------------------+------------------------------------------ This was noticed in the filestore repo: http://johnmacfarlane.net/repos/filestore For various reasons, filestore makes use of Paths_filestore. However, this leads to no documentation being built: {{{ Resolving dependencies... Configuring filestore-0.2... Preprocessing library filestore-0.2... Building filestore-0.2... [1 of 7] Compiling Paths_filestore ( dist/build/autogen/Paths_filestore.hs, dist/build/Paths_filestore.o ) [1 of 7] Compiling Paths_filestore ( dist/build/autogen/Paths_filestore.hs, dist/build/Paths_filestore.p_o ) [4 of 7] Compiling Data.FileStore.Git ( Data/FileStore/Git.hs, dist/build/Data/FileStore/Git.p_o ) [7 of 7] Compiling Data.FileStore ( Data/FileStore.hs, dist/build/Data/FileStore.p_o ) /usr/bin/ar: creating dist/build/libHSfilestore-0.2.a /usr/bin/ar: creating dist/build/libHSfilestore-0.2_p.a Preprocessing library filestore-0.2... Running Haddock for filestore-0.2... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0 Preprocessing library filestore-0.2... setup: can't find source for module Paths_filestore Installing library in /home/gwern/bin/lib/filestore-0.2/ghc-6.10.1 Registering filestore-0.2... Reading package info from "dist/installed-pkg-config" ... done. Writing new package config file... done. }}} Note the 'setup: can't find source...'. However, if we go via 'runhaskell', then things are different: {{{ gwern@craft:40444~/bin/filestore>runhaskell Setup configure --user && runhaskell Setup haddock [ 3:11PM] Configuring filestore-0.2... Preprocessing library filestore-0.2... Running Haddock for filestore-0.2... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0 Warning: Cannot read /home/gwern/bin/share/doc/Diff-0.1.2/html/Diff.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/Diff-0.1.2/html/Diff.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/QuickCheck/QuickCheck.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/QuickCheck/QuickCheck.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/array/array.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/array/array.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/base/base.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/base/base.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/base/base.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/base/base.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/bytestring/bytestring.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/bytestring/bytestring.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/containers/containers.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/containers/containers.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/datetime-0.1/html/datetime.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/datetime-0.1/html/datetime.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/directory/directory.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/directory/directory.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/filepath/filepath.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/filepath/filepath.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/ghc-prim/ghc- prim.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/ghc-prim/ghc-prim.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/integer/integer.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/integer/integer.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/mtl/mtl.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/mtl/mtl.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/old-locale /old-locale.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/old-locale/old-locale.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/old-time/old- time.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/old-time/old-time.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/parsec/parsec.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/parsec/parsec.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/process/process.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/process/process.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/random/random.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/random/random.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/regex-base-0.93.1/html /regex-base.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/regex- base-0.93.1/html/regex-base.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/regex-posix-0.93.2/html /regex-posix.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/regex- posix-0.93.2/html/regex-posix.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/syb/syb.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/syb/syb.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/time/time.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/time/time.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/unix/unix.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/unix/unix.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/xml-1.3.3/html/xml.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/xml-1.3.3/html/xml.haddock" Skipping this interface. Warning: filestore-0.2:Data.FileStore.Types: could not find link destinations for: GHC.Base.String GHC.Classes.Eq GHC.Read.Read GHC.Show.Show Data.Typeable.Typeable Data.DateTime.DateTime Data.ByteString.Lazy.Internal.ByteString Data.Maybe.Maybe GHC.Bool.Bool GHC.Exception.Exception GHC.Integer.Internals.Integer GHC.IOBase.IO Warning: filestore-0.2:Data.FileStore.Utils: could not find link destinations for: GHC.IOBase.FilePath Data.Maybe.Maybe GHC.Base.String GHC.IOBase.IO GHC.IOBase.ExitCode Data.ByteString.Lazy.Internal.ByteString GHC.Bool.Bool GHC.Classes.Eq Warning: filestore-0.2:Data.FileStore.Git: could not find link destinations for: GHC.IOBase.FilePath Warning: filestore-0.2:Data.FileStore.Darcs: could not find link destinations for: GHC.IOBase.FilePath Warning: filestore-0.2:Data.FileStore.Generic: could not find link destinations for: GHC.IOBase.IO Data.Either.Either Data.Algorithm.Diff.DI Data.Maybe.Maybe GHC.Base.String GHC.Bool.Bool Documentation created: dist/doc/html/filestore/index.html }}} Here the docs are indeed built. I am using Cabal-1.7.0 and a month-old or so cabal-install. The problem with cabal-install was also seen by John MacFarlane. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/494 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#494: cabal-install cannot build docs that involve Paths_ ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: low | Milestone: Component: cabal-install tool | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: unknown Ghcversion: | Platform: ---------------------------------+------------------------------------------ Comment (by Saizan): This should be a duplicate of #396. Can you rebuild your cabal-install against the Cabal branch at http://darcs.haskell.org/cabal-branches/cabal-1.6/ to confirm that it's solved? -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/494#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#494: cabal-install cannot build docs that involve Paths_ ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: low | Milestone: Component: cabal-install tool | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: unknown Ghcversion: | Platform: ---------------------------------+------------------------------------------ Old description:
This was noticed in the filestore repo: http://johnmacfarlane.net/repos/filestore
For various reasons, filestore makes use of Paths_filestore. However, this leads to no documentation being built:
{{{ Resolving dependencies... Configuring filestore-0.2... Preprocessing library filestore-0.2... Building filestore-0.2... [1 of 7] Compiling Paths_filestore ( dist/build/autogen/Paths_filestore.hs, dist/build/Paths_filestore.o ) [1 of 7] Compiling Paths_filestore ( dist/build/autogen/Paths_filestore.hs, dist/build/Paths_filestore.p_o ) [4 of 7] Compiling Data.FileStore.Git ( Data/FileStore/Git.hs, dist/build/Data/FileStore/Git.p_o ) [7 of 7] Compiling Data.FileStore ( Data/FileStore.hs, dist/build/Data/FileStore.p_o ) /usr/bin/ar: creating dist/build/libHSfilestore-0.2.a /usr/bin/ar: creating dist/build/libHSfilestore-0.2_p.a Preprocessing library filestore-0.2... Running Haddock for filestore-0.2... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0 Preprocessing library filestore-0.2... setup: can't find source for module Paths_filestore Installing library in /home/gwern/bin/lib/filestore-0.2/ghc-6.10.1 Registering filestore-0.2... Reading package info from "dist/installed-pkg-config" ... done. Writing new package config file... done. }}}
Note the 'setup: can't find source...'.
However, if we go via 'runhaskell', then things are different:
{{{ gwern@craft:40444~/bin/filestore>runhaskell Setup configure --user && runhaskell Setup haddock [ 3:11PM] Configuring filestore-0.2... Preprocessing library filestore-0.2... Running Haddock for filestore-0.2... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0 Warning: Cannot read /home/gwern/bin/share/doc/Diff-0.1.2/html/Diff.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/Diff-0.1.2/html/Diff.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/QuickCheck/QuickCheck.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/QuickCheck/QuickCheck.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/array/array.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/array/array.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/base/base.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/base/base.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/base/base.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/base/base.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/bytestring/bytestring.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/bytestring/bytestring.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/containers/containers.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/containers/containers.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/datetime-0.1/html/datetime.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/datetime-0.1/html/datetime.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/directory/directory.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/directory/directory.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/filepath/filepath.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/filepath/filepath.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/ghc-prim /ghc-prim.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/ghc-prim/ghc-prim.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/integer/integer.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/integer/integer.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/mtl/mtl.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/mtl/mtl.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/old-locale /old-locale.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/old-locale/old-locale.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/old-time /old-time.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/old-time/old-time.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/parsec/parsec.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/parsec/parsec.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/process/process.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/process/process.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/random/random.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/random/random.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/regex-base-0.93.1/html /regex-base.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/regex- base-0.93.1/html/regex-base.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/regex-posix-0.93.2/html /regex-posix.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/regex- posix-0.93.2/html/regex-posix.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/syb/syb.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/syb/syb.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/time/time.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/time/time.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/ghc/libraries/unix/unix.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/ghc/libraries/unix/unix.haddock" Skipping this interface. Warning: Cannot read /home/gwern/bin/share/doc/xml-1.3.3/html/xml.haddock: "Interface file is of wrong version: /home/gwern/bin/share/doc/xml-1.3.3/html/xml.haddock" Skipping this interface. Warning: filestore-0.2:Data.FileStore.Types: could not find link destinations for: GHC.Base.String GHC.Classes.Eq GHC.Read.Read GHC.Show.Show Data.Typeable.Typeable Data.DateTime.DateTime Data.ByteString.Lazy.Internal.ByteString Data.Maybe.Maybe GHC.Bool.Bool GHC.Exception.Exception GHC.Integer.Internals.Integer GHC.IOBase.IO Warning: filestore-0.2:Data.FileStore.Utils: could not find link destinations for: GHC.IOBase.FilePath Data.Maybe.Maybe GHC.Base.String GHC.IOBase.IO GHC.IOBase.ExitCode Data.ByteString.Lazy.Internal.ByteString GHC.Bool.Bool GHC.Classes.Eq Warning: filestore-0.2:Data.FileStore.Git: could not find link destinations for: GHC.IOBase.FilePath Warning: filestore-0.2:Data.FileStore.Darcs: could not find link destinations for: GHC.IOBase.FilePath Warning: filestore-0.2:Data.FileStore.Generic: could not find link destinations for: GHC.IOBase.IO Data.Either.Either Data.Algorithm.Diff.DI Data.Maybe.Maybe GHC.Base.String GHC.Bool.Bool Documentation created: dist/doc/html/filestore/index.html }}}
Here the docs are indeed built. I am using Cabal-1.7.0 and a month-old or so cabal-install.
The problem with cabal-install was also seen by John MacFarlane.
New description: Saizan: yes, installing that branch and then rebuilding cabal-install does fix the issue - cabal-install then builds filestore's docs correctly. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/494#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#494: cabal-install cannot build docs that involve Paths_ ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: low | Milestone: Component: cabal-install tool | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: unknown Ghcversion: | Platform: ---------------------------------+------------------------------------------ Comment (by guest): Oops. It appears I erased the original description! (I am not too familiar with Trac.) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/494#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#494: cabal-install cannot build docs that involve Paths_ ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: closed Priority: low | Milestone: Component: cabal-install tool | Version: 1.6.0.1 Severity: normal | Resolution: fixed Keywords: | Difficulty: unknown Ghcversion: | Platform: ---------------------------------+------------------------------------------ Changes (by duncan): * status: new => closed * resolution: => fixed Comment: Reported to be already fixed. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/494#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage