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

haddock-library's internal attoparsec library cannot be found - broken package #4071

Closed
mgsloan opened this issue Jun 9, 2018 · 12 comments
Closed

Comments

@mgsloan
Copy link
Contributor

mgsloan commented Jun 9, 2018

General summary

On the development version of stack, I am encountering build issues with haddock-library.
#3899 is a related issue about the caching of internal library dependencies. In particular, it is the same context where I am running into an issue, hakyll's dependency on haddock-library.

Steps to reproduce

  • stack --resolver lts-11.11 build hakyll

Expected

  • Builds!

Actual

(Note, this log is from a re-run of the build, after doing a full build)

Version 1.8.0, Git revision 33d6eddb065f26ea31936434eff062c60aab1d6a (dirty) (5867 commits) x86_64 hpack-0.28.2
2018-06-09 12:36:24.879429: [debug] Checking for project config at: /home/mgsloan/fpco/test-stack/stack.yaml
@(src/Stack/Config.hs:850:9)
2018-06-09 12:36:24.879585: [debug] Checking for project config at: /home/mgsloan/fpco/stack.yaml
@(src/Stack/Config.hs:850:9)
2018-06-09 12:36:24.879648: [debug] Checking for project config at: /home/mgsloan/stack.yaml
@(src/Stack/Config.hs:850:9)
2018-06-09 12:36:24.879686: [debug] Checking for project config at: /home/stack.yaml
@(src/Stack/Config.hs:850:9)
2018-06-09 12:36:24.879729: [debug] Checking for project config at: /stack.yaml
@(src/Stack/Config.hs:850:9)
2018-06-09 12:36:24.879779: [debug] No project config file found, using defaults.
@(src/Stack/Config.hs:880:13)
2018-06-09 12:36:24.880521: [debug] Using resolver: lts-11.11 specified on command line
@(src/Stack/Config.hs:546:7)
2018-06-09 12:36:24.880603: [debug] Run from outside a project, using implicit global project config
@(src/Stack/Config.hs:570:13)
2018-06-09 12:36:24.880842: [debug] Decoding build plan from: /home/mgsloan/.stack/build-plan/lts-11.11.yaml
@(src/Stack/Snapshot.hs:164:5)
2018-06-09 12:36:24.880896: [debug] Trying to decode /home/mgsloan/.stack/build-plan-cache/lts-11.11.cache
@(src/Stack/Snapshot.hs:156:32)
2018-06-09 12:36:24.884756: [debug] Success decoding /home/mgsloan/.stack/build-plan-cache/lts-11.11.cache
@(src/Stack/Snapshot.hs:156:32)
2018-06-09 12:36:24.885549: [debug] Run process: /sbin/ldconfig -p
@(src/Stack/Setup.hs:580:22)
2018-06-09 12:36:24.886938: [debug] Process finished in 1ms: /sbin/ldconfig -p
@(src/Stack/Setup.hs:580:22)
2018-06-09 12:36:24.887333: [debug] Found shared library libtinfo.so.5 in 'ldconfig -p' output
@(src/Stack/Setup.hs:589:29)
2018-06-09 12:36:24.887649: [debug] Did not find shared library libtinfo.so.6
@(src/Stack/Setup.hs:603:38)
2018-06-09 12:36:24.887739: [debug] Did not find shared library libncursesw.so.6
@(src/Stack/Setup.hs:603:38)
2018-06-09 12:36:24.887798: [debug] Found shared library libgmp.so.10 in 'ldconfig -p' output
@(src/Stack/Setup.hs:589:29)
2018-06-09 12:36:24.887895: [debug] Did not find shared library libgmp.so.3
@(src/Stack/Setup.hs:603:38)
2018-06-09 12:36:24.887915: [debug] Potential GHC builds: standard
@(src/Stack/Setup.hs:632:9)
2018-06-09 12:36:24.887972: [debug] Found already installed GHC builds: standard
@(src/Stack/Setup.hs:458:13)
2018-06-09 12:36:24.888536: [debug] Getting global package database location
@(src/Stack/GhcPkg.hs:47:5)
2018-06-09 12:36:24.888648: [debug] Run process: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --no-user-package-db list --global
@(src/Stack/GhcPkg.hs:76:10)
2018-06-09 12:36:24.888916: [debug] Asking GHC for its version
@(src/Stack/Setup/Installed.hs:98:13)
2018-06-09 12:36:24.888969: [debug] Run process: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc --numeric-version
@(src/Stack/Setup/Installed.hs:99:19)
2018-06-09 12:36:24.889200: [debug] Getting Cabal package version
@(src/Stack/GhcPkg.hs:180:5)
2018-06-09 12:36:24.889332: [debug] Run process: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(src/Stack/GhcPkg.hs:76:10)
2018-06-09 12:36:24.902467: [debug] Process finished in 13ms: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(src/Stack/GhcPkg.hs:76:10)
2018-06-09 12:36:24.902610: [debug] Process finished in 14ms: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --no-user-package-db list --global
@(src/Stack/GhcPkg.hs:76:10)
2018-06-09 12:36:24.916064: [debug] Process finished in 27ms: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc --numeric-version
@(src/Stack/Setup/Installed.hs:99:19)
2018-06-09 12:36:24.916189: [debug] GHC version is: ghc-8.2.2
@(src/Stack/Setup/Installed.hs:102:13)
2018-06-09 12:36:24.916293: [debug] Resolving package entries
@(src/Stack/Setup.hs:256:5)
2018-06-09 12:36:24.916389: [debug] Trying to decode /home/mgsloan/.stack/loaded-snapshot-cache/x86_64-linux/ghc-8.2.2/lts-11.11.cache
@(src/Stack/Snapshot.hs:384:9)
2018-06-09 12:36:24.940484: [debug] Success decoding /home/mgsloan/.stack/loaded-snapshot-cache/x86_64-linux/ghc-8.2.2/lts-11.11.cache
@(src/Stack/Snapshot.hs:384:9)
2018-06-09 12:36:24.941298: [debug] Starting to execute command inside EnvConfig
@(src/Stack/Runners.hs:171:18)
2018-06-09 12:36:24.941352: [debug] Parsing the targets
@(src/Stack/Build/Target.hs:461:3)
2018-06-09 12:36:24.951632: [debug] Finding out which packages are already installed
@(src/Stack/Build/Installed.hs:56:5)
2018-06-09 12:36:24.952030: [debug] Run process: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(src/Stack/Prelude.hs:123:3)
2018-06-09 12:36:24.974893: [debug] Process finished in 23ms: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(src/Stack/Prelude.hs:123:3)
2018-06-09 12:36:24.975082: [debug] Ignoring package haskeline due to wanting version 0.7.4.2 instead of 0.7.4.0
@(src/Stack/Build/Installed.hs:184:5)
2018-06-09 12:36:24.975350: [debug] Ignoring package Cabal due to wanting version 2.0.1.1 instead of 2.0.1.0
@(src/Stack/Build/Installed.hs:184:5)
2018-06-09 12:36:24.975491: [debug] Run process: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --user --no-user-package-db --package-db /home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/pkgdb dump --expand-pkgroot
@(src/Stack/Prelude.hs:123:3)
2018-06-09 12:36:25.039540: [debug] Process finished in 64ms: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --user --no-user-package-db --package-db /home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/pkgdb dump --expand-pkgroot
@(src/Stack/Prelude.hs:123:3)
2018-06-09 12:36:25.040936: [debug] Run process: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --user --no-user-package-db --package-db /home/mgsloan/.stack/global-project/.stack-work/install/x86_64-linux/lts-11.11/8.2.2/pkgdb dump --expand-pkgroot
@(src/Stack/Prelude.hs:123:3)
2018-06-09 12:36:25.053306: [debug] Process finished in 12ms: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --user --no-user-package-db --package-db /home/mgsloan/.stack/global-project/.stack-work/install/x86_64-linux/lts-11.11/8.2.2/pkgdb dump --expand-pkgroot
@(src/Stack/Prelude.hs:123:3)
2018-06-09 12:36:25.053542: [debug] Constructing the build plan
@(src/Stack/Build/ConstructPlan.hs:187:5)
2018-06-09 12:36:25.055560: [debug] Trying to decode /home/mgsloan/.stack/indices/Hackage/01-index.cache
@(src/Stack/PackageIndex.hs:411:23)
2018-06-09 12:36:25.190541: [debug] Success decoding /home/mgsloan/.stack/indices/Hackage/01-index.cache
@(src/Stack/PackageIndex.hs:411:23)
2018-06-09 12:36:25.206803: [debug] Checking if we are going to build multiple executables with the same name
@(src/Stack/Build.hs:177:5)
2018-06-09 12:36:25.206909: [debug] Executing the build plan
@(src/Stack/Build/Execute.hs:491:5)
2018-06-09 12:36:25.207609: [debug] Getting global package database location
@(src/Stack/GhcPkg.hs:47:5)
2018-06-09 12:36:25.207667: [debug] Run process: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --no-user-package-db list --global
@(src/Stack/GhcPkg.hs:76:10)
2018-06-09 12:36:25.222406: [debug] Process finished in 15ms: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --no-user-package-db list --global
@(src/Stack/GhcPkg.hs:76:10)
Progress 0/4������������            ������������2018-06-09 12:36:25.222984: [info] haddock-library-1.4.5: using precompiled package
@(src/Stack/Build/Execute.hs:873:23)
Progress 0/4������������            ������������2018-06-09 12:36:25.223160: [debug] Run process: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg unregister --force haddock-library-1.4.5
@(src/Stack/Prelude.hs:147:10)
Progress 0/4������������            ������������2018-06-09 12:36:25.271459: [debug] Process finished in 48ms: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg unregister --force haddock-library-1.4.5
@(src/Stack/Prelude.hs:147:10)
Progress 0/4������������            ������������2018-06-09 12:36:25.271621: [debug] Run process: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg register --force /home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.7/8.2.2/pkgdb/haddock-library-1.4.5-uQdrVGi1uKLD22IlKGc6n.conf
@(src/Stack/Build/Execute.hs:1320:26)
Progress 0/4������������            ������������2018-06-09 12:36:25.319990: [debug] Process finished in 48ms: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg register --force /home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.7/8.2.2/pkgdb/haddock-library-1.4.5-uQdrVGi1uKLD22IlKGc6n.conf
@(src/Stack/Build/Execute.hs:1320:26)
Progress 0/4������������            ������������2018-06-09 12:36:25.320175: [debug] Run process: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --user --no-user-package-db --package-db /home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/pkgdb describe --simple-output haddock-library --expand-pkgroot
@(src/Stack/Prelude.hs:123:3)
Progress 0/4������������            ������������2018-06-09 12:36:25.349162: [debug] Process finished in 29ms: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --user --no-user-package-db --package-db /home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/pkgdb describe --simple-output haddock-library --expand-pkgroot
@(src/Stack/Prelude.hs:123:3)
Progress 0/4������������            ������������2018-06-09 12:36:25.349523: [debug] Encoding /home/mgsloan/.stack/global-project/.stack-work/install/x86_64-linux/lts-11.11/8.2.2/flag-cache/haddock-library-1.4.5-uQdrVGi1uKLD22IlKGc6n
@(src/Stack/Build/Cache.hs:212:7)
Progress 0/4������������            ������������2018-06-09 12:36:25.349921: [debug] Finished writing /home/mgsloan/.stack/global-project/.stack-work/install/x86_64-linux/lts-11.11/8.2.2/flag-cache/haddock-library-1.4.5-uQdrVGi1uKLD22IlKGc6n
@(src/Stack/Build/Cache.hs:212:7)
Progress 0/4������������            ������������Progress 1/4: pandoc-2.1.2��������������������������                          ��������������������������2018-06-09 12:36:25.350340: [debug] Exception ignored when attempting to load /home/mgsloan/.stack/precompiled/x86_64-linux/ghc-8.2.2/2.0.1.0/pandoc-2.1.2@sha256:ab749284e86214c57659371ac580b803c9b638b1f361666fe2089fb95a7965ee,30103/k6qFW57ttKnlM86V2LsiMZj7YkRMHfuqXM6HBOL6WUI=: /home/mgsloan/.stack/precompiled/x86_64-linux/ghc-8.2.2/2.0.1.0/pandoc-2.1.2@sha256:ab749284e86214c57659371ac580b803c9b638b1f361666fe2089fb95a7965ee,30103/k6qFW57ttKnlM86V2LsiMZj7YkRMHfuqXM6HBOL6WUI=: openBinaryFile: does not exist (No such file or directory)
@(src/Stack/Build/Cache.hs:360:16)
Progress 1/4: pandoc-2.1.2��������������������������                          ��������������������������2018-06-09 12:36:25.531828: [info] pandoc-2.1.2: configure
@(src/Stack/Build/Execute.hs:873:23)
Progress 1/4: pandoc-2.1.2��������������������������                          ��������������������������2018-06-09 12:36:25.532497: [debug] Run process within /tmp/stack12337/pandoc-2.1.2/: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-8.2.2 --make -odir /tmp/stack12337/pandoc-2.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup -hidir /tmp/stack12337/pandoc-2.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup -i -i. -clear-package-db -global-package-db -package-db=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/pkgdb -package-db=/home/mgsloan/.stack/global-project/.stack-work/install/x86_64-linux/lts-11.11/8.2.2/pkgdb -hide-all-packages -package-id=Cabal-2.0.1.1-ARIl7MGNKZFBAH1HVzpC6s -package-id=base-4.10.1.0 -optP-include -optP/tmp/stack12337/pandoc-2.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/setup_macros.h /tmp/stack12337/pandoc-2.1.2/Setup.hs /home/mgsloan/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -main-is StackSetupShim.mainOverride -o /tmp/stack12337/pandoc-2.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/setup -threaded
@(src/Stack/Build/Execute.hs:1133:29)
Progress 1/4: pandoc-2.1.2��������������������������                          ��������������������������2018-06-09 12:36:26.380606: [debug] Process finished in 848ms: /home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-8.2.2 --make -odir /tmp/stack12337/pandoc-2.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup -hidir /tmp/stack12337/pandoc-2.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup -i -i. -clear-package-db -global-package-db -package-db=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/pkgdb -package-db=/home/mgsloan/.stack/global-project/.stack-work/install/x86_64-linux/lts-11.11/8.2.2/pkgdb -hide-all-packages -package-id=Cabal-2.0.1.1-ARIl7MGNKZFBAH1HVzpC6s -package-id=base-4.10.1.0 -optP-include -optP/tmp/stack12337/pandoc-2.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/setup_macros.h /tmp/stack12337/pandoc-2.1.2/Setup.hs /home/mgsloan/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -main-is StackSetupShim.mainOverride -o /tmp/stack12337/pandoc-2.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/setup -threaded
@(src/Stack/Build/Execute.hs:1133:29)
Progress 1/4: pandoc-2.1.2��������������������������                          ��������������������������2018-06-09 12:36:26.380815: [debug] Run process within /tmp/stack12337/pandoc-2.1.2/: /tmp/stack12337/pandoc-2.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-2.0.1.0 configure --with-ghc=/home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc --with-ghc-pkg=/home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/pkgdb --libdir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/lib --bindir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/bin --datadir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/share --libexecdir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/libexec --sysconfdir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/etc --docdir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/doc/pandoc-2.1.2 --htmldir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/doc/pandoc-2.1.2 --haddockdir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/doc/pandoc-2.1.2 --dependency=Cabal=Cabal-2.0.1.1-ARIl7MGNKZFBAH1HVzpC6s --dependency=Glob=Glob-0.9.2-B0gAg5I1EFbLLrqvbBP6OJ --dependency=HTTP=HTTP-4000.3.11-FBeyaSeW8QEGFKa399AaLP --dependency=JuicyPixels=JuicyPixels-3.2.9.5-2XvTMfxs0Kx3BzXC84P9nD --dependency=SHA=SHA-1.6.4.4-1zvOUgVKaQx7KvqAhOzZXy --dependency=aeson=aeson-1.2.4.0-4D00O4yzC0FJ9w5oyKpmlV --dependency=aeson-pretty=aeson-pretty-0.8.7-kvg5pcwfcs5ZrCAUzvcFy --dependency=base=base-4.10.1.0 --dependency=base64-bytestring=base64-bytestring-1.0.0.1-8MlzMz2YH3lCqJ4GOwL1Be --dependency=binary=binary-0.8.5.1 --dependency=blaze-html=blaze-html-0.9.0.1-HmpzQJrqrd6DPpTpNuxnUd --dependency=blaze-markup=blaze-markup-0.8.2.1-GNcNOIjy5FnGWh7cI9G2el --dependency=bytestring=bytestring-0.10.8.2 --dependency=case-insensitive=case-insensitive-1.2.0.11-DieXAizupZnBb7Wfxln47O --dependency=cmark-gfm=cmark-gfm-0.1.3-3bl2x1rGMrBAjjlnaIhlz8 --dependency=containers=containers-0.5.10.2 --dependency=data-default=data-default-0.7.1.1-HxP9sk0JsrKFuLVc9OIluX --dependency=deepseq=deepseq-1.4.3.0 --dependency=directory=directory-1.3.0.2 --dependency=doctemplates=doctemplates-0.2.2.1-K014TGbPbDO5iHGKIaIIUD --dependency=exceptions=exceptions-0.8.3-CYMTujxEbkkJnOJ7pW82ZD --dependency=filepath=filepath-1.4.1.2 --dependency=haddock-library=haddock-library-1.4.5-uQdrVGi1uKLD22IlKGc6n --dependency=hslua=hslua-0.9.5.2-AVTJ2TQBrwkECHqf9EeVzW --dependency=hslua-module-text=hslua-module-text-0.1.2.1-AmWXyKCoGT3KV3zaCtbRHl --dependency=http-client=http-client-0.5.12.1-Ad7WaZKXPTHKmmiivAuodD --dependency=http-client-tls=http-client-tls-0.3.5.3-C2TdLHHf7TsJlPMp76UHQP --dependency=http-types=http-types-0.12.1-20NLDWrYorfCy3zUNrIMsI --dependency=mtl=mtl-2.2.2-8XubxMJDT8QLsstvlNotkc --dependency=network=network-2.6.3.5-7QeClNawG4zBUywSiaHaqa --dependency=network-uri=network-uri-2.6.1.0-EYywkSTD8HiCwSdvhz21Tw --dependency=pandoc-types=pandoc-types-1.17.3.1-GkKSrZaGg3s7AtoypoeOyA --dependency=parsec=parsec-3.1.13.0-7jIoWXeUFiXFkcrm3qWsZW --dependency=process=process-1.6.1.0 --dependency=random=random-1.1-LLUGZ7T9DqQ5vN0Jbcd0We --dependency=safe=safe-0.3.17-CBj05uAzpTx4SAsFxDnCju --dependency=scientific=scientific-0.3.6.2-6rnRk1GpyYx3J4blnjHqFY --dependency=skylighting=skylighting-0.6-D21uUCNdKq65VbJNR57Kl0 --dependency=split=split-0.2.3.3-69JBPqG5rhJEaFzFyiVOGW --dependency=syb=syb-0.7-3Lq8MQxmYP07qktjI1jxu0 --dependency=tagsoup=tagsoup-0.14.6-5zW9hLVTejc6euTmTI8vrY --dependency=temporary=temporary-1.2.1.1-468ctV5wSju4LIYhvyQeLr --dependency=texmath=texmath-0.10.1.2-6JcY0XhmVgkCrUILON435C --dependency=text=text-1.2.3.0-8nD60G3tOYT3Qi8GaESeB5 --dependency=time=time-1.8.0.2 --dependency=unix=unix-2.7.2.2 --dependency=unordered-containers=unordered-containers-0.2.9.0-AID53f8BSxj1wBLxJT9npu --dependency=vector=vector-0.12.0.1-JlawpRjIcMJIYPJVsWriIA --dependency=xml=xml-1.3.14-Kljl530Com7KGsYBJQzfI6 --dependency=yaml=yaml-0.8.30-IoaIAWVFEzf6dFKtqQyADi --dependency=zip-archive=zip-archive-0.3.2.4-InVWuoq7L4M2cSSNf871XR --dependency=zlib=zlib-0.6.2-7YwI9pUae6uDEuDsJgYPoD -f-old-locale
@(src/Stack/Build/Execute.hs:1133:29)
Progress 1/4: pandoc-2.1.2��������������������������                          ��������������������������Progress 2/4

