Bug#1010025: ghc: Haddock fails with internal error when calculating transitive dependencies

Scott Talbert swt at techie.net
Fri Apr 22 14:43:20 BST 2022


Package: ghc
Version: 8.8.4-3
Severity: normal

Dear Maintainer,

While attempting to package doctest-parallel for Debian, the following 
error was encountered during build:

Preprocessing library 'spectests-modules' for doctest-parallel-0.2..
Running Haddock on library 'spectests-modules' for doctest-parallel-0.2..
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: dlist-0.8.0.8, hashable-1.3.0.0,
transformers-compat-0.6.5
Warning: --source-* options are ignored when --hyperlinked-source is enabled.
CallStack (from HasCallStack):
  withTempDirectoryEx, called at libraries/Cabal/Cabal/Distribution/Simple/Haddock.hs:273:11 in Cabal-3.0.1.0:Distribution.Simple.Haddock
  haddock, called at libraries/Cabal/Cabal/Distribution/Simple.hs:636:35 in Cabal-3.0.1.0:Distribution.Simple
  haddockHook, called at libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs:139:5 in Cabal-3.0.1.0:Distribution.Simple.UserHooks
  cmd_hook, called at libraries/Cabal/Cabal/Distribution/Simple.hs:497:9 in Cabal-3.0.1.0:Distribution.Simple
  cmd_hook, called at libraries/Cabal/Cabal/Distribution/Simple.hs:516:4 in Cabal-3.0.1.0:Distribution.Simple
  hookedActionWithArgs, called at libraries/Cabal/Cabal/Distribution/Simple.hs:495:5 in Cabal-3.0.1.0:Distribution.Simple
  hookedAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:360:3 in Cabal-3.0.1.0:Distribution.Simple
  haddockAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:187:50 in Cabal-3.0.1.0:Distribution.Simple
  defaultMainHelper, called at libraries/Cabal/Cabal/Distribution/Simple.hs:116:27 in Cabal-3.0.1.0:Distribution.Simple
  defaultMain, called at Setup.lhs:3:10 in main:Main
hlibrary.setup: internal error when calculating transitive package
dependencies.
Debug info: []

 at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 106.
	Debian::Debhelper::Buildsystem::Haskell::Recipes::run_quiet("debian/hlibrary.setup", "haddock", "--builddir=dist-ghc", "--with-haddock=/usr/bin/haddock", "--with-ghc=ghc", "--verbose=2", "--html", "--hoogle", ...) called at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 130
	Debian::Debhelper::Buildsystem::Haskell::Recipes::run("debian/hlibrary.setup", "haddock", "--builddir=dist-ghc", "--with-haddock=/usr/bin/haddock", "--with-ghc=ghc", "--verbose=2", "--html", "--hoogle", ...) called at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 723
	Debian::Debhelper::Buildsystem::Haskell::Recipes::haddock_recipe() called at -e line 1
make: *** [/usr/share/cdbs/1/class/hlibrary.mk:152: build-ghc-stamp] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2

This is likely related to the fact that doctest-parallel contains 
internal dependencies.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.17.0-1-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ghc depends on:
ii  dpkg                              1.21.7
ii  gcc                               4:11.2.0-2
ii  libbsd-dev                        0.11.6-1
ii  libc6                             2.33-7
ii  libc6-dev                         2.33-7
ii  libffi-dev                        3.4.2-4
ii  libffi8                           3.4.2-4
ii  libgmp-dev                        2:6.2.1+dfsg-3
ii  libgmp10                          2:6.2.1+dfsg-3
ii  libncurses-dev [libncurses5-dev]  6.3-2
ii  libncurses5-dev                   6.3-2
ii  libtinfo6                         6.3-2

ghc recommends no packages.

Versions of packages ghc suggests:
ii  ghc-doc      8.8.4-3
ii  ghc-prof     8.8.4-3
pn  haskell-doc  <none>
pn  llvm-11      <none>
ii  perl         5.34.0-4

-- no debconf information



More information about the Pkg-haskell-maintainers mailing list