Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hlibgit2 Haddock build on hackage is broken #14

Open
dmalikov opened this issue Aug 3, 2013 · 4 comments
Open

hlibgit2 Haddock build on hackage is broken #14

dmalikov opened this issue Aug 3, 2013 · 4 comments
Labels

Comments

@dmalikov
Copy link

dmalikov commented Aug 3, 2013

$> cabal-dev install
Resolving dependencies...
Downloading bindings-DSL-1.0.16...
Configuring bindings-DSL-1.0.16...
Building bindings-DSL-1.0.16...
Preprocessing library bindings-DSL-1.0.16...
[1 of 1] Compiling Bindings         ( Bindings.hs, dist/build/Bindings.o )
In-place registering bindings-DSL-1.0.16...
Running Haddock for bindings-DSL-1.0.16...
Preprocessing library bindings-DSL-1.0.16...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: base-4.6.0.1, ghc-prim-0.3.0.0,
integer-gmp-0.5.0.0
Haddock coverage:
   0% (  0 /  1) in 'Bindings'
Documentation created: dist/doc/html/bindings-DSL/index.html
Installing library in
/home/m/projects/misc/hlibgit2-0.18.0.9/cabal-dev//lib/bindings-DSL-1.0.16/ghc-7.6.3
Registering bindings-DSL-1.0.16...
Installed bindings-DSL-1.0.16
Configuring hlibgit2-0.18.0.9...
Building hlibgit2-0.18.0.9...
Preprocessing library hlibgit2-0.18.0.9...
[ 1 of 49] Compiling Bindings.Libgit2.Windows ( dist/build/Bindings/Libgit2/Windows.hs, dist/build/Bindings/Libgit2/Windows.o )
[ 2 of 49] Compiling Bindings.Libgit2.Version ( dist/build/Bindings/Libgit2/Version.hs, dist/build/Bindings/Libgit2/Version.o )
[ 3 of 49] Compiling Bindings.Libgit2.Common ( dist/build/Bindings/Libgit2/Common.hs, dist/build/Bindings/Libgit2/Common.o )
[ 4 of 49] Compiling Bindings.Libgit2.Errors ( dist/build/Bindings/Libgit2/Errors.hs, dist/build/Bindings/Libgit2/Errors.o )
[ 6 of 49] Compiling Bindings.Libgit2.Strarray ( dist/build/Bindings/Libgit2/Strarray.hs, dist/build/Bindings/Libgit2/Strarray.o )
[ 7 of 49] Compiling Bindings.Libgit2.Threads ( dist/build/Bindings/Libgit2/Threads.hs, dist/build/Bindings/Libgit2/Threads.o )
[ 8 of 49] Compiling Bindings.Libgit2.Types ( dist/build/Bindings/Libgit2/Types.hs, dist/build/Bindings/Libgit2/Types.o )
[ 9 of 49] Compiling Bindings.Libgit2.Config ( dist/build/Bindings/Libgit2/Config.hs, dist/build/Bindings/Libgit2/Config.o )
[10 of 49] Compiling Bindings.Libgit2.Ignore ( dist/build/Bindings/Libgit2/Ignore.hs, dist/build/Bindings/Libgit2/Ignore.o )
[11 of 49] Compiling Bindings.Libgit2.Oid ( dist/build/Bindings/Libgit2/Oid.hs, dist/build/Bindings/Libgit2/Oid.o )
[12 of 49] Compiling Bindings.Libgit2.Graph ( dist/build/Bindings/Libgit2/Graph.hs, dist/build/Bindings/Libgit2/Graph.o )
[13 of 49] Compiling Bindings.Libgit2.Indexer ( dist/build/Bindings/Libgit2/Indexer.hs, dist/build/Bindings/Libgit2/Indexer.o )
[14 of 49] Compiling Bindings.Libgit2.Index ( dist/build/Bindings/Libgit2/Index.hs, dist/build/Bindings/Libgit2/Index.o )
[15 of 49] Compiling Bindings.Libgit2.Merge ( dist/build/Bindings/Libgit2/Merge.hs, dist/build/Bindings/Libgit2/Merge.o )
[16 of 49] Compiling Bindings.Libgit2.Net ( dist/build/Bindings/Libgit2/Net.hs, dist/build/Bindings/Libgit2/Net.o )
[17 of 49] Compiling Bindings.Libgit2.Notes ( dist/build/Bindings/Libgit2/Notes.hs, dist/build/Bindings/Libgit2/Notes.o )
[18 of 49] Compiling Bindings.Libgit2.Object ( dist/build/Bindings/Libgit2/Object.hs, dist/build/Bindings/Libgit2/Object.o )
[19 of 49] Compiling Bindings.Libgit2.OdbBackend ( dist/build/Bindings/Libgit2/OdbBackend.hs, dist/build/Bindings/Libgit2/OdbBackend.o )
[20 of 49] Compiling Bindings.Libgit2.Odb ( dist/build/Bindings/Libgit2/Odb.hs, dist/build/Bindings/Libgit2/Odb.o )
[21 of 49] Compiling Bindings.Libgit2.Pack ( dist/build/Bindings/Libgit2/Pack.hs, dist/build/Bindings/Libgit2/Pack.o )
[22 of 49] Compiling Bindings.Libgit2.Push ( dist/build/Bindings/Libgit2/Push.hs, dist/build/Bindings/Libgit2/Push.o )
[23 of 49] Compiling Bindings.Libgit2.Reflog ( dist/build/Bindings/Libgit2/Reflog.hs, dist/build/Bindings/Libgit2/Reflog.o )
[24 of 49] Compiling Bindings.Libgit2.Refs ( dist/build/Bindings/Libgit2/Refs.hs, dist/build/Bindings/Libgit2/Refs.o )
[25 of 49] Compiling Bindings.Libgit2.RefdbBackend ( dist/build/Bindings/Libgit2/RefdbBackend.hs, dist/build/Bindings/Libgit2/RefdbBackend.o )
[26 of 49] Compiling Bindings.Libgit2.Refdb ( dist/build/Bindings/Libgit2/Refdb.hs, dist/build/Bindings/Libgit2/Refdb.o )
[27 of 49] Compiling Bindings.Libgit2.Refspec ( dist/build/Bindings/Libgit2/Refspec.hs, dist/build/Bindings/Libgit2/Refspec.o )
[28 of 49] Compiling Bindings.Libgit2.Repository ( dist/build/Bindings/Libgit2/Repository.hs, dist/build/Bindings/Libgit2/Repository.o )
[29 of 49] Compiling Bindings.Libgit2.Reset ( dist/build/Bindings/Libgit2/Reset.hs, dist/build/Bindings/Libgit2/Reset.o )
[30 of 49] Compiling Bindings.Libgit2.Revparse ( dist/build/Bindings/Libgit2/Revparse.hs, dist/build/Bindings/Libgit2/Revparse.o )
[31 of 49] Compiling Bindings.Libgit2.Revwalk ( dist/build/Bindings/Libgit2/Revwalk.hs, dist/build/Bindings/Libgit2/Revwalk.o )
[32 of 49] Compiling Bindings.Libgit2.Signature ( dist/build/Bindings/Libgit2/Signature.hs, dist/build/Bindings/Libgit2/Signature.o )
[33 of 49] Compiling Bindings.Libgit2.Stash ( dist/build/Bindings/Libgit2/Stash.hs, dist/build/Bindings/Libgit2/Stash.o )
[34 of 49] Compiling Bindings.Libgit2.Status ( dist/build/Bindings/Libgit2/Status.hs, dist/build/Bindings/Libgit2/Status.o )
[35 of 49] Compiling Bindings.Libgit2.Submodule ( dist/build/Bindings/Libgit2/Submodule.hs, dist/build/Bindings/Libgit2/Submodule.o )
[36 of 49] Compiling Bindings.Libgit2.Tag ( dist/build/Bindings/Libgit2/Tag.hs, dist/build/Bindings/Libgit2/Tag.o )
[37 of 49] Compiling Bindings.Libgit2.Trace ( dist/build/Bindings/Libgit2/Trace.hs, dist/build/Bindings/Libgit2/Trace.o )
[38 of 49] Compiling Bindings.Libgit2.Transport ( dist/build/Bindings/Libgit2/Transport.hs, dist/build/Bindings/Libgit2/Transport.o )
[39 of 49] Compiling Bindings.Libgit2.CredHelpers ( dist/build/Bindings/Libgit2/CredHelpers.hs, dist/build/Bindings/Libgit2/CredHelpers.o )
[40 of 49] Compiling Bindings.Libgit2.Remote ( dist/build/Bindings/Libgit2/Remote.hs, dist/build/Bindings/Libgit2/Remote.o )
[41 of 49] Compiling Bindings.Libgit2.Tree ( dist/build/Bindings/Libgit2/Tree.hs, dist/build/Bindings/Libgit2/Tree.o )
[42 of 49] Compiling Bindings.Libgit2.Diff ( dist/build/Bindings/Libgit2/Diff.hs, dist/build/Bindings/Libgit2/Diff.o )
[43 of 49] Compiling Bindings.Libgit2.Commit ( dist/build/Bindings/Libgit2/Commit.hs, dist/build/Bindings/Libgit2/Commit.o )
[44 of 49] Compiling Bindings.Libgit2.Checkout ( dist/build/Bindings/Libgit2/Checkout.hs, dist/build/Bindings/Libgit2/Checkout.o )
[45 of 49] Compiling Bindings.Libgit2.Clone ( dist/build/Bindings/Libgit2/Clone.hs, dist/build/Bindings/Libgit2/Clone.o )
[46 of 49] Compiling Bindings.Libgit2.Branch ( dist/build/Bindings/Libgit2/Branch.hs, dist/build/Bindings/Libgit2/Branch.o )
[47 of 49] Compiling Bindings.Libgit2.Blob ( dist/build/Bindings/Libgit2/Blob.hs, dist/build/Bindings/Libgit2/Blob.o )
[48 of 49] Compiling Bindings.Libgit2.Attr ( dist/build/Bindings/Libgit2/Attr.hs, dist/build/Bindings/Libgit2/Attr.o )
[49 of 49] Compiling Bindings.Libgit2 ( Bindings/Libgit2.hs, dist/build/Bindings/Libgit2.o )
In-place registering hlibgit2-0.18.0.9...
Running Haddock for hlibgit2-0.18.0.9...
Preprocessing library hlibgit2-0.18.0.9...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: array-0.4.0.1, base-4.6.0.1,
bytestring-0.10.0.2, deepseq-1.3.0.1, ghc-prim-0.3.0.0, integer-gmp-0.5.0.0
Haddock coverage:
   0% (  0 /  1) in 'Bindings.Libgit2.Windows'
   0% (  0 /  1) in 'Bindings.Libgit2.Version'
   0% (  0 / 17) in 'Bindings.Libgit2.Common'
   0% (  0 / 50) in 'Bindings.Libgit2.Errors'
   0% (  0 /  3) in 'Bindings.Libgit2.Message'
   0% (  0 /  8) in 'Bindings.Libgit2.Strarray'
   0% (  0 /  5) in 'Bindings.Libgit2.Threads'

