commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
4k stars 844 forks source link

Build plan construction failures when running `stack haddock` #2553

Closed sjakobi closed 8 years ago

sjakobi commented 8 years ago
~/tmp $ stack new haddock-issue
Downloading template "new-template" to create project "haddock-issue" in haddock-issue/ ...
...
Initialising configuration using resolver: lts-6.14
Total number of user packages considered: 1
Writing configuration to file: haddock-issue/stack.yaml
All done.
~/tmp $ cd haddock-issue/
~/t/haddock-issue $ stack haddock -v
Version 1.2.1, Git revision a77c00b92b6edfb1ffd99a3fea9fd54b9ab1c66c (dirty) (4047 commits) x86_64 hpack-0.14.1
2016-09-01 03:50:18.875442: [debug] Checking for project config at: /home/simon/tmp/haddock-issue/stack.yaml
@(Stack/Config.hs:797:9)
2016-09-01 03:50:18.875827: [debug] Loading project config file stack.yaml
@(Stack/Config.hs:815:13)
2016-09-01 03:50:18.880306: [debug] Trying to decode /home/simon/.stack/build-plan-cache/x86_64-linux/lts-6.14.cache
@(Data/Store/VersionTagged.hs:68:5)
2016-09-01 03:50:18.903570: [debug] Success decoding /home/simon/.stack/build-plan-cache/x86_64-linux/lts-6.14.cache
@(Data/Store/VersionTagged.hs:72:13)
2016-09-01 03:50:18.914414: [debug] Getting system compiler version
@(Stack/Setup.hs:352:17)
2016-09-01 03:50:18.915271: [debug] Run process: /usr/bin/ghc --info
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.023513: [debug] Process finished in 107 ms: /usr/bin/ghc --info
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.028780: [debug] Asking GHC for its version
@(Stack/Setup/Installed.hs:101:13)
2016-09-01 03:50:19.029638: [debug] Run process: /usr/bin/ghc --numeric-version
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.030507: [debug] Getting global package database location
@(Stack/GhcPkg.hs:54:5)
2016-09-01 03:50:19.031416: [debug] Run process: /usr/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.043673: [debug] Getting Cabal package version
@(Stack/GhcPkg.hs:171:5)
2016-09-01 03:50:19.044042: [debug] Run process: /usr/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.092860: [debug] Process finished in 62 ms: /usr/bin/ghc --numeric-version
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.142136: [debug] Process finished in 97 ms: /usr/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.145449: [debug] Process finished in 113 ms: /usr/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.146080: [debug] Resolving package entries
@(Stack/Setup.hs:232:5)
2016-09-01 03:50:19.147460: [debug] Run process: /usr/bin/ghc-pkg init /home/simon/tmp/haddock-issue/.stack-work/install/x86_64-linux/lts-6.14/7.10.3/pkgdb/
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.169080: [debug] Process finished in 21 ms: /usr/bin/ghc-pkg init /home/simon/tmp/haddock-issue/.stack-work/install/x86_64-linux/lts-6.14/7.10.3/pkgdb/
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.169696: [debug] Starting to execute command inside EnvConfig
@(Stack/Runners.hs:166:18)
2016-09-01 03:50:19.169920: [debug] Parsing the cabal files of the local packages
@(Stack/Build/Source.hs:282:5)
2016-09-01 03:50:19.171909: [debug] Parsing the targets
@(Stack/Build/Source.hs:219:5)
2016-09-01 03:50:19.172578: [debug] Exception ignored when attempting to load /home/simon/tmp/haddock-issue/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/stack-build-cache: /home/simon/tmp/haddock-issue/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/stack-build-cache: openBinaryFile: does not exist (No such file or directory)
@(Data/Store/VersionTagged.hs:86:9)
2016-09-01 03:50:19.176505: [debug] Finding out which packages are already installed
@(Stack/Build/Installed.hs:73:5)
2016-09-01 03:50:19.176782: [debug] Trying to decode /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:68:5)
2016-09-01 03:50:19.177167: [debug] Exception ignored when attempting to load /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin: /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin: openBinaryFile: does not exist (No such file or directory)
@(Data/Store/VersionTagged.hs:86:9)
2016-09-01 03:50:19.177357: [debug] Failure decoding /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:75:13)
2016-09-01 03:50:19.177484: [debug] Encoding /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:51:5)
2016-09-01 03:50:19.178157: [debug] Finished writing /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:55:5)
2016-09-01 03:50:19.178827: [debug] Run process: /usr/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.239991: [debug] Process finished in 60 ms: /usr/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.240228: [debug] Ignoring package ghc-prim due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.240481: [debug] Ignoring package transformers due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.240612: [debug] Ignoring package xhtml due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.255436: [debug] Ignoring package bytestring due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.255637: [debug] Ignoring package bin-package-db due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.255773: [debug] Ignoring package base due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.255904: [debug] Ignoring package ghc due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.256035: [debug] Ignoring package haskeline due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.256169: [debug] Ignoring package unix due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.256301: [debug] Ignoring package array due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.256430: [debug] Ignoring package process due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.256654: [debug] Ignoring package template-haskell due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.256787: [debug] Ignoring package filepath due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.256913: [debug] Ignoring package hpc due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.257037: [debug] Ignoring package integer-gmp due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.257163: [debug] Ignoring package directory due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.257288: [debug] Ignoring package terminfo due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.257414: [debug] Ignoring package time due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.257539: [debug] Ignoring package containers due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.257716: [debug] Ignoring package hoopl due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.257839: [debug] Ignoring package Cabal due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.257964: [debug] Ignoring package deepseq due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.258089: [debug] Ignoring package binary due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.258212: [debug] Ignoring package pretty due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.258414: [debug] Run process: /usr/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.636100: [debug] Process finished in 377 ms: /usr/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.636399: [debug] Ignoring package persistent-sqlite, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.636592: [debug] Ignoring package hpack, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.636761: [debug] Ignoring package persistent-template, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.637122: [debug] Ignoring package persistent, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.637295: [debug] Ignoring package yaml, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.637453: [debug] Ignoring package path-io, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.637612: [debug] Ignoring package hit, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.637765: [debug] Ignoring package path, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.637912: [debug] Ignoring package binary-tagged, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.638169: [debug] Ignoring package aeson-compat, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.638327: [debug] Ignoring package aeson, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.638474: [debug] Ignoring package project-template, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.680277: [debug] Ignoring package monad-logger, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.680520: [debug] Ignoring package connection, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.680673: [debug] Ignoring package tls, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.680821: [debug] Ignoring package cryptohash-conduit, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.681627: [debug] Ignoring package conduit-extra, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.681830: [debug] Ignoring package streaming-commons, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.681974: [debug] Ignoring package x509-validation, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.682121: [debug] Ignoring package x509-system, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.682270: [debug] Ignoring package x509-store, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.682418: [debug] Ignoring package x509, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.682680: [debug] Ignoring package either, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.682880: [debug] Ignoring package conduit, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.683043: [debug] Ignoring package th-lift-instances, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.683324: [debug] Ignoring package http-types, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.683483: [debug] Ignoring package attoparsec, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.683630: [debug] Ignoring package scientific, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.683922: [debug] Ignoring package Glob, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.684076: [debug] Ignoring package case-insensitive, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.684222: [debug] Ignoring package resourcet, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.684384: [debug] Ignoring package unicode-transforms, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.684535: [debug] Ignoring package lifted-async, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.684726: [debug] Ignoring package retry, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.685012: [debug] Ignoring package http-api-data, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.685179: [debug] Ignoring package hspec, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.685325: [debug] Ignoring package hspec-smallcheck, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.685474: [debug] Ignoring package temporary, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.685608: [debug] Ignoring package hspec-core, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.685738: [debug] Ignoring package blaze-html, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.685916: [debug] Ignoring package cryptohash, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.686329: [debug] Ignoring package cryptonite, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.686550: [debug] Ignoring package quickcheck-io, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.686766: [debug] Ignoring package generics-sop, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.686882: [debug] Ignoring package socks, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.687030: [debug] Ignoring package blaze-markup, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.687210: [debug] Ignoring package cookie, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.687495: [debug] Ignoring package network, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.687760: [debug] Ignoring package generic-deriving, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.687939: [debug] Ignoring package microlens, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.688093: [debug] Ignoring package asn1-parse, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.688242: [debug] Ignoring package asn1-encoding, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.688512: [debug] Ignoring package extra, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.688715: [debug] Ignoring package cereal, from (InstalledTo Snap,"/home/simon/.stack/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/"), due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 03:50:19.689054: [debug] Run process: /usr/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/tmp/haddock-issue/.stack-work/install/x86_64-linux/lts-6.14/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.722513: [debug] Process finished in 33 ms: /usr/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/tmp/haddock-issue/.stack-work/install/x86_64-linux/lts-6.14/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 03:50:19.722764: [debug] Encoding /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:51:5)
2016-09-01 03:50:19.723219: [debug] Finished writing /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:55:5)
2016-09-01 03:50:19.723934: [debug] Constructing the build plan
@(Stack/Build/ConstructPlan.hs:157:5)
2016-09-01 03:50:19.727154: [debug] Trying to decode /home/simon/.stack/indices/Hackage/00-index.cache
@(Data/Store/VersionTagged.hs:68:5)
2016-09-01 03:50:20.317793: [debug] Success decoding /home/simon/.stack/indices/Hackage/00-index.cache
@(Data/Store/VersionTagged.hs:72:13)
2016-09-01 03:50:20.318102: [error] 
While constructing the build plan, the following exceptions were encountered:

In the dependencies for haddock-issue-0.1.0.0:
    base must match >=4.7 && <5, but the stack configuration has no specified version (latest applicable is 4.9.0.0)

Recommended action: try adding the following to your extra-deps in /home/simon/tmp/haddock-issue/stack.yaml:
- base-4.9.0.0

You may also want to try the 'stack solver' command
@(Stack/Build/ConstructPlan.hs:195:13)
Plan construction failed.

I can also reproduce this issue with v1.2.0:

~/t/haddock-issue $ stack --version
Version 1.2.0, Git revision 2bed3de52fd175316e6d9bb329241b4605dbd659 (dirty) (4042 commits) x86_64 hpack-0.14.0
sjakobi commented 8 years ago

--no-system-ghc seems to fix it. Not sure why though.

~/t/haddock-issue $ rm -rf ~/.stack-1.2.0/
~/t/haddock-issue $ stack-1.2.0-2bed3d --stack-root ~/.stack-1.2.0 -v haddock
Version 1.2.0, Git revision 2bed3de52fd175316e6d9bb329241b4605dbd659 (dirty) (4042 commits) x86_64 hpack-0.14.0
2016-09-01 05:48:14.378891: [debug] Checking for project config at: /home/simon/tmp/haddock-issue/stack.yaml
@(Stack/Config.hs:792:9)
2016-09-01 05:48:14.380329: [debug] Loading project config file stack.yaml
@(Stack/Config.hs:810:13)
2016-09-01 05:48:14.386467: [debug] Trying to decode /home/simon/.stack-1.2.0/build-plan-cache/x86_64-linux/lts-6.14.cache
@(Data/Store/VersionTagged.hs:68:5)
2016-09-01 05:48:14.386870: [debug] Exception ignored when attempting to load /home/simon/.stack-1.2.0/build-plan-cache/x86_64-linux/lts-6.14.cache: /home/simon/.stack-1.2.0/build-plan-cache/x86_64-linux/lts-6.14.cache: openBinaryFile: does not exist (No such file or directory)
@(Data/Store/VersionTagged.hs:86:9)
2016-09-01 05:48:14.387084: [debug] Failure decoding /home/simon/.stack-1.2.0/build-plan-cache/x86_64-linux/lts-6.14.cache
@(Data/Store/VersionTagged.hs:75:13)
2016-09-01 05:48:14.387464: [debug] Decoding build plan from: /home/simon/.stack-1.2.0/build-plan/lts-6.14.yaml
@(Stack/BuildPlan.hs:499:5)
2016-09-01 05:48:14.387685: [debug] Decoding build plan from file failed: OtherParseException /home/simon/.stack-1.2.0/build-plan/lts-6.14.yaml: openFile: does not exist (No such file or directory)
@(Stack/BuildPlan.hs:504:13)
2016-09-01 05:48:14.388278: [debug] Downloading build plan from: https://raw.githubusercontent.com/fpco/lts-haskell/master//lts-6.14.yaml
@(Stack/BuildPlan.hs:509:13)
2016-09-01 05:48:14.388492: [debug] Downloading /fpco/lts-haskell/master//lts-6.14.yaml
@(Network/HTTP/Download.hs:95:5)
Downloaded lts-6.14 build plan.    
2016-09-01 05:48:17.627367: [debug] Trying to decode /home/simon/.stack-1.2.0/indices/Hackage/00-index.cache
@(Data/Store/VersionTagged.hs:68:5)
2016-09-01 05:48:17.627689: [debug] Exception ignored when attempting to load /home/simon/.stack-1.2.0/indices/Hackage/00-index.cache: /home/simon/.stack-1.2.0/indices/Hackage/00-index.cache: openBinaryFile: does not exist (No such file or directory)
@(Data/Store/VersionTagged.hs:86:9)
2016-09-01 05:48:17.627826: [debug] Failure decoding /home/simon/.stack-1.2.0/indices/Hackage/00-index.cache
@(Data/Store/VersionTagged.hs:75:13)
2016-09-01 05:48:17.628495: [debug] Run process: /usr/bin/git clone https://github.com/commercialhaskell/all-cabal-hashes.git all-cabal-hashes/ -b display
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:35.726674: [debug] Process finished in 78097 ms: /usr/bin/git clone https://github.com/commercialhaskell/all-cabal-hashes.git all-cabal-hashes/ -b display
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:35.727624: [debug] Creating process: /usr/bin/git fetch --tags                           
@(System/Process/Run.hs:103:5)
Fetched package index.    
2016-09-01 05:49:36.623623: [debug] Run process: /bin/sh -c "git get-tar-commit-id < /home/simon/.stack-1.2.0/indices/Hackage/00-index.tar"
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:36.626614: [debug] Run process: /usr/bin/git rev-parse current-hackage^{}
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:36.628760: [debug] Process finished in 1 ms: /usr/bin/git rev-parse current-hackage^{}
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:36.628998: [debug] Could not delete cache: /home/simon/.stack-1.2.0/indices/Hackage/00-index.cache: removeLink: does not exist (No such file or directory)
@(Stack/PackageIndex.hs:358:19)
2016-09-01 05:49:36.629106: [debug] Exporting a tarball to /home/simon/.stack-1.2.0/indices/Hackage/00-index.tar
@(Stack/PackageIndex.hs:302:10)
2016-09-01 05:49:36.629338: [debug] Run process: /usr/bin/git archive --format=tar -o /home/simon/.stack-1.2.0/indices/Hackage/00-index.tar.tmp current-hackage
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:41.913537: [debug] Process finished in 5283 ms: /usr/bin/git archive --format=tar -o /home/simon/.stack-1.2.0/indices/Hackage/00-index.tar.tmp current-hackage
@(System/Process/Read.hs:277:3)
Populated index cache.    
2016-09-01 05:49:51.247777: [debug] Encoding /home/simon/.stack-1.2.0/indices/Hackage/00-index.cache
@(Data/Store/VersionTagged.hs:51:5)
2016-09-01 05:49:52.186992: [debug] Finished writing /home/simon/.stack-1.2.0/indices/Hackage/00-index.cache
@(Data/Store/VersionTagged.hs:55:5)
2016-09-01 05:49:57.057184: [debug] Encoding /home/simon/.stack-1.2.0/build-plan-cache/x86_64-linux/lts-6.14.cache
@(Data/Store/VersionTagged.hs:51:5)
2016-09-01 05:49:57.236756: [debug] Finished writing /home/simon/.stack-1.2.0/build-plan-cache/x86_64-linux/lts-6.14.cache
@(Data/Store/VersionTagged.hs:55:5)
2016-09-01 05:49:57.237194: [debug] Getting system compiler version
@(Stack/Setup.hs:354:17)
2016-09-01 05:49:57.237418: [debug] Run process: /usr/bin/ghc --info
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.812529: [debug] Process finished in 574 ms: /usr/bin/ghc --info
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.821297: [debug] Asking GHC for its version
@(Stack/Setup/Installed.hs:101:13)
2016-09-01 05:49:57.823515: [debug] Getting global package database location
@(Stack/GhcPkg.hs:54:5)
2016-09-01 05:49:57.824340: [debug] Getting Cabal package version
@(Stack/GhcPkg.hs:171:5)
2016-09-01 05:49:57.824674: [debug] Run process: /usr/bin/ghc --numeric-version
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.826525: [debug] Run process: /usr/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.827971: [debug] Run process: /usr/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.862469: [debug] Process finished in 37 ms: /usr/bin/ghc --numeric-version
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.904603: [debug] Process finished in 75 ms: /usr/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.905093: [debug] Process finished in 78 ms: /usr/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.905372: [debug] Resolving package entries
@(Stack/Setup.hs:234:5)
2016-09-01 05:49:57.906066: [debug] Run process: /usr/bin/ghc-pkg init /home/simon/.stack-1.2.0/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.921198: [debug] Process finished in 14 ms: /usr/bin/ghc-pkg init /home/simon/.stack-1.2.0/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb/
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.922043: [debug] Starting to execute command inside EnvConfig
@(Stack/Runners.hs:166:18)
2016-09-01 05:49:57.922174: [debug] Parsing the cabal files of the local packages
@(Stack/Build/Source.hs:282:5)
2016-09-01 05:49:57.923834: [debug] Parsing the targets
@(Stack/Build/Source.hs:219:5)
2016-09-01 05:49:57.927554: [debug] Finding out which packages are already installed
@(Stack/Build/Installed.hs:73:5)
2016-09-01 05:49:57.927777: [debug] Trying to decode /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:68:5)
2016-09-01 05:49:57.927986: [debug] Success decoding /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:72:13)
2016-09-01 05:49:57.928358: [debug] Run process: /usr/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.970803: [debug] Process finished in 42 ms: /usr/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.970993: [debug] Ignoring package ghc-prim due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.971163: [debug] Ignoring package transformers due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.971263: [debug] Ignoring package xhtml due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.971346: [debug] Ignoring package bytestring due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.971427: [debug] Ignoring package bin-package-db due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.971510: [debug] Ignoring package base due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.971666: [debug] Ignoring package ghc due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.971749: [debug] Ignoring package haskeline due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.971829: [debug] Ignoring package unix due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.971909: [debug] Ignoring package array due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.971987: [debug] Ignoring package process due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.972068: [debug] Ignoring package template-haskell due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.972150: [debug] Ignoring package filepath due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.972229: [debug] Ignoring package hpc due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.972339: [debug] Ignoring package integer-gmp due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.972421: [debug] Ignoring package directory due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.972500: [debug] Ignoring package terminfo due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.972579: [debug] Ignoring package time due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.972659: [debug] Ignoring package containers due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.972739: [debug] Ignoring package hoopl due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.972819: [debug] Ignoring package Cabal due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.972898: [debug] Ignoring package deepseq due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.972978: [debug] Ignoring package binary due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.973089: [debug] Ignoring package pretty due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:49:57.973226: [debug] Run process: /usr/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack-1.2.0/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.993543: [debug] Process finished in 20 ms: /usr/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack-1.2.0/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:57.993980: [debug] Run process: /usr/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/tmp/haddock-issue/.stack-work/install/x86_64-linux/lts-6.14/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:58.015996: [debug] Process finished in 21 ms: /usr/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/tmp/haddock-issue/.stack-work/install/x86_64-linux/lts-6.14/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 05:49:58.043630: [debug] Encoding /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:51:5)
2016-09-01 05:49:58.044507: [debug] Finished writing /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:55:5)
2016-09-01 05:49:58.045016: [debug] Constructing the build plan
@(Stack/Build/ConstructPlan.hs:157:5)
2016-09-01 05:49:58.045360: [error] 
While constructing the build plan, the following exceptions were encountered:

In the dependencies for haddock-issue-0.1.0.0:
    base must match >=4.7 && <5, but the stack configuration has no specified version (latest applicable is 4.9.0.0)

Recommended action: try adding the following to your extra-deps in /home/simon/tmp/haddock-issue/stack.yaml:
- base-4.9.0.0

You may also want to try the 'stack solver' command
@(Stack/Build/ConstructPlan.hs:195:13)
Plan construction failed.
~/t/haddock-issue $ stack-1.2.0-2bed3d --stack-root ~/.stack-1.2.0 -v haddock --install-ghc --no-system-ghc
Version 1.2.0, Git revision 2bed3de52fd175316e6d9bb329241b4605dbd659 (dirty) (4042 commits) x86_64 hpack-0.14.0
2016-09-01 05:50:21.873334: [debug] Checking for project config at: /home/simon/tmp/haddock-issue/stack.yaml
@(Stack/Config.hs:792:9)
2016-09-01 05:50:21.873851: [debug] Loading project config file stack.yaml
@(Stack/Config.hs:810:13)
2016-09-01 05:50:21.880131: [debug] Trying to decode /home/simon/.stack-1.2.0/build-plan-cache/x86_64-linux/lts-6.14.cache
@(Data/Store/VersionTagged.hs:68:5)
2016-09-01 05:50:21.913496: [debug] Success decoding /home/simon/.stack-1.2.0/build-plan-cache/x86_64-linux/lts-6.14.cache
@(Data/Store/VersionTagged.hs:72:13)
2016-09-01 05:50:21.924327: [debug] Run process: /sbin/ldconfig -p
@(System/Process/Read.hs:277:3)
2016-09-01 05:50:21.948253: [debug] Process finished in 23 ms: /sbin/ldconfig -p
@(System/Process/Read.hs:277:3)
2016-09-01 05:50:21.948679: [debug] Found shared library libtinfo.so.5 in 'ldconfig -p' output
@(Stack/Setup.hs:500:25)
2016-09-01 05:50:21.949385: [debug] Did not find shared library libtinfo.so.6
@(Stack/Setup.hs:512:34)
2016-09-01 05:50:21.949574: [debug] Did not find shared library libncursesw.so.6
@(Stack/Setup.hs:512:34)
2016-09-01 05:50:21.949732: [debug] Found shared library libgmp.so.10 in 'ldconfig -p' output
@(Stack/Setup.hs:500:25)
2016-09-01 05:50:21.949935: [debug] Did not find shared library libgmp.so.3
@(Stack/Setup.hs:512:34)
2016-09-01 05:50:21.950069: [debug] Using standard GHC build
@(Stack/Setup.hs:530:9)
2016-09-01 05:50:22.429658: [info] Preparing to install GHC to an isolated location.
@(Stack/Setup.hs:779:5)
2016-09-01 05:50:22.430334: [info] This will not interfere with any system-level installation.
@(Stack/Setup.hs:788:5)
2016-09-01 05:50:22.431713: [debug] Downloading from https://github.com/commercialhaskell/ghc/releases/download/ghc-7.10.3-release/ghc-7.10.3b-x86_64-deb7-linux.tar.xz to /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3.tar.xz ...
@(Stack/Setup.hs:1354:5)
2016-09-01 05:50:22.431893: [debug] Will check against sha1 hash: dbee82a232536f50f5211664f152b2bf36006ac4
@(Stack/Setup.hs:1364:13)
2016-09-01 05:50:22.432110: [debug] Downloading /commercialhaskell/ghc/releases/download/ghc-7.10.3-release/ghc-7.10.3b-x86_64-deb7-linux.tar.xz
@(Network/HTTP/Download/Verified.hs:233:9)
Downloaded ghc-7.10.3.                                     
2016-09-01 05:51:06.106191: [debug] menv = fromList [("CLUTTER_BACKEND","x11"),("CLUTTER_IM_MODULE",""),("DBUS_SESSION_BUS_ADDRESS","unix:abstract=/tmp/dbus-mqyqJ7KWA7"),("DEFAULTS_PATH","/usr/share/gconf/xubuntu.default.path"),("DESKTOP_SESSION","xubuntu"),("DISPLAY",":0.0"),("GDMSESSION","xubuntu"),("GDM_LANG","de_DE"),("GLADE_CATALOG_PATH",":"),("GLADE_MODULE_PATH",":"),("GLADE_PIXMAP_PATH",":"),("GNOME_KEYRING_CONTROL",""),("GNOME_KEYRING_PID",""),("GPG_AGENT_INFO","/home/simon/.gnupg/S.gpg-agent:0:1"),("GTK_IM_MODULE",""),("GTK_OVERLAY_SCROLLING","0"),("HOME","/home/simon"),("IM_CONFIG_PHASE","1"),("INSTANCE",""),("JOB","dbus"),("LANG","de_DE.UTF-8"),("LANGUAGE","de_DE"),("LOGNAME","simon"),("LS_COLORS","rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:"),("MANDATORY_PATH","/usr/share/gconf/xubuntu.mandatory.path"),("PATH","/home/simon/bin:/home/simon/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"),("PWD","/home/simon/tmp/haddock-issue"),("QT4_IM_MODULE",""),("QT_ACCESSIBILITY","1"),("QT_IM_MODULE",""),("QT_LINUX_ACCESSIBILITY_ALWAYS_ON","1"),("QT_STYLE_OVERRIDE","gtk"),("SESSION","xubuntu"),("SESSIONTYPE",""),("SESSION_MANAGER","local/X220:@/tmp/.ICE-unix/3127,unix/X220:/tmp/.ICE-unix/3127"),("SHELL","/usr/bin/fish"),("SHLVL","1"),("SSH_AUTH_SOCK","/run/user/1000/keyring/ssh"),("TERM","xterm"),("UPSTART_EVENTS","started xsession"),("UPSTART_INSTANCE",""),("UPSTART_JOB","startxfce4"),("UPSTART_SESSION","unix:abstract=/com/ubuntu/upstart-session/1000/2725"),("USER","simon"),("XAUTHORITY","/home/simon/.Xauthority"),("XDG_CONFIG_DIRS","/etc/xdg/xdg-xubuntu:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg"),("XDG_CURRENT_DESKTOP","XFCE"),("XDG_DATA_DIRS","/usr/share/xubuntu:/usr/share/xfce4:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/usr/share"),("XDG_GREETER_DATA_DIR","/var/lib/lightdm-data/simon"),("XDG_MENU_PREFIX","xfce-"),("XDG_RUNTIME_DIR","/run/user/1000"),("XDG_SEAT","seat0"),("XDG_SEAT_PATH","/org/freedesktop/DisplayManager/Seat0"),("XDG_SESSION_DESKTOP","xubuntu"),("XDG_SESSION_ID","c2"),("XDG_SESSION_PATH","/org/freedesktop/DisplayManager/Session0"),("XDG_SESSION_TYPE","x11"),("XDG_VTNR","7"),("XMODIFIERS","")]
@(Stack/Setup.hs:907:5)
2016-09-01 05:51:06.299813: [debug] ziptool: xz
@(Stack/Setup.hs:925:5)
2016-09-01 05:51:06.300205: [debug] make: make
@(Stack/Setup.hs:926:5)
2016-09-01 05:51:06.300451: [debug] tar: tar
@(Stack/Setup.hs:927:5)
2016-09-01 05:51:06.300973: [debug] Unpacking /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3.tar.xz
@(Stack/Setup.hs:953:5)
2016-09-01 05:51:06.301607: [debug] Run process: /bin/tar Jxf /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3.tar.xz
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:21.891959: [debug] Process finished in 15589 ms: /bin/tar Jxf /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3.tar.xz
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:21.892398: [debug] Run process: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3.temp/ghc-7.10.3/configure --prefix=/home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:23.646470: [debug] Process finished in 1753 ms: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3.temp/ghc-7.10.3/configure --prefix=/home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:23.646822: [debug] Run process: /usr/bin/make install
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:53.769778: [debug] Process finished in 30122 ms: /usr/bin/make install
@(System/Process/Read.hs:277:3)
Installed GHC.    
2016-09-01 05:51:53.770100: [debug] GHC installed to /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/
@(Stack/Setup.hs:963:5)
2016-09-01 05:51:54.213684: [debug] Getting global package database location
@(Stack/GhcPkg.hs:54:5)
2016-09-01 05:51:54.214028: [debug] Run process: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:54.214877: [debug] Asking GHC for its version
@(Stack/Setup/Installed.hs:101:13)
2016-09-01 05:51:54.215243: [debug] Run process: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc --numeric-version
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:54.219612: [debug] Getting Cabal package version
@(Stack/GhcPkg.hs:171:5)
2016-09-01 05:51:54.220383: [debug] Run process: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:54.246726: [debug] Process finished in 32 ms: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:54.250115: [debug] Process finished in 34 ms: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc --numeric-version
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:54.253666: [debug] Process finished in 32 ms: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:54.254141: [debug] Resolving package entries
@(Stack/Setup.hs:234:5)
2016-09-01 05:51:54.257118: [debug] Starting to execute command inside EnvConfig
@(Stack/Runners.hs:166:18)
2016-09-01 05:51:54.257350: [debug] Parsing the cabal files of the local packages
@(Stack/Build/Source.hs:282:5)
2016-09-01 05:51:54.258989: [debug] Parsing the targets
@(Stack/Build/Source.hs:219:5)
2016-09-01 05:51:54.265288: [debug] Finding out which packages are already installed
@(Stack/Build/Installed.hs:73:5)
2016-09-01 05:51:54.265614: [debug] Trying to decode /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:68:5)
2016-09-01 05:51:54.267899: [debug] Success decoding /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:72:13)
2016-09-01 05:51:54.268186: [debug] Run process: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:54.315957: [debug] Process finished in 47 ms: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:54.343361: [debug] Ignoring package haskeline due to wanting version 0.7.2.3 instead of 0.7.2.1
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:51:54.343546: [debug] Ignoring package terminfo due to wanting version 0.4.0.2 instead of 0.4.0.1
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:51:54.344284: [debug] Ignoring package Cabal due to wanting version 1.22.8.0 instead of 1.22.5.0
@(Stack/Build/Installed.hs:196:5)
2016-09-01 05:51:54.344648: [debug] Run process: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack-1.2.0/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:54.371587: [debug] Process finished in 26 ms: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack-1.2.0/snapshots/x86_64-linux/lts-6.14/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:54.372032: [debug] Run process: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/tmp/haddock-issue/.stack-work/install/x86_64-linux/lts-6.14/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:54.397295: [debug] Process finished in 25 ms: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/tmp/haddock-issue/.stack-work/install/x86_64-linux/lts-6.14/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:54.397684: [debug] Encoding /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:51:5)
2016-09-01 05:51:54.398010: [debug] Finished writing /home/simon/tmp/haddock-issue/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:55:5)
2016-09-01 05:51:54.398534: [debug] Constructing the build plan
@(Stack/Build/ConstructPlan.hs:157:5)
2016-09-01 05:51:54.403004: [debug] Checking if we are going to build multiple executables with the same name
@(Stack/Build.hs:174:5)
2016-09-01 05:51:54.403184: [debug] Executing the build plan
@(Stack/Build/Execute.hs:359:5)
2016-09-01 05:51:54.403909: [debug] Creating process: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc -clear-package-db -global-package-db -hide-all-packages -package base -package Cabal-1.22.5.0 /tmp/stack29279/Setup.hs -o /home/simon/.stack-1.2.0/setup-exe-cache/x86_64-linux/tmp-setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 -rtsopts
@(System/Process/Run.hs:103:5)
[1 of 1] Compiling Main             ( /tmp/stack29279/Setup.hs, /tmp/stack29279/Setup.o )
Linking /home/simon/.stack-1.2.0/setup-exe-cache/x86_64-linux/tmp-setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 ...
2016-09-01 05:51:59.020201: [debug] Getting global package database location
@(Stack/GhcPkg.hs:54:5)
2016-09-01 05:51:59.020557: [debug] Run process: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:59.063728: [debug] Process finished in 42 ms: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Read.hs:277:3)
2016-09-01 05:51:59.069510: [info] Updating Haddock index for local packages and dependencies in
/home/simon/tmp/haddock-issue/.stack-work/install/x86_64-linux/lts-6.14/7.10.3/doc/all/index.html
@(Stack/Build/Haddock.hs:230:13)
2016-09-01 05:51:59.677663: [debug] Run process: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/haddock --gen-contents --gen-index -i ../haddock-issue-0.1.0.0,../haddock-issue-0.1.0.0/haddock-issue.haddock -i ../ghc-prim-0.4.0.0,../ghc-prim-0.4.0.0/ghc-prim.haddock -i ../base-4.8.2.0,../base-4.8.2.0/base.haddock -i ../integer-gmp-1.0.0.0,../integer-gmp-1.0.0.0/integer-gmp.haddock
@(System/Process/Read.hs:277:3)
2016-09-01 05:52:00.394981: [debug] Process finished in 716 ms: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/haddock --gen-contents --gen-index -i ../haddock-issue-0.1.0.0,../haddock-issue-0.1.0.0/haddock-issue.haddock -i ../ghc-prim-0.4.0.0,../ghc-prim-0.4.0.0/ghc-prim.haddock -i ../base-4.8.2.0,../base-4.8.2.0/base.haddock -i ../integer-gmp-1.0.0.0,../integer-gmp-1.0.0.0/integer-gmp.haddock
@(System/Process/Read.hs:277:3)
2016-09-01 05:52:00.403967: [info] Updating Haddock index for snapshot packages in
/home/simon/.stack-1.2.0/snapshots/x86_64-linux/lts-6.14/7.10.3/doc/index.html
@(Stack/Build/Haddock.hs:230:13)
2016-09-01 05:52:03.093905: [debug] Run process: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/haddock --gen-contents --gen-index -i ./Cabal-1.22.5.0,./Cabal-1.22.5.0/Cabal.haddock -i ./array-0.5.1.0,./array-0.5.1.0/array.haddock -i ./base-4.8.2.0,./base-4.8.2.0/base.haddock -i ./bin-package-db-0.0.0.0,./bin-package-db-0.0.0.0/bin-package-db.haddock -i ./binary-0.7.5.0,./binary-0.7.5.0/binary.haddock -i ./bytestring-0.10.6.0,./bytestring-0.10.6.0/bytestring.haddock -i ./containers-0.5.6.2,./containers-0.5.6.2/containers.haddock -i ./deepseq-1.4.1.1,./deepseq-1.4.1.1/deepseq.haddock -i ./directory-1.2.2.0,./directory-1.2.2.0/directory.haddock -i ./filepath-1.4.0.0,./filepath-1.4.0.0/filepath.haddock -i ./ghc-7.10.3,./ghc-7.10.3/ghc.haddock -i ./ghc-prim-0.4.0.0,./ghc-prim-0.4.0.0/ghc-prim.haddock -i ./haskeline-0.7.2.1,./haskeline-0.7.2.1/haskeline.haddock -i ./hoopl-3.10.0.2,./hoopl-3.10.0.2/hoopl.haddock -i ./hpc-0.6.0.2,./hpc-0.6.0.2/hpc.haddock -i ./integer-gmp-1.0.0.0,./integer-gmp-1.0.0.0/integer-gmp.haddock -i ./pretty-1.1.2.0,./pretty-1.1.2.0/pretty.haddock -i ./process-1.2.3.0,./process-1.2.3.0/process.haddock -i ./template-haskell-2.10.0.0,./template-haskell-2.10.0.0/template-haskell.haddock -i ./terminfo-0.4.0.1,./terminfo-0.4.0.1/terminfo.haddock -i ./time-1.5.0.1,./time-1.5.0.1/time.haddock -i ./transformers-0.4.2.0,./transformers-0.4.2.0/transformers.haddock -i ./unix-2.7.1.0,./unix-2.7.1.0/unix.haddock -i ./xhtml-3000.2.1,./xhtml-3000.2.1/xhtml.haddock
@(System/Process/Read.hs:277:3)
2016-09-01 05:52:06.771076: [debug] Process finished in 3676 ms: /home/simon/.stack-1.2.0/programs/x86_64-linux/ghc-7.10.3/bin/haddock --gen-contents --gen-index -i ./Cabal-1.22.5.0,./Cabal-1.22.5.0/Cabal.haddock -i ./array-0.5.1.0,./array-0.5.1.0/array.haddock -i ./base-4.8.2.0,./base-4.8.2.0/base.haddock -i ./bin-package-db-0.0.0.0,./bin-package-db-0.0.0.0/bin-package-db.haddock -i ./binary-0.7.5.0,./binary-0.7.5.0/binary.haddock -i ./bytestring-0.10.6.0,./bytestring-0.10.6.0/bytestring.haddock -i ./containers-0.5.6.2,./containers-0.5.6.2/containers.haddock -i ./deepseq-1.4.1.1,./deepseq-1.4.1.1/deepseq.haddock -i ./directory-1.2.2.0,./directory-1.2.2.0/directory.haddock -i ./filepath-1.4.0.0,./filepath-1.4.0.0/filepath.haddock -i ./ghc-7.10.3,./ghc-7.10.3/ghc.haddock -i ./ghc-prim-0.4.0.0,./ghc-prim-0.4.0.0/ghc-prim.haddock -i ./haskeline-0.7.2.1,./haskeline-0.7.2.1/haskeline.haddock -i ./hoopl-3.10.0.2,./hoopl-3.10.0.2/hoopl.haddock -i ./hpc-0.6.0.2,./hpc-0.6.0.2/hpc.haddock -i ./integer-gmp-1.0.0.0,./integer-gmp-1.0.0.0/integer-gmp.haddock -i ./pretty-1.1.2.0,./pretty-1.1.2.0/pretty.haddock -i ./process-1.2.3.0,./process-1.2.3.0/process.haddock -i ./template-haskell-2.10.0.0,./template-haskell-2.10.0.0/template-haskell.haddock -i ./terminfo-0.4.0.1,./terminfo-0.4.0.1/terminfo.haddock -i ./time-1.5.0.1,./time-1.5.0.1/time.haddock -i ./transformers-0.4.2.0,./transformers-0.4.2.0/transformers.haddock -i ./unix-2.7.1.0,./unix-2.7.1.0/unix.haddock -i ./xhtml-3000.2.1,./xhtml-3000.2.1/xhtml.haddock
@(System/Process/Read.hs:277:3)
sjakobi commented 8 years ago