--  While building custom Setup.hs for package pandoc-2.1.2 using:
      /tmp/stack12337/pandoc-2.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-2.0.1.0 configure --with-ghc=/home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc --with-ghc-pkg=/home/mgsloan/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/pkgdb --libdir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/lib --bindir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/bin --datadir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/share --libexecdir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/libexec --sysconfdir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/etc --docdir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/doc/pandoc-2.1.2 --htmldir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/doc/pandoc-2.1.2 --haddockdir=/home/mgsloan/.stack/snapshots/x86_64-linux/lts-11.11/8.2.2/doc/pandoc-2.1.2 --dependency=Cabal=Cabal-2.0.1.1-ARIl7MGNKZFBAH1HVzpC6s --dependency=Glob=Glob-0.9.2-B0gAg5I1EFbLLrqvbBP6OJ --dependency=HTTP=HTTP-4000.3.11-FBeyaSeW8QEGFKa399AaLP --dependency=JuicyPixels=JuicyPixels-3.2.9.5-2XvTMfxs0Kx3BzXC84P9nD --dependency=SHA=SHA-1.6.4.4-1zvOUgVKaQx7KvqAhOzZXy --dependency=aeson=aeson-1.2.4.0-4D00O4yzC0FJ9w5oyKpmlV --dependency=aeson-pretty=aeson-pretty-0.8.7-kvg5pcwfcs5ZrCAUzvcFy --dependency=base=base-4.10.1.0 --dependency=base64-bytestring=base64-bytestring-1.0.0.1-8MlzMz2YH3lCqJ4GOwL1Be --dependency=binary=binary-0.8.5.1 --dependency=blaze-html=blaze-html-0.9.0.1-HmpzQJrqrd6DPpTpNuxnUd --dependency=blaze-markup=blaze-markup-0.8.2.1-GNcNOIjy5FnGWh7cI9G2el --dependency=bytestring=bytestring-0.10.8.2 --dependency=case-insensitive=case-insensitive-1.2.0.11-DieXAizupZnBb7Wfxln47O --dependency=cmark-gfm=cmark-gfm-0.1.3-3bl2x1rGMrBAjjlnaIhlz8 --dependency=containers=containers-0.5.10.2 --dependency=data-default=data-default-0.7.1.1-HxP9sk0JsrKFuLVc9OIluX --dependency=deepseq=deepseq-1.4.3.0 --dependency=directory=directory-1.3.0.2 --dependency=doctemplates=doctemplates-0.2.2.1-K014TGbPbDO5iHGKIaIIUD --dependency=exceptions=exceptions-0.8.3-CYMTujxEbkkJnOJ7pW82ZD --dependency=filepath=filepath-1.4.1.2 --dependency=haddock-library=haddock-library-1.4.5-uQdrVGi1uKLD22IlKGc6n --dependency=hslua=hslua-0.9.5.2-AVTJ2TQBrwkECHqf9EeVzW --dependency=hslua-module-text=hslua-module-text-0.1.2.1-AmWXyKCoGT3KV3zaCtbRHl --dependency=http-client=http-client-0.5.12.1-Ad7WaZKXPTHKmmiivAuodD --dependency=http-client-tls=http-client-tls-0.3.5.3-C2TdLHHf7TsJlPMp76UHQP --dependency=http-types=http-types-0.12.1-20NLDWrYorfCy3zUNrIMsI --dependency=mtl=mtl-2.2.2-8XubxMJDT8QLsstvlNotkc --dependency=network=network-2.6.3.5-7QeClNawG4zBUywSiaHaqa --dependency=network-uri=network-uri-2.6.1.0-EYywkSTD8HiCwSdvhz21Tw --dependency=pandoc-types=pandoc-types-1.17.3.1-GkKSrZaGg3s7AtoypoeOyA --dependency=parsec=parsec-3.1.13.0-7jIoWXeUFiXFkcrm3qWsZW --dependency=process=process-1.6.1.0 --dependency=random=random-1.1-LLUGZ7T9DqQ5vN0Jbcd0We --dependency=safe=safe-0.3.17-CBj05uAzpTx4SAsFxDnCju --dependency=scientific=scientific-0.3.6.2-6rnRk1GpyYx3J4blnjHqFY --dependency=skylighting=skylighting-0.6-D21uUCNdKq65VbJNR57Kl0 --dependency=split=split-0.2.3.3-69JBPqG5rhJEaFzFyiVOGW --dependency=syb=syb-0.7-3Lq8MQxmYP07qktjI1jxu0 --dependency=tagsoup=tagsoup-0.14.6-5zW9hLVTejc6euTmTI8vrY --dependency=temporary=temporary-1.2.1.1-468ctV5wSju4LIYhvyQeLr --dependency=texmath=texmath-0.10.1.2-6JcY0XhmVgkCrUILON435C --dependency=text=text-1.2.3.0-8nD60G3tOYT3Qi8GaESeB5 --dependency=time=time-1.8.0.2 --dependency=unix=unix-2.7.2.2 --dependency=unordered-containers=unordered-containers-0.2.9.0-AID53f8BSxj1wBLxJT9npu --dependency=vector=vector-0.12.0.1-JlawpRjIcMJIYPJVsWriIA --dependency=xml=xml-1.3.14-Kljl530Com7KGsYBJQzfI6 --dependency=yaml=yaml-0.8.30-IoaIAWVFEzf6dFKtqQyADi --dependency=zip-archive=zip-archive-0.3.2.4-InVWuoq7L4M2cSSNf871XR --dependency=zlib=zlib-0.6.2-7YwI9pUae6uDEuDsJgYPoD -f-old-locale
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/mgsloan/.stack/global-project/.stack-work/logs/pandoc-2.1.2.log

    [1 of 2] Compiling Main             ( /tmp/stack12337/pandoc-2.1.2/Setup.hs, /tmp/stack12337/pandoc-2.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/Main.o )
    [2 of 2] Compiling StackSetupShim   ( /home/mgsloan/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /tmp/stack12337/pandoc-2.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/StackSetupShim.o )
    Linking /tmp/stack12337/pandoc-2.1.2/.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/setup/setup ...
    Configuring pandoc-2.1.2...
    Error:
        The following packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used.
    installed package haddock-library-1.4.5 is broken due to missing package haddock-library-1.4.5-JMywL3gQR7h8vuSGU4Yu5w-attoparsec

