Opened 5 years ago

Last modified 2 years ago

#8981 new bug

ghc-pkg complains about missing haddock interface files

Reported by: thoughtpolice Owned by:
Priority: normal Milestone:
Component: ghc-pkg Version: 7.8.1
Keywords: Cc: Fuuzetsu, sol@…, conal@…
Operating System: Unknown/Multiple Architecture: x86_64 (amd64)
Type of failure: Incorrect result at runtime Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

As Conal reported on the mailing list[1], ghc-pkg check on Mavericks allegedly returns:

bash-3.2$ ghc-pkg check
    Warning: haddock-interfaces: /Users/conal/.cabal/share/doc/x86_64-osx-ghc-7.8.1/uniplate-1.6.12/html/uniplate.haddock doesn't exist or isn't a file
    Warning: haddock-interfaces: /Users/conal/.cabal/share/doc/x86_64-osx-ghc-7.8.1/polyparse-1.9/html/polyparse.haddock doesn't exist or isn't a file
    Warning: haddock-interfaces: /Users/conal/.cabal/share/doc/x86_64-osx-ghc-7.8.1/ghc-syb-utils-0.2.1.2/html/ghc-syb-utils.haddock doesn't exist or isn't a file
    Warning: haddock-interfaces: /Users/conal/.cabal/share/doc/x86_64-osx-ghc-7.8.1/constraints-0.3.5/html/constraints.haddock doesn't exist or isn't a file
    Warning: haddock-html: /Users/conal/.cabal/share/doc/x86_64-osx-ghc-7.8.1/constraints-0.3.5/html doesn't exist or isn't a directory
    Warning: haddock-interfaces: /Users/conal/.cabal/share/doc/x86_64-osx-ghc-7.8.1/newtype-0.2/html/newtype.haddock doesn't exist or isn't a file
    Warning: haddock-html: /Users/conal/.cabal/share/doc/x86_64-osx-ghc-7.8.1/newtype-0.2/html doesn't exist or isn't a directory

It's not fatal, but makes the output much more annoying. I figured this would have been caught by validate or somesuch, but apparently not.

Marking for 7.8.2. I'm looking into this soon.

[1]http://www.haskell.org/pipermail/glasgow-haskell-users/2014-April/024846.html

Change History (12)

comment:1 Changed 5 years ago by SimonHengel

Cc: sol@… added

comment:2 Changed 5 years ago by thoughtpolice

Milestone: 7.8.27.8.3

comment:3 Changed 5 years ago by conal

Cc: conal@… added

comment:4 Changed 5 years ago by thoughtpolice

Milestone: 7.8.37.8.4

Moving to 7.8.4.

comment:5 Changed 4 years ago by thoughtpolice

Milestone: 7.8.47.10.1

Moving (in bulk) to 7.10.4

comment:6 Changed 4 years ago by thomie

Component: Compilerghc-pkg
Operating System: MacOS XUnknown/Multiple

I have the same problem on Ubuntu, with Haskell platform 2014.02 installed.

# First remove .cabal and .ghc, then:
$ cabal install random
...
$ ghc-pkg check
Warning: haddock-interfaces: /home/thomas/.cabal/share/doc/x86_64-linux-ghc-7.8.3/random-1.1/html/random.haddock doesn't exist or isn't a file
Warning: haddock-html: /home/thomas/.cabal/share/doc/x86_64-linux-ghc-7.8.3/random-1.1/html doesn't exist or isn't a directory

Using cabal install random --enable-documentation instead makes the warnings go away.

comment:7 Changed 4 years ago by thoughtpolice

Milestone: 7.10.17.12.1

Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

comment:8 Changed 4 years ago by thomie

Keywords: newcomer added; ghc-pkg removed

Look at the utils/ghc-pkg directory. A solution might need coordination with cabal.

Once this is fixed, try removing the ignore_stderr function from the ghcpkg02 test in testsuite/tests/cabal/all.T.

Last edited 2 years ago by thomie (previous) (diff)

comment:9 Changed 4 years ago by thomie

See #10305 for an instance of this bug when running validate or a normal ghc build with HADDOCK_DOCS=NO.

comment:10 Changed 3 years ago by thoughtpolice

Milestone: 7.12.18.0.1

Milestone renamed

comment:11 Changed 3 years ago by thomie

Milestone: 8.0.1

comment:12 Changed 3 years ago by thomie

Keywords: newcomer removed

Not a very fun task, and no takers for 1 year.

Note: See TracTickets for help on using tickets.