A somewhat simpler repro case:

~ $ stack --resolver ghc-7.10.3 haddock base -v --system-ghc 
Version 1.2.1, Git revision a77c00b92b6edfb1ffd99a3fea9fd54b9ab1c66c (dirty) (4047 commits) x86_64 hpack-0.14.1
...
2016-09-01 06:41:20.492948: [info] Run from outside a project, using implicit global project config
@(Stack/Config.hs:432:13)
2016-09-01 06:41:20.493933: [info] Using resolver: ghc-7.10.3 specified on command line
@(Stack/Config.hs:456:32)
...
2016-09-01 06:41:21.250261: [debug] Run process: /usr/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:21.332674: [debug] Process finished in 82 ms: /usr/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:21.332905: [debug] Ignoring package ghc-prim due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.333129: [debug] Ignoring package transformers due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.333247: [debug] Ignoring package xhtml due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.333471: [debug] Ignoring package bytestring due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.333615: [debug] Ignoring package bin-package-db due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.333729: [debug] Ignoring package base due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.333845: [debug] Ignoring package ghc due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.333966: [debug] Ignoring package haskeline due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.334077: [debug] Ignoring package unix due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.334184: [debug] Ignoring package array due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.334293: [debug] Ignoring package process due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.334399: [debug] Ignoring package template-haskell due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.334581: [debug] Ignoring package filepath due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.334690: [debug] Ignoring package hpc due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.334798: [debug] Ignoring package integer-gmp due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.334907: [debug] Ignoring package directory due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.335017: [debug] Ignoring package terminfo due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.335126: [debug] Ignoring package time due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.335268: [debug] Ignoring package containers due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.335387: [debug] Ignoring package hoopl due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.335541: [debug] Ignoring package Cabal due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.335659: [debug] Ignoring package deepseq due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.335775: [debug] Ignoring package binary due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.335891: [debug] Ignoring package pretty due to it needing haddocks.
@(Stack/Build/Installed.hs:196:5)
2016-09-01 06:41:21.336075: [debug] Run process: /usr/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack/snapshots/x86_64-linux/ghc-7.10.3/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:21.369800: [debug] Process finished in 33 ms: /usr/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack/snapshots/x86_64-linux/ghc-7.10.3/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:21.370127: [debug] Run process: /usr/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack/global-project/.stack-work/install/x86_64-linux/ghc-7.10.3/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:21.400184: [debug] Process finished in 29 ms: /usr/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack/global-project/.stack-work/install/x86_64-linux/ghc-7.10.3/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:21.400393: [debug] Encoding /home/simon/.stack/global-project/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:51:5)
2016-09-01 06:41:21.400791: [debug] Finished writing /home/simon/.stack/global-project/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:55:5)
2016-09-01 06:41:21.401269: [debug] Constructing the build plan
@(Stack/Build/ConstructPlan.hs:157:5)
2016-09-01 06:41:21.401505: [error] 
While constructing the build plan, the following exceptions were encountered:

@(Stack/Build/ConstructPlan.hs:195:13)
Plan construction failed.
~ $ stack --resolver ghc-7.10.3 haddock base -v --no-system-ghc 
Version 1.2.1, Git revision a77c00b92b6edfb1ffd99a3fea9fd54b9ab1c66c (dirty) (4047 commits) x86_64 hpack-0.14.1
...
2016-09-01 06:41:25.720102: [info] Run from outside a project, using implicit global project config
@(Stack/Config.hs:432:13)
2016-09-01 06:41:25.721218: [info] Using resolver: ghc-7.10.3 specified on command line
@(Stack/Config.hs:456:32)
...
2016-09-01 06:41:26.420451: [debug] Run process: /home/simon/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:26.503990: [debug] Process finished in 83 ms: /home/simon/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:26.504640: [debug] Run process: /home/simon/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack/snapshots/x86_64-linux/ghc-7.10.3/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:26.544432: [debug] Process finished in 39 ms: /home/simon/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack/snapshots/x86_64-linux/ghc-7.10.3/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:26.544840: [debug] Run process: /home/simon/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack/global-project/.stack-work/install/x86_64-linux/ghc-7.10.3/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:26.574163: [debug] Process finished in 29 ms: /home/simon/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --user --no-user-package-db --package-db /home/simon/.stack/global-project/.stack-work/install/x86_64-linux/ghc-7.10.3/7.10.3/pkgdb dump --expand-pkgroot
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:26.574413: [debug] Encoding /home/simon/.stack/global-project/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:51:5)
2016-09-01 06:41:26.574875: [debug] Finished writing /home/simon/.stack/global-project/.stack-work/installed-cache.bin
@(Data/Store/VersionTagged.hs:55:5)
2016-09-01 06:41:26.575512: [debug] Constructing the build plan
@(Stack/Build/ConstructPlan.hs:157:5)
2016-09-01 06:41:26.586148: [debug] Checking if we are going to build multiple executables with the same name
@(Stack/Build.hs:174:5)
2016-09-01 06:41:26.586357: [debug] Executing the build plan
@(Stack/Build/Execute.hs:359:5)
2016-09-01 06:41:26.586853: [debug] Getting global package database location
@(Stack/GhcPkg.hs:54:5)
2016-09-01 06:41:26.586987: [debug] Run process: /home/simon/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:26.613109: [debug] Process finished in 25 ms: /home/simon/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:26.617399: [info] Updating Haddock index for snapshot packages in
/home/simon/.stack/snapshots/x86_64-linux/ghc-7.10.3/7.10.3/doc/index.html
@(Stack/Build/Haddock.hs:230:13)
2016-09-01 06:41:29.288654: [debug] Run process: /home/simon/.stack/programs/x86_64-linux/ghc-7.10.3/bin/haddock --gen-contents --gen-index -i ./Cabal-1.22.5.0,./Cabal-1.22.5.0/Cabal.haddock -i ./array-0.5.1.0,./array-0.5.1.0/array.haddock -i ./base-4.8.2.0,./base-4.8.2.0/base.haddock -i ./bin-package-db-0.0.0.0,./bin-package-db-0.0.0.0/bin-package-db.haddock -i ./binary-0.7.5.0,./binary-0.7.5.0/binary.haddock -i ./bytestring-0.10.6.0,./bytestring-0.10.6.0/bytestring.haddock -i ./containers-0.5.6.2,./containers-0.5.6.2/containers.haddock -i ./deepseq-1.4.1.1,./deepseq-1.4.1.1/deepseq.haddock -i ./directory-1.2.2.0,./directory-1.2.2.0/directory.haddock -i ./filepath-1.4.0.0,./filepath-1.4.0.0/filepath.haddock -i ./ghc-7.10.3,./ghc-7.10.3/ghc.haddock -i ./ghc-prim-0.4.0.0,./ghc-prim-0.4.0.0/ghc-prim.haddock -i ./haskeline-0.7.2.1,./haskeline-0.7.2.1/haskeline.haddock -i ./hoopl-3.10.0.2,./hoopl-3.10.0.2/hoopl.haddock -i ./hpc-0.6.0.2,./hpc-0.6.0.2/hpc.haddock -i ./integer-gmp-1.0.0.0,./integer-gmp-1.0.0.0/integer-gmp.haddock -i ./pretty-1.1.2.0,./pretty-1.1.2.0/pretty.haddock -i ./process-1.2.3.0,./process-1.2.3.0/process.haddock -i ./template-haskell-2.10.0.0,./template-haskell-2.10.0.0/template-haskell.haddock -i ./terminfo-0.4.0.1,./terminfo-0.4.0.1/terminfo.haddock -i ./time-1.5.0.1,./time-1.5.0.1/time.haddock -i ./transformers-0.4.2.0,./transformers-0.4.2.0/transformers.haddock -i ./unix-2.7.1.0,./unix-2.7.1.0/unix.haddock -i ./xhtml-3000.2.1,./xhtml-3000.2.1/xhtml.haddock
@(System/Process/Read.hs:277:3)
2016-09-01 06:41:32.931582: [debug] Process finished in 3642 ms: /home/simon/.stack/programs/x86_64-linux/ghc-7.10.3/bin/haddock --gen-contents --gen-index -i ./Cabal-1.22.5.0,./Cabal-1.22.5.0/Cabal.haddock -i ./array-0.5.1.0,./array-0.5.1.0/array.haddock -i ./base-4.8.2.0,./base-4.8.2.0/base.haddock -i ./bin-package-db-0.0.0.0,./bin-package-db-0.0.0.0/bin-package-db.haddock -i ./binary-0.7.5.0,./binary-0.7.5.0/binary.haddock -i ./bytestring-0.10.6.0,./bytestring-0.10.6.0/bytestring.haddock -i ./containers-0.5.6.2,./containers-0.5.6.2/containers.haddock -i ./deepseq-1.4.1.1,./deepseq-1.4.1.1/deepseq.haddock -i ./directory-1.2.2.0,./directory-1.2.2.0/directory.haddock -i ./filepath-1.4.0.0,./filepath-1.4.0.0/filepath.haddock -i ./ghc-7.10.3,./ghc-7.10.3/ghc.haddock -i ./ghc-prim-0.4.0.0,./ghc-prim-0.4.0.0/ghc-prim.haddock -i ./haskeline-0.7.2.1,./haskeline-0.7.2.1/haskeline.haddock -i ./hoopl-3.10.0.2,./hoopl-3.10.0.2/hoopl.haddock -i ./hpc-0.6.0.2,./hpc-0.6.0.2/hpc.haddock -i ./integer-gmp-1.0.0.0,./integer-gmp-1.0.0.0/integer-gmp.haddock -i ./pretty-1.1.2.0,./pretty-1.1.2.0/pretty.haddock -i ./process-1.2.3.0,./process-1.2.3.0/process.haddock -i ./template-haskell-2.10.0.0,./template-haskell-2.10.0.0/template-haskell.haddock -i ./terminfo-0.4.0.1,./terminfo-0.4.0.1/terminfo.haddock -i ./time-1.5.0.1,./time-1.5.0.1/time.haddock -i ./transformers-0.4.2.0,./transformers-0.4.2.0/transformers.haddock -i ./unix-2.7.1.0,./unix-2.7.1.0/unix.haddock -i ./xhtml-3000.2.1,./xhtml-3000.2.1/xhtml.haddock
@(System/Process/Read.hs:277:3)

I'm under the impression that something is wrong with my system GHC installation on Ubuntu 16.04:

~ $ apt show ghc
...
Version: 7.10.3-7
...

Could anyone else please try to reproduce this on both Ubuntu 16.04 and other systems?

(I tentatively remove the "bug" label)

sjakobi commented 8 years ago

A pointer from @snoyberg and sudo apt install ghc-doc fixed it.

berdario commented 8 years ago

Could we get a better error message for this?

mgsloan commented 8 years ago

@berdario Sure, I've opened https://github.com/commercialhaskell/stack/issues/2696 about that.