Stack version

$ stack --version
Version 1.8.0, Git revision 33d6eddb065f26ea31936434eff062c60aab1d6a (dirty) (5867 commits) x86_64 hpack-0.28.2

(the repo dirtyness is an extra file or two that do not affect compilation)

Method of installation

Installed via stack install in latest git repo.

Attempted workaround

I reasoned that this may well be a Cabal bug, but I could not straightforwardly test this hypothesis, because stack setup --upgrade-cabal did not work for Cabal-2.2.0.1 + ghc-8.2.2. I have opened #4070 to track this.

Successful workaround

The workaround described here worked for my actual project (the repro above is a minimal one). So, instead I have

resolver: lts-11.11

packages:
- .
- location:
    git: https://github.com/st3ll1s/haddock/
    commit: b3912d70f74b0693f1ea8cffb8f547b1303ef325
  subdirs:
    - haddock-library
  extra-dep: true

extra-deps:
- pandoc-2.1.3
- pandoc-types-1.17.4.2
@mihaimaruseac
Copy link
Contributor

Probably I missed something, I'll take a look.

@mgsloan
Copy link
Contributor Author

mgsloan commented Jun 9, 2018

@mihaimaruseac Awesome, thanks!!

@hadronized
Copy link

I have the same issue.

~/dev/phaazon.net  master → stack build --file-watch
haddock-library-1.4.5: using precompiled package
pandoc-2.1.2: configure
Progress 2/3
--  While building custom Setup.hs for package pandoc-2.1.2 using:
      /tmp/stack14738/pandoc-2.1.2/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup/setup --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0 configure --with-ghc=/home/phaazon/.stack/programs/x86_64-linux/ghc-tinfo6-8.2.2/bin/ghc --with-ghc-pkg=/home/phaazon/.stack/programs/x86_64-linux/ghc-tinfo6-8.2.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/phaazon/.stack/snapshots/x86_64-linux-tinfo6/lts-11.12/8.2.2/pkgdb --libdir=/home/phaazon/.stack/snapshots/x86_64-linux-tinfo6/lts-11.12/8.2.2/lib --bindir=/home/phaazon/.stack/snapshots/x86_64-linux-tinfo6/lts-11.12/8.2.2/bin --datadir=/home/phaazon/.stack/snapshots/x86_64-linux-tinfo6/lts-11.12/8.2.2/share --libexecdir=/home/phaazon/.stack/snapshots/x86_64-linux-tinfo6/lts-11.12/8.2.2/libexec --sysconfdir=/home/phaazon/.stack/snapshots/x86_64-linux-tinfo6/lts-11.12/8.2.2/etc --docdir=/home/phaazon/.stack/snapshots/x86_64-linux-tinfo6/lts-11.12/8.2.2/doc/pandoc-2.1.2 --htmldir=/home/phaazon/.stack/snapshots/x86_64-linux-tinfo6/lts-11.12/8.2.2/doc/pandoc-2.1.2 --haddockdir=/home/phaazon/.stack/snapshots/x86_64-linux-tinfo6/lts-11.12/8.2.2/doc/pandoc-2.1.2 --dependency=Cabal=Cabal-2.0.1.1-ARIl7MGNKZFBAH1HVzpC6s --dependency=Glob=Glob-0.9.2-B0gAg5I1EFbLLrqvbBP6OJ --dependency=HTTP=HTTP-4000.3.11-FBeyaSeW8QEGFKa399AaLP --dependency=JuicyPixels=JuicyPixels-3.2.9.5-2XvTMfxs0Kx3BzXC84P9nD --dependency=SHA=SHA-1.6.4.4-1zvOUgVKaQx7KvqAhOzZXy --dependency=aeson=aeson-1.2.4.0-4D00O4yzC0FJ9w5oyKpmlV --dependency=aeson-pretty=aeson-pretty-0.8.7-kvg5pcwfcs5ZrCAUzvcFy --dependency=base=base-4.10.1.0 --dependency=base64-bytestring=base64-bytestring-1.0.0.1-8MlzMz2YH3lCqJ4GOwL1Be --dependency=binary=binary-0.8.5.1 --dependency=blaze-html=blaze-html-0.9.0.1-HmpzQJrqrd6DPpTpNuxnUd --dependency=blaze-markup=blaze-markup-0.8.2.1-GNcNOIjy5FnGWh7cI9G2el --dependency=bytestring=bytestring-0.10.8.2 --dependency=case-insensitive=case-insensitive-1.2.0.11-DieXAizupZnBb7Wfxln47O --dependency=cmark-gfm=cmark-gfm-0.1.3-3bl2x1rGMrBAjjlnaIhlz8 --dependency=containers=containers-0.5.10.2 --dependency=data-default=data-default-0.7.1.1-HxP9sk0JsrKFuLVc9OIluX --dependency=deepseq=deepseq-1.4.3.0 --dependency=directory=directory-1.3.0.2 --dependency=doctemplates=doctemplates-0.2.2.1-K014TGbPbDO5iHGKIaIIUD --dependency=exceptions=exceptions-0.8.3-CYMTujxEbkkJnOJ7pW82ZD --dependency=filepath=filepath-1.4.1.2 --dependency=haddock-library=haddock-library-1.4.5-uQdrVGi1uKLD22IlKGc6n --dependency=hslua=hslua-0.9.5.2-AVTJ2TQBrwkECHqf9EeVzW --dependency=hslua-module-text=hslua-module-text-0.1.2.1-AmWXyKCoGT3KV3zaCtbRHl --dependency=http-client=http-client-0.5.12.1-Ad7WaZKXPTHKmmiivAuodD --dependency=http-client-tls=http-client-tls-0.3.5.3-C2TdLHHf7TsJlPMp76UHQP --dependency=http-types=http-types-0.12.1-20NLDWrYorfCy3zUNrIMsI --dependency=mtl=mtl-2.2.2-8XubxMJDT8QLsstvlNotkc --dependency=network=network-2.6.3.5-7QeClNawG4zBUywSiaHaqa --dependency=network-uri=network-uri-2.6.1.0-EYywkSTD8HiCwSdvhz21Tw --dependency=pandoc-types=pandoc-types-1.17.3.1-GkKSrZaGg3s7AtoypoeOyA --dependency=parsec=parsec-3.1.13.0-7jIoWXeUFiXFkcrm3qWsZW --dependency=process=process-1.6.1.0 --dependency=random=random-1.1-LLUGZ7T9DqQ5vN0Jbcd0We --dependency=safe=safe-0.3.17-CBj05uAzpTx4SAsFxDnCju --dependency=scientific=scientific-0.3.6.2-6rnRk1GpyYx3J4blnjHqFY --dependency=skylighting=skylighting-0.6-D21uUCNdKq65VbJNR57Kl0 --dependency=split=split-0.2.3.3-69JBPqG5rhJEaFzFyiVOGW --dependency=syb=syb-0.7-3Lq8MQxmYP07qktjI1jxu0 --dependency=tagsoup=tagsoup-0.14.6-5zW9hLVTejc6euTmTI8vrY --dependency=temporary=temporary-1.2.1.1-468ctV5wSju4LIYhvyQeLr --dependency=texmath=texmath-0.10.1.2-6JcY0XhmVgkCrUILON435C --dependency=text=text-1.2.3.0-8nD60G3tOYT3Qi8GaESeB5 --dependency=time=time-1.8.0.2 --dependency=unix=unix-2.7.2.2 --dependency=unordered-containers=unordered-containers-0.2.9.0-AID53f8BSxj1wBLxJT9npu --dependency=vector=vector-0.12.0.1-JlawpRjIcMJIYPJVsWriIA --dependency=xml=xml-1.3.14-Kljl530Com7KGsYBJQzfI6 --dependency=yaml=yaml-0.8.30-IoaIAWVFEzf6dFKtqQyADi --dependency=zip-archive=zip-archive-0.3.2.5-E9KrIYbEwas9QEfZ8uKNNe --dependency=zlib=zlib-0.6.2-7YwI9pUae6uDEuDsJgYPoD -f-old-locale
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/phaazon/dev/phaazon.net/.stack-work/logs/pandoc-2.1.2.log
    [1 of 2] Compiling Main             ( /tmp/stack14738/pandoc-2.1.2/Setup.hs, /tmp/stack14738/pandoc-2.1.2/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup/Main.o )
    [2 of 2] Compiling StackSetupShim   ( /home/phaazon/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /tmp/stack14738/pandoc-2.1.2/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup/StackSetupShim.o )
    Linking /tmp/stack14738/pandoc-2.1.2/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup/setup ...
    Configuring pandoc-2.1.2...
    Error:
        The following packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used.
    installed package haddock-library-1.4.5 is broken due to missing package haddock-library-1.4.5-JMywL3gQR7h8vuSGU4Yu5w-attoparsec

@mihaimaruseac
Copy link
Contributor

I was able to reproduce it even on

[mm] λ stack --version
Version 1.6.5 x86_64 hpack-0.20.0

First, I build it once on a snapshot which is not existing on my computer:

[mm] λ stack --resolver lts-11.11 build hakyll
Downloaded lts-11.11 build plan.
appar-0.1.4: configure
SHA-1.6.4.4: download
....
haddock-library-1.4.5: download
haddock-library-1.4.5: configure
haddock-library-1.4.5: build
haddock-library-1.4.5: copy/register
...
hakyll-4.12.2.0: download
hakyll-4.12.2.0: configure
hakyll-4.12.2.0: build
hakyll-4.12.2.0: copy/register
Completed 150 action(s).

Then, I rebuild it, with no actions in between:

[mm] λ stack --resolver lts-11.11 build hakyll
haddock-library-1.4.5: configure
haddock-library-1.4.5: build
haddock-library-1.4.5: copy/register
pandoc-2.1.2: configure
pandoc-2.1.2: build
pandoc-2.1.2: copy/register
pandoc-citeproc-0.14.3.1: configure
pandoc-citeproc-0.14.3.1: build
pandoc-citeproc-0.14.3.1: copy/register
hakyll-4.12.2.0: configure
hakyll-4.12.2.0: build
hakyll-4.12.2.0: copy/register
Completed 4 action(s).

All is rebuild, as expected from Stack before 1.7.

Now, if I switch resolver to the next one.. failure:

[mm] λ stack --resolver lts-11.12 build hakyll
Cabal-2.0.1.1: using precompiled package
...
Progress: 147/150
--  While building custom Setup.hs for package pandoc-2.1.2 using:
      /private/var/folders/bn/p9ln7qnj2ns2_ynl6v138qg80000gn/T/stack32147/pandoc-2.1.2/.stack-work/dist/x86_64-osx/Cabal-2.0.1.0/setup/setup --builddir=.stack-work/dist/x86_64-osx/Cabal-2.0.1.0 configure --with-ghc=/Users/mm/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc --with-ghc-pkg=/Users/mm/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/mm/.stack/snapshots/x86_64-osx/lts-11.12/8.2.2/pkgdb --libdir=/Users/mm/.stack/snapshots/x86_64-osx/lts-11.12/8.2.2/lib --bindir=/Users/mm/.stack/snapshots/x86_64-osx/lts-11.12/8.2.2/bin --datadir=/Users/mm/.stack/snapshots/x86_64-osx/lts-11.12/8.2.2/share --libexecdir=/Users/mm/.stack/snapshots/x86_64-osx/lts-11.12/8.2.2/libexec --sysconfdir=/Users/mm/.stack/snapshots/x86_64-osx/lts-11.12/8.2.2/etc --docdir=/Users/mm/.stack/snapshots/x86_64-osx/lts-11.12/8.2.2/doc/pandoc-2.1.2 --htmldir=/Users/mm/.stack/snapshots/x86_64-osx/lts-11.12/8.2.2/doc/pandoc-2.1.2 --haddockdir=/Users/mm/.stack/snapshots/x86_64-osx/lts-11.12/8.2.2/doc/pandoc-2.1.2 --dependency=Cabal=Cabal-2.0.1.1-ARIl7MGNKZFBAH1HVzpC6s --dependency=Glob=Glob-0.9.2-B0gAg5I1EFbLLrqvbBP6OJ --dependency=HTTP=HTTP-4000.3.11-FBeyaSeW8QEGFKa399AaLP --dependency=JuicyPixels=JuicyPixels-3.2.9.5-2XvTMfxs0Kx3BzXC84P9nD --dependency=SHA=SHA-1.6.4.4-1zvOUgVKaQx7KvqAhOzZXy --dependency=aeson=aeson-1.2.4.0-4D00O4yzC0FJ9w5oyKpmlV --dependency=aeson-pretty=aeson-pretty-0.8.7-kvg5pcwfcs5ZrCAUzvcFy --dependency=base=base-4.10.1.0 --dependency=base64-bytestring=base64-bytestring-1.0.0.1-8MlzMz2YH3lCqJ4GOwL1Be --dependency=binary=binary-0.8.5.1 --dependency=blaze-html=blaze-html-0.9.0.1-HmpzQJrqrd6DPpTpNuxnUd --dependency=blaze-markup=blaze-markup-0.8.2.1-GNcNOIjy5FnGWh7cI9G2el --dependency=bytestring=bytestring-0.10.8.2 --dependency=case-insensitive=case-insensitive-1.2.0.11-DieXAizupZnBb7Wfxln47O --dependency=cmark-gfm=cmark-gfm-0.1.3-3bl2x1rGMrBAjjlnaIhlz8 --dependency=containers=containers-0.5.10.2 --dependency=data-default=data-default-0.7.1.1-HxP9sk0JsrKFuLVc9OIluX --dependency=deepseq=deepseq-1.4.3.0 --dependency=directory=directory-1.3.0.2 --dependency=doctemplates=doctemplates-0.2.2.1-K014TGbPbDO5iHGKIaIIUD --dependency=exceptions=exceptions-0.8.3-CYMTujxEbkkJnOJ7pW82ZD --dependency=filepath=filepath-1.4.1.2 --dependency=haddock-library=haddock-library-1.4.5-uQdrVGi1uKLD22IlKGc6n --dependency=hslua=hslua-0.9.5.2-AVTJ2TQBrwkECHqf9EeVzW --dependency=hslua-module-text=hslua-module-text-0.1.2.1-AmWXyKCoGT3KV3zaCtbRHl --dependency=http-client=http-client-0.5.12.1-Ad7WaZKXPTHKmmiivAuodD --dependency=http-client-tls=http-client-tls-0.3.5.3-C2TdLHHf7TsJlPMp76UHQP --dependency=http-types=http-types-0.12.1-20NLDWrYorfCy3zUNrIMsI --dependency=mtl=mtl-2.2.2-8XubxMJDT8QLsstvlNotkc --dependency=network=network-2.6.3.5-7QeClNawG4zBUywSiaHaqa --dependency=network-uri=network-uri-2.6.1.0-EYywkSTD8HiCwSdvhz21Tw --dependency=pandoc-types=pandoc-types-1.17.3.1-GkKSrZaGg3s7AtoypoeOyA --dependency=parsec=parsec-3.1.13.0-7jIoWXeUFiXFkcrm3qWsZW --dependency=process=process-1.6.1.0 --dependency=random=random-1.1-LLUGZ7T9DqQ5vN0Jbcd0We --dependency=safe=safe-0.3.17-CBj05uAzpTx4SAsFxDnCju --dependency=scientific=scientific-0.3.6.2-6rnRk1GpyYx3J4blnjHqFY --dependency=skylighting=skylighting-0.6-D21uUCNdKq65VbJNR57Kl0 --dependency=split=split-0.2.3.3-69JBPqG5rhJEaFzFyiVOGW --dependency=syb=syb-0.7-3Lq8MQxmYP07qktjI1jxu0 --dependency=tagsoup=tagsoup-0.14.6-5zW9hLVTejc6euTmTI8vrY --dependency=temporary=temporary-1.2.1.1-468ctV5wSju4LIYhvyQeLr --dependency=texmath=texmath-0.10.1.2-6JcY0XhmVgkCrUILON435C --dependency=text=text-1.2.3.0-8nD60G3tOYT3Qi8GaESeB5 --dependency=time=time-1.8.0.2 --dependency=unix=unix-2.7.2.2 --dependency=unordered-containers=unordered-containers-0.2.9.0-AID53f8BSxj1wBLxJT9npu --dependency=vector=vector-0.12.0.1-JlawpRjIcMJIYPJVsWriIA --dependency=xml=xml-1.3.14-Kljl530Com7KGsYBJQzfI6 --dependency=yaml=yaml-0.8.30-4jA49qT0n8lH49mGqcGunF --dependency=zip-archive=zip-archive-0.3.2.5-E9KrIYbEwas9QEfZ8uKNNe --dependency=zlib=zlib-0.6.2-7YwI9pUae6uDEuDsJgYPoD -f-old-locale
    Process exited with code: ExitFailure 1
    Logs have been written to: /Users/mm/.stack/global-project/.stack-work/logs/pandoc-2.1.2.log

    [1 of 2] Compiling Main             ( /private/var/folders/bn/p9ln7qnj2ns2_ynl6v138qg80000gn/T/stack32147/pandoc-2.1.2/Setup.hs, /private/var/folders/bn/p9ln7qnj2ns2_ynl6v138qg80000gn/T/stack32147/pandoc-2.1.2/.stack-work/dist/x86_64-osx/Cabal-2.0.1.0/setup/Main.o )
    [2 of 2] Compiling StackSetupShim   ( /Users/mm/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /private/var/folders/bn/p9ln7qnj2ns2_ynl6v138qg80000gn/T/stack32147/pandoc-2.1.2/.stack-work/dist/x86_64-osx/Cabal-2.0.1.0/setup/StackSetupShim.o )
    Linking /private/var/folders/bn/p9ln7qnj2ns2_ynl6v138qg80000gn/T/stack32147/pandoc-2.1.2/.stack-work/dist/x86_64-osx/Cabal-2.0.1.0/setup/setup ...
    Configuring pandoc-2.1.2...
    Error:
        The following packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used.
    installed package haddock-library-1.4.5 is broken due to missing package haddock-library-1.4.5-JMywL3gQR7h8vuSGU4Yu5w-attoparsec

So, I definitely missed something in #3955, but I have an intuition of where. Hopefully I can solve this this weekend.

@mihaimaruseac
Copy link
Contributor

Deleting ~/.stack/precompiled/.../haddock-library-.. cache file and then starting the build process again succeeds. This prompts me to an error in handling internal libraries at

mpkgid <- case packageLibraries package of
HasLibraries _ -> do
mpkgid <- loadInstalledPkg wc [installedPkgDb] installedDumpPkgsTVar (packageName package)
case mpkgid of
Nothing -> throwM $ Couldn'tFindPkgId $ packageName package
Just pkgid -> return $ Library ident pkgid Nothing
NoLibraries -> do
markExeInstalled (taskLocation task) taskProvides -- TODO unify somehow with writeFlagCache?
return $ Executable ident
case taskLocation task of
Snap ->
writePrecompiledCache
eeBaseConfigOpts
(ttPackageLocation taskType)
(configCacheOpts cache)
(configCacheDeps cache)
mpkgid (packageExes package)
_ -> return ()

Sure, there might be an error when reading from the precompiled cache too, I'll look into that once I finalize this. Luckily, I was already working on this for #3787 (caused by a similar lack of symmetry between handling internal libraries and the main library).

@hadronized
Copy link

Deleting ~/.stack/precompiled/.../haddock-library-.. cache file and then starting the build process again succeeds. This prompts me to an error in handling internal libraries at

I confirm, it works. Thanks for the workaround @mihaimaruseac, I hope you’ll be able to fix that error. ❤️

@mihaimaruseac
Copy link
Contributor

I think I have a fix. I'll test it later this week, get some integration tests and then put the PR which fixes several internal libraries bugs. Probably around the weekend.

@mihaimaruseac
Copy link
Contributor

Solved by #4111

@hadronized
Copy link

Thanks, you rock! 😗

pbrisbin added a commit to pbrisbin/yesod-markdown that referenced this issue Sep 6, 2018
The fix for commercialhaskell/stack#4071 isn't
totally working. See https://circleci.com/gh/pbrisbin/yesod-markdown/221.

It seems that the Build step didn't re-use the dependencies from the
Dependencies step, so it tripped over haddock-library since we don't
remove the precompiled file there (like we do in Setup). I could add
that removal there to but that would guarantee that the two steps will
duplicate work.
pbrisbin added a commit to pbrisbin/yesod-markdown that referenced this issue Sep 6, 2018
The fix for commercialhaskell/stack#4071 isn't
totally working. See https://circleci.com/gh/pbrisbin/yesod-markdown/221.

It seems that the Build step didn't re-use the dependencies from the
Dependencies step, so it tripped over haddock-library since we don't
remove the precompiled file there (like we do in Setup). I could add
that removal there to but that would guarantee that the two steps will
duplicate work.
@TerrorJack
Copy link

I'm still getting this error on Windows with stack-1.9.1. The verbose log:

C:\Users\Think
λ  stack install --resolver lts-12.15 --haddock --verbose haddock-library
Version 1.9.1, Git revision f9d0042c141660e1d38f797e1d426be4a99b2a3c (6168 commits) x86_64 hpack-0.31.0
2018-11-01 03:22:30.538643: [debug] Checking for project config at: C:\Users\Think\stack.yaml
2018-11-01 03:22:30.542646: [debug] Checking for project config at: C:\Users\stack.yaml
2018-11-01 03:22:30.543650: [debug] Checking for project config at: C:\stack.yaml
2018-11-01 03:22:30.545646: [debug] No project config file found, using defaults.
2018-11-01 03:22:30.566647: [debug] Using resolver: lts-12.15 specified on command line
2018-11-01 03:22:30.568642: [debug] Run from outside a project, using implicit global project config
2018-11-01 03:22:30.574641: [debug] Decoding build plan from: C:\Users\Think\AppData\Roaming\stack\build-plan\lts-12.15.yaml
2018-11-01 03:22:30.575640: [debug] Trying to decode C:\Users\Think\AppData\Roaming\stack\build-plan-cache\lts-12.15.cache
2018-11-01 03:22:30.596649: [debug] Success decoding C:\Users\Think\AppData\Roaming\stack\build-plan-cache\lts-12.15.cache
2018-11-01 03:22:30.602643: [debug] Potential GHC builds: standard
2018-11-01 03:22:30.604642: [debug] Found already installed GHC builds: standard
2018-11-01 03:22:30.609640: [debug] Asking GHC for its version
2018-11-01 03:22:30.610648: [debug] Getting Cabal package version
2018-11-01 03:22:30.610648: [debug] Getting global package database location
2018-11-01 03:22:30.614643: [debug] Run process: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc.EXE --numeric-version
2018-11-01 03:22:30.622642: [debug] Run process: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --no-user-package-db field --simple-output Cabal version
2018-11-01 03:22:30.623643: [debug] Run process: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --no-user-package-db list --global 2018-11-01 03:22:32.333533: [debug] Process finished in 1708ms: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc.EXE --numeric-version
2018-11-01 03:22:32.340527: [debug] GHC version is: ghc-8.4.4
2018-11-01 03:22:32.496474: [debug] Process finished in 1064ms: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --no-user-package-db field --simple-output Cabal version
2018-11-01 03:22:32.497474: [debug] Process finished in 1064ms: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --no-user-package-db list --global
2018-11-01 03:22:32.502467: [debug] Resolving package entries
2018-11-01 03:22:32.503474: [debug] Trying to decode C:\Users\Think\AppData\Roaming\stack\loaded-snapshot-cache\x86_64-windows\ghc-8.4.4\lts-12.15.cache
2018-11-01 03:22:32.567469: [debug] Success decoding C:\Users\Think\AppData\Roaming\stack\loaded-snapshot-cache\x86_64-windows\ghc-8.4.4\lts-12.15.cache
2018-11-01 03:22:32.574492: [debug] Starting to execute command inside EnvConfig
2018-11-01 03:22:32.576471: [debug] Parsing the targets
2018-11-01 03:22:32.604471: [debug] Finding out which packages are already installed
2018-11-01 03:22:32.605469: [debug] Trying to decode C:\Users\Think\AppData\Roaming\stack\global-project\.stack-work\installed-cache.bin
2018-11-01 03:22:32.613469: [debug] Success decoding C:\Users\Think\AppData\Roaming\stack\global-project\.stack-work\installed-cache.bin
2018-11-01 03:22:32.620475: [debug] Run process: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --global --no-user-package-db dump --expand-pkgroot
2018-11-01 03:22:32.749474: [debug] Process finished in 127ms: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --global --no-user-package-db dump --expand-pkgroot
2018-11-01 03:22:32.752475: [debug] Ignoring package haskeline due to wanting version 0.7.4.3 instead of 0.7.4.2
2018-11-01 03:22:32.754469: [debug] Run process: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --user --no-user-package-db --package-db C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\pkgdb dump --expand-pkgroot
2018-11-01 03:22:33.437472: [debug] Process finished in 680ms: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --user --no-user-package-db --package-db C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\pkgdb dump --expand-pkgroot
2018-11-01 03:22:33.441474: [debug] Run process: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --user --no-user-package-db --package-db C:\Users\Think\AppData\Roaming\stack\global-project\.stack-work\install\53753176\pkgdb dump --expand-pkgroot
2018-11-01 03:22:33.539470: [debug] Process finished in 96ms: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --user --no-user-package-db --package-db C:\Users\Think\AppData\Roaming\stack\global-project\.stack-work\install\53753176\pkgdb dump --expand-pkgroot
2018-11-01 03:22:33.542470: [debug] Ignoring package hindent, from (InstalledTo Local,"C:\\Users\\Think\\AppData\\Roaming\\stack\\global-project\\.stack-work\\install\\53753176\\pkgdb\\"), due to it being unknown to the resolver / extra-deps.
2018-11-01 03:22:33.545478: [debug] Encoding C:\Users\Think\AppData\Roaming\stack\global-project\.stack-work\installed-cache.bin
2018-11-01 03:22:33.549470: [debug] Finished writing C:\Users\Think\AppData\Roaming\stack\global-project\.stack-work\installed-cache.bin
2018-11-01 03:22:33.554470: [debug] Constructing the build plan
2018-11-01 03:22:33.565472: [debug] Trying to decode C:\Users\Think\AppData\Roaming\stack\indices\Hackage\01-index.cache
2018-11-01 03:22:33.943472: [debug] Success decoding C:\Users\Think\AppData\Roaming\stack\indices\Hackage\01-index.cache
2018-11-01 03:22:33.966479: [debug] Checking if we are going to build multiple executables with the same name
2018-11-01 03:22:33.968479: [debug] Prefetching: haddock-library-1.5.0.1
2018-11-01 03:22:33.982476: [debug] Executing the build plan
2018-11-01 03:22:33.990486: [debug] Getting global package database location
2018-11-01 03:22:33.992484: [debug] Run process: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --no-user-package-db list --global 2018-11-01 03:22:34.080472: [debug] Process finished in 85ms: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --no-user-package-db list --global
2018-11-01 03:22:34.327470: [debug] Exception ignored when attempting to load C:\Users\Think\AppData\Local\Temp\stack18572\haddock-library-1.5.0.1\.stack-work\dist\7d103d30\stack-config-cache: C:\Users\Think\AppData\Local\Temp\stack18572\haddock-library-1.5.0.1\.stack-work\dist\7d103d30\stack-config-cache: openBinaryFile: does not exist (No such file or directory)
2018-11-01 03:22:34.330474: [debug] Exception ignored when attempting to load C:\Users\Think\AppData\Local\Temp\stack18572\haddock-library-1.5.0.1\.stack-work\dist\7d103d30\stack-cabal-mod: C:\Users\Think\AppData\Local\Temp\stack18572\haddock-library-1.5.0.1\.stack-work\dist\7d103d30\stack-cabal-mod: openBinaryFile: does not exist (No such file or directory)
2018-11-01 03:22:34.332468: [info] haddock-library-1.5.0.1: configure
2018-11-01 03:22:34.433469: [debug] Run process within C:\Users\Think\AppData\Local\Temp\stack18572\haddock-library-1.5.0.1\: C:\Users\Think\AppData\Roaming\stack\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.2.0.1_ghc-8.4.4.exe --builddir=.stack-work\dist\7d103d30 configure --with-ghc=C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc.EXE --with-ghc-pkg=C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\pkgdb --libdir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\lib --bindir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\bin --datadir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\share --libexecdir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\libexec --sysconfdir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\etc --docdir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\doc\haddock-library-1.5.0.1 --htmldir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\doc\haddock-library-1.5.0.1 --haddockdir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\doc\haddock-library-1.5.0.1 --dependency=base=base-4.11.1.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=containers=containers-0.5.11.0 --dependency=deepseq=deepseq-1.4.3.0 --dependency=transformers=transformers-0.5.5.0 --extra-include-dirs=C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include --extra-lib-dirs=C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --extra-lib-dirs=C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib --exact-configuration
2018-11-01 03:22:46.332039: [debug] Process finished in 11894ms: C:\Users\Think\AppData\Roaming\stack\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.2.0.1_ghc-8.4.4.exe --builddir=.stack-work\dist\7d103d30 configure --with-ghc=C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc.EXE --with-ghc-pkg=C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\pkgdb --libdir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\lib --bindir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\bin --datadir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\share --libexecdir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\libexec --sysconfdir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\etc --docdir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\doc\haddock-library-1.5.0.1 --htmldir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\doc\haddock-library-1.5.0.1 --haddockdir=C:\Users\Think\AppData\Roaming\stack\snapshots\54cf5b88\doc\haddock-library-1.5.0.1 --dependency=base=base-4.11.1.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=containers=containers-0.5.11.0 --dependency=deepseq=deepseq-1.4.3.0 --dependency=transformers=transformers-0.5.5.0 --extra-include-dirs=C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include --extra-lib-dirs=C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --extra-lib-dirs=C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib --exact-configuration
2018-11-01 03:22:46.339042: [debug] Encoding C:\Users\Think\AppData\Local\Temp\stack18572\haddock-library-1.5.0.1\.stack-work\dist\7d103d30\stack-config-cache
2018-11-01 03:22:46.343044: [debug] Finished writing C:\Users\Think\AppData\Local\Temp\stack18572\haddock-library-1.5.0.1\.stack-work\dist\7d103d30\stack-config-cache
2018-11-01 03:22:46.345043: [debug] Encoding C:\Users\Think\AppData\Local\Temp\stack18572\haddock-library-1.5.0.1\.stack-work\dist\7d103d30\stack-cabal-mod
2018-11-01 03:22:46.353043: [debug] Finished writing C:\Users\Think\AppData\Local\Temp\stack18572\haddock-library-1.5.0.1\.stack-work\dist\7d103d30\stack-cabal-mod
2018-11-01 03:22:46.355042: [info] haddock-library-1.5.0.1: build
2018-11-01 03:22:46.358043: [debug] Run process within C:\Users\Think\AppData\Local\Temp\stack18572\haddock-library-1.5.0.1\: C:\Users\Think\AppData\Roaming\stack\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.2.0.1_ghc-8.4.4.exe --builddir=.stack-work\dist\7d103d30 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
2018-11-01 03:23:19.359954: [debug] Process finished in 33000ms: C:\Users\Think\AppData\Roaming\stack\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.2.0.1_ghc-8.4.4.exe --builddir=.stack-work\dist\7d103d30 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
2018-11-01 03:23:19.363957: [info] haddock-library-1.5.0.1: haddock
2018-11-01 03:23:19.367957: [debug] Run process within C:\Users\Think\AppData\Local\Temp\stack18572\: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\haddock.EXE --hyperlinked-source
2018-11-01 03:23:19.950956: [debug] Process finished in 581ms: C:\Users\Think\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.4\bin\haddock.EXE --hyperlinked-source 2018-11-01 03:23:19.953960: [debug] Run process within C:\Users\Think\AppData\Local\Temp\stack18572\haddock-library-1.5.0.1\: C:\Users\Think\AppData\Roaming\stack\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.2.0.1_ghc-8.4.4.exe --builddir=.stack-work\dist\7d103d30 haddock --html --hoogle --html-location=../$pkg-$version/ --haddock-option=--hyperlinked-source --haddock-option=--quickjump

--  While building package haddock-library-1.5.0.1 using:
      C:\Users\Think\AppData\Roaming\stack\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.2.0.1_ghc-8.4.4.exe --builddir=.stack-work\dist\7d103d30 haddock --html --hoogle --html-location=../$pkg-$version/ --haddock-option=--hyperlinked-source --haddock-option=--quickjump
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Users\Think\AppData\Roaming\stack\global-project\.stack-work\logs\haddock-library-1.5.0.1.log

    Configuring haddock-library-1.5.0.1...
    Preprocessing library 'attoparsec' for haddock-library-1.5.0.1..
    Building library 'attoparsec' for haddock-library-1.5.0.1..
    [ 1 of 11] Compiling Data.Attoparsec.ByteString.FastSet ( vendor\attoparsec-0.13.1.0\Data\Attoparsec\ByteString\FastSet.hs, .stack-work\dist\7d103d30\build\attoparsec\Data\Attoparsec\ByteString\FastSet.o )
    [ 2 of 11] Compiling Data.Attoparsec.Internal.Fhthagn ( vendor\attoparsec-0.13.1.0\Data\Attoparsec\Internal\Fhthagn.hs, .stack-work\dist\7d103d30\build\attoparsec\Data\Attoparsec\Internal\Fhthagn.o )
    [ 3 of 11] Compiling Data.Attoparsec.ByteString.Buffer ( vendor\attoparsec-0.13.1.0\Data\Attoparsec\ByteString\Buffer.hs, .stack-work\dist\7d103d30\build\attoparsec\Data\Attoparsec\ByteString\Buffer.o )
    [ 4 of 11] Compiling Data.Attoparsec.Internal.Types ( vendor\attoparsec-0.13.1.0\Data\Attoparsec\Internal\Types.hs, .stack-work\dist\7d103d30\build\attoparsec\Data\Attoparsec\Internal\Types.o )
    [ 5 of 11] Compiling Data.Attoparsec.Internal ( vendor\attoparsec-0.13.1.0\Data\Attoparsec\Internal.hs, .stack-work\dist\7d103d30\build\attoparsec\Data\Attoparsec\Internal.o )
    [ 6 of 11] Compiling Data.Attoparsec.Combinator ( vendor\attoparsec-0.13.1.0\Data\Attoparsec\Combinator.hs, .stack-work\dist\7d103d30\build\attoparsec\Data\Attoparsec\Combinator.o )
    [ 7 of 11] Compiling Data.Attoparsec.ByteString.Internal ( vendor\attoparsec-0.13.1.0\Data\Attoparsec\ByteString\Internal.hs, .stack-work\dist\7d103d30\build\attoparsec\Data\Attoparsec\ByteString\Internal.o )
    [ 8 of 11] Compiling Data.Attoparsec.ByteString ( vendor\attoparsec-0.13.1.0\Data\Attoparsec\ByteString.hs, .stack-work\dist\7d103d30\build\attoparsec\Data\Attoparsec\ByteString.o )
    [ 9 of 11] Compiling Data.Attoparsec.ByteString.Char8 ( vendor\attoparsec-0.13.1.0\Data\Attoparsec\ByteString\Char8.hs, .stack-work\dist\7d103d30\build\attoparsec\Data\Attoparsec\ByteString\Char8.o )
    [10 of 11] Compiling Data.Attoparsec  ( vendor\attoparsec-0.13.1.0\Data\Attoparsec.hs, .stack-work\dist\7d103d30\build\attoparsec\Data\Attoparsec.o )
    [11 of 11] Compiling Data.Attoparsec.Number ( vendor\attoparsec-0.13.1.0\Data\Attoparsec\Number.hs, .stack-work\dist\7d103d30\build\attoparsec\Data\Attoparsec\Number.o )
    Preprocessing library for haddock-library-1.5.0.1..
    Building library for haddock-library-1.5.0.1..
    [1 of 7] Compiling Documentation.Haddock.Types ( src\Documentation\Haddock\Types.hs, .stack-work\dist\7d103d30\build\Documentation\Haddock\Types.o )
    [2 of 7] Compiling Documentation.Haddock.Markup ( src\Documentation\Haddock\Markup.hs, .stack-work\dist\7d103d30\build\Documentation\Haddock\Markup.o )
    [3 of 7] Compiling Documentation.Haddock.Doc ( src\Documentation\Haddock\Doc.hs, .stack-work\dist\7d103d30\build\Documentation\Haddock\Doc.o )
    [4 of 7] Compiling Documentation.Haddock.Utf8 ( src\Documentation\Haddock\Utf8.hs, .stack-work\dist\7d103d30\build\Documentation\Haddock\Utf8.o )
    [5 of 7] Compiling Documentation.Haddock.Parser.Monad ( src\Documentation\Haddock\Parser\Monad.hs, .stack-work\dist\7d103d30\build\Documentation\Haddock\Parser\Monad.o )
    [6 of 7] Compiling Documentation.Haddock.Parser.Util ( src\Documentation\Haddock\Parser\Util.hs, .stack-work\dist\7d103d30\build\Documentation\Haddock\Parser\Util.o )
    [7 of 7] Compiling Documentation.Haddock.Parser ( src\Documentation\Haddock\Parser.hs, .stack-work\dist\7d103d30\build\Documentation\Haddock\Parser.o )
    Preprocessing library 'attoparsec' for haddock-library-1.5.0.1..
    Running Haddock on library 'attoparsec' for haddock-library-1.5.0.1..
    Haddock coverage:
    Warning: 'liftM2' is out of scope.
     100% ( 24 / 24) in 'Data.Attoparsec.Combinator'
    Warning: 'ByteString' is out of scope.
      97% ( 66 / 68) in 'Data.Attoparsec.ByteString'
      Missing documentation for:
        Parser (vendor\\attoparsec-0.13.1.0\\Data\\Attoparsec\\ByteString\\Internal.hs:95)
        Result (vendor\\attoparsec-0.13.1.0\\Data\\Attoparsec\\ByteString\\Internal.hs:96)
    Warning: 'many' is out of scope.
      98% ( 86 / 88) in 'Data.Attoparsec.ByteString.Char8'
      Missing documentation for:
        Parser (vendor\\attoparsec-0.13.1.0\\Data\\Attoparsec\\ByteString\\Internal.hs:95)
        Result (vendor\\attoparsec-0.13.1.0\\Data\\Attoparsec\\ByteString\\Internal.hs:96)
    Warning: Data.Attoparsec.Combinator: could not find link destinations for:
        Parser Chunk ChunkElem
    Warning: Data.Attoparsec.ByteString: could not find link destinations for:
        Parser Chunk
    Warning: Data.Attoparsec.ByteString.Char8: could not find link destinations for:
        Parser Chunk
    Documentation created:
    .stack-work\dist\7d103d30\doc\html\haddock-library\index.html,
    .stack-work\dist\7d103d30\doc\html\haddock-library\haddock-library.txt
    Preprocessing library for haddock-library-1.5.0.1..
    Running Haddock on library for haddock-library-1.5.0.1..
    Cabal-simple_Z6RU0evB_2.2.0.1_ghc-8.4.4.exe: internal error when calculating
    transitive package dependencies.
    Debug info: []

And the workaround of "Deleting ~/.stack/precompiled/.../haddock-library-.. cache file" doesn't work since the filenames in precompiled are encoded in a cryptic manner so I really have no idea which one to delete. Can anyone provide some hint how things might have gone wrong here? @mihaimaruseac @mgsloan

@mihaimaruseac
Copy link
Contributor

I think this is different, as you're getting the error due to haddock.

@mihaimaruseac
Copy link
Contributor

See #4195

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

No branches or pull requests

5 participants