Bindings/Libgit2/Types.hsc:39:1: parse error on input `{'
Installing library in
/home/m/projects/misc/hlibgit2-0.18.0.9/cabal-dev//lib/hlibgit2-0.18.0.9/ghc-7.6.3
Registering hlibgit2-0.18.0.9...
Installed hlibgit2-0.18.0.9
@jwiegley
Copy link
Owner

jwiegley commented Aug 4, 2013

I just tried building from Hackage with 7.6.3 and it worked fine. Can you describe your environment a bit more?

@dmalikov
Copy link
Author

dmalikov commented Aug 4, 2013

$> cabal-dev --version
cabal-dev 0.9.2
built with Cabal 1.16.0.3
$> ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3
$> gcc -v      
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --enable-lto --enable-nls --without-included-gettext --with-system-zlib --enable-obsolete --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/python --enable-checking=release --disable-libgcj --enable-libstdcxx-time --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-targets=all --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.6.3 p1.11, pie-0.5.2'
Thread model: posix
gcc version 4.6.3 (Gentoo 4.6.3 p1.11, pie-0.5.2) 

@jwiegley
Copy link
Owner

jwiegley commented Aug 4, 2013

Ah, you mean the Haddock build is broken! This is an error you can ignore, actually. I'll keep this issue open as a reminder to just hide all of the modules from Haddock entirely, since I'm not going to write documentation for them.

@victoredwardocallaghan
Copy link

Let me know if you ever work out how to actually do that? I've had the same problem of trying to tell Haddock to ignore them and its still attempting to give me rubbish coverage results. Really annoying.

Kind Regards,
Edward.
P.S. dmalikov nice to see you around the wood works, hope your well!

@jwiegley jwiegley reopened this Feb 15, 2017
@jwiegley jwiegley changed the title hlibgit2-0.18.0.9 on hackage is broken hlibgit2 Haddock build on hackage is broken Feb 15, 2017
@jwiegley jwiegley added the bug label Feb 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants