Skip to content

Instantly share code, notes, and snippets.

@bbarker
Created August 14, 2020 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbarker/85c48ef4bc9c4165421fc5fcdedfa19a to your computer and use it in GitHub Desktop.
Save bbarker/85c48ef4bc9c4165421fc5fcdedfa19a to your computer and use it in GitHub Desktop.
digest build error
2020-08-14 15:43:18.103387: [error]
-- While building package digest-0.0.1.2 using:
/home/brandon/.stack/setup-exe-cache/x86_64-linux-nix/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.3 --builddir=.stack-work/dist/x86_64-linux-nix/Cabal-3.0.1.0 configure --user --package-db=clear --package-db=global --package-db=/home/brandon/.stack/snapshots/x86_64-linux-nix/3ebf8dac7fa27e6fa53f336faab97ea26576e022e98979a8599858089ea24f93/8.8.3/pkgdb --libdir=/home/brandon/.stack/snapshots/x86_64-linux-nix/3ebf8dac7fa27e6fa53f336faab97ea26576e022e98979a8599858089ea24f93/8.8.3/lib --bindir=/home/brandon/.stack/snapshots/x86_64-linux-nix/3ebf8dac7fa27e6fa53f336faab97ea26576e022e98979a8599858089ea24f93/8.8.3/bin --datadir=/home/brandon/.stack/snapshots/x86_64-linux-nix/3ebf8dac7fa27e6fa53f336faab97ea26576e022e98979a8599858089ea24f93/8.8.3/share --libexecdir=/home/brandon/.stack/snapshots/x86_64-linux-nix/3ebf8dac7fa27e6fa53f336faab97ea26576e022e98979a8599858089ea24f93/8.8.3/libexec --sysconfdir=/home/brandon/.stack/snapshots/x86_64-linux-nix/3ebf8dac7fa27e6fa53f336faab97ea26576e022e98979a8599858089ea24f93/8.8.3/etc --docdir=/home/brandon/.stack/snapshots/x86_64-linux-nix/3ebf8dac7fa27e6fa53f336faab97ea26576e022e98979a8599858089ea24f93/8.8.3/doc/digest-0.0.1.2 --htmldir=/home/brandon/.stack/snapshots/x86_64-linux-nix/3ebf8dac7fa27e6fa53f336faab97ea26576e022e98979a8599858089ea24f93/8.8.3/doc/digest-0.0.1.2 --haddockdir=/home/brandon/.stack/snapshots/x86_64-linux-nix/3ebf8dac7fa27e6fa53f336faab97ea26576e022e98979a8599858089ea24f93/8.8.3/doc/digest-0.0.1.2 --dependency=base=base-4.13.0.0 --dependency=bytestring=bytestring-0.10.10.0 -f-bytestring-in-base --extra-include-dirs=/nix/store/z9hplpp91s3s8k8gsj5wvhnsqpvijz0p-ghc-8.8.3/include --extra-include-dirs=/nix/store/snavv08v6anf36icyzms1j7as802n66z-git-2.25.4/include --extra-include-dirs=/nix/store/xh3bh8nir5d45zk45dz9xxfs2j95cby4-gcc-wrapper-9.2.0/include --extra-include-dirs=/nix/store/s5djfkcawp9ijvjzvs3y0xggd9mkpicf-gmp-6.2.0-dev/include --extra-lib-dirs=/nix/store/z9hplpp91s3s8k8gsj5wvhnsqpvijz0p-ghc-8.8.3/lib --extra-lib-dirs=/nix/store/snavv08v6anf36icyzms1j7as802n66z-git-2.25.4/lib --extra-lib-dirs=/nix/store/xh3bh8nir5d45zk45dz9xxfs2j95cby4-gcc-wrapper-9.2.0/lib --extra-lib-dirs=/nix/store/gldhjyzsj475ymgax9ycv8m1wf6rkc02-gmp-6.2.0/lib --exact-configuration --ghc-option=-fhide-source-paths
Process exited with code: ExitFailure 1
@bbarker
Copy link
Author

bbarker commented Aug 14, 2020

Also with cabal:

Completed    colour-2.3.4 (lib)
Installing   cmark-gfm-0.1.8 (lib)
Completed    cmark-gfm-0.1.8 (lib)

Failed to build digest-0.0.1.2. The failure occurred during the configure
step.
Build log (
/home/brandon/.cabal/logs/ghc-8.6.5/digest-0.0.1.2-95e42f2fbcaad64ed46ea06d5d5bc0d42cadbaeac1612209f413bca915186b9d.log
):
Configuring digest-0.0.1.2...
cabal: Missing dependency on a foreign library:
* Missing (or bad) header file: zlib.h
* Missing (or bad) C library: z
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.

cabal: Failed to build digest-0.0.1.2 (which is required by
exe:arxiv-pandoc-exe from arxiv-pandoc-0.1.0.0). See the build log above for
details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment