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

Building base-noprelude fails during haddock phase with no modules to create documentation for #372

Closed
zhenyavinogradov opened this issue Dec 19, 2019 · 6 comments

Comments

@zhenyavinogradov
Copy link
Contributor

zhenyavinogradov commented Dec 19, 2019

Building base-noprelude: haskell-nix.snapshots."lts-14.15".base-noprelude.components.library
fails during haddockPhase:

Preprocessing library for base-noprelude-4.12.0.0..
Running Haddock on library for base-noprelude-4.12.0.0..
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: base-4.12.0.0, ghc-prim-0.5.3,
integer-gmp-1.0.2.0
Warning: Haddocks are being requested, but there aren't any modules given to
create documentation for.
cp: cannot stat 'dist/doc/html/base-noprelude': No such file or directory
builder for '/nix/store/y6qaijb8m345dz3fvad16yf92s5nyw69-base-noprelude-4.12.0.0-lib-base-noprelude.drv' failed with exit code 1

Probably related to #359

@angerman
Copy link
Collaborator

@balsoft would you mind taking a look?

@balsoft
Copy link
Contributor

balsoft commented Dec 19, 2019

Yep, this is my fault. I'll look at it right now.

@zhenyavinogradov
Copy link
Contributor Author

There is a commit by @hamishmack in a separate branch which modifies the haddock phase, maybe it's fixed there: bebd3f1

@zhenyavinogradov
Copy link
Contributor Author

There are no problems with that commit applied, this issue should be closed when the branch is merged

@hamishmack
Copy link
Collaborator

#371 has been merged

@phile314
Copy link

FYI, when using a Cabal version before 2.4 this gets triggered by the cabal bug haskell/cabal#5232 . I have seen this happening e.g. for fail and bytestring-builder. I guess it is not worth working around this in haskell.nix, as only old Cabal versions are affected.

For completeness, here is an example log:

<3>unpacking sources
<3>unpacking source archive /nix/store/y110skwr25d86ma19zvv363sapakvch9-fail-4.9.0.0.tar.gz
<3>source root is fail-4.9.0.0
<3>setting SOURCE_DATE_EPOCH to timestamp 1453388665 of file fail-4.9.0.0/Setup.hs
<3>patching sources
<3>configuring
<3>Configure flags:
<3>--prefix=/nix/store/y4nf4x6nyxlj6ifbrjvk3m7z0w2xdmv4-fail-4.9.0.0-lib-fail lib:fail --package-db=clear --package-db=/nix/store/2brp0hi7ffb6982ir90y0cc8a6sjzhs5-fail-4.9.0.0-lib-fail-config/package.conf.d --exact-configuration --dependency=rts=rts --dependency=ghc-prim=ghc-prim-0.5.2.0 --dependency=integer-gmp=integer-gmp-1.0.2.0 --dependency=base=base-4.11.1.0 --dependency=deepseq=deepseq-1.4.3.0 --dependency=array=array-0.5.2.0 --dependency=ghc-boot-th=ghc-boot-th-8.4.4 --dependency=pretty=pretty-1.1.3.6 --dependency=template-haskell=template-haskell-2.13.0.0 --dependency=ghc-boot=ghc-boot-8.4.4 --dependency=ghc=ghc-8.4.4 --dependency=Cabal=Cabal-2.2.0.1 --dependency=array=array-0.5.2.0 --dependency=binary=binary-0.8.5.1 --dependency=bytestring=bytestring-0.10.8.2 --dependency=containers=containers-0.5.11.0 --dependency=directory=directory-1.3.1.5 --dependency=filepath=filepath-1.4.2 --dependency=ghc-boot=ghc-boot-8.4.4 --dependency=ghc-compact=ghc-compact-0.1.0.0 --dependency=ghc-prim=ghc-prim-0.5.2.0 --dependency=hpc=hpc-0.6.0.3 --dependency=mtl=mtl-2.2.2 --dependency=parsec=parsec-3.1.13.0 --dependency=process=process-1.6.3.0 --dependency=text=text-1.2.3.1 --dependency=time=time-1.8.0.2 --dependency=transformers=transformers-0.5.5.0 --dependency=unix=unix-2.7.2.2 --dependency=xhtml=xhtml-3000.2.2.1 --with-ghc=ghc --with-ghc-pkg=ghc-pkg --with-hsc2hs=hsc2hs --with-gcc=cc --with-ld=ld.gold --ghc-option=-optl-fuse-ld=gold --ld-option=-fuse-ld=gold --with-ar=ar --with-strip=strip --disable-executable-stripping --disable-library-stripping --disable-library-profiling --disable-executable-profiling --enable-static --enable-shared --docdir=/nix/store/9rdwgdv2i4k7g20inaxlk4jvdcg5f43z-fail-4.9.0.0-lib-fail-doc/share/doc/fail --enable-split-sections
<3>Configuring library for fail-4.9.0.0..
<3>Warning: The flag --disable-executable-profiling is deprecated. Please use
<3>--disable-profiling instead.
<3>building
<3>Preprocessing library for fail-4.9.0.0..
<3>Building library for fail-4.9.0.0..
<3>haddockPhase
<3>Preprocessing library for fail-4.9.0.0..
<3>Running Haddock on library for fail-4.9.0.0..
<3>Warning: --source-* options are ignored when --hyperlinked-source is enabled.
<3>haddock: No input file(s).
<3>builder for '/nix/store/a4h4ijfdrdniydgsnmf4a6h6yhdys80l-fail-4.9.0.0-lib-fail.drv' failed with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants