Running 'stack haddock' in project fails while building 'zlib' on Win 7 64-bit

22 views
Skip to first unread message

Lance Clark

unread,
Mar 16, 2018, 11:39:57 AM3/16/18
to haskell-stack

Got this when I ran 'stack haddock' in my project on Windows 7 64-bit

...
tagged-0.8.5: haddock
random-shuffle-0.0.4: haddock
random-shuffle-0.0.4: copy/register
unliftio-0.2.4.0: configure
transformers-base-0.4.4: build
tagged-0.8.5: copy/register
transformers-base-0.4.4: haddock
vector-0.12.0.1: configure
unliftio-0.2.4.0: build
transformers-base-0.4.4: copy/register
void-0.7.2: configure
vector-0.12.0.1: build
word8-0.1.3: configure
void-0.7.2: build
void-0.7.2: haddock
void-0.7.2: copy/register
unliftio-0.2.4.0: haddock
monad-control-1.0.2.3: configure
word8-0.1.3: build
word8-0.1.3: haddock
unliftio-0.2.4.0: copy/register
zlib-0.6.1.2: configure
monad-control-1.0.2.3: build
foundation-0.0.17: haddock
word8-0.1.3: copy/register
monad-control-1.0.2.3: haddock
monad-control-1.0.2.3: copy/register
text-1.2.2.2: haddock
foundation-0.0.17: copy/register
text-1.2.2.2: copy/register
Cabal-2.0.1.1: haddock
Cabal-2.0.1.1: copy/register
vector-0.12.0.1: haddock
vector-0.12.0.1: copy/register
Progress: 50/98
--  While building custom Setup.hs for package zlib-0.6.1.2 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe --builddir=.stack-work\dist\5c8418a7 configure --with-ghc=C:\Users\lance.clark\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc.EXE --with-ghc-pkg=C:\Users\lance.clark\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\180ba486\pkgdb --libdir=C:\sr\snapshots\180ba486\lib --bindir=C:\sr\snapshots\180ba486\bin --datadir=C:\sr\snapshots\180ba486\share --libexecdir=C:\sr\snapshots\180ba486\libexec --sysconfdir=C:\sr\snapshots\180ba486\etc --docdir=C:\sr\snapshots\180ba486\doc\zlib-0.6.1.2 --htmldir=C:\sr\snapshots\180ba486\doc\zlib-0.6.1.2 --haddockdir=C:\sr\snapshots\180ba486\doc\zlib-0.6.1.2 --dependency=base=base-4.10.1.0 --dependency=bytestring=bytestring-0.10.8.2 --extra-include-dirs=C:\Users\lance.clark\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\include --extra-lib-dirs=C:\Users\lance.clark\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\bin --extra-lib-dirs=C:\Users\lance.clark\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\lib
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Users\lance.clark\Projects\haskell\webservice\.stack-work\logs\zlib-0.6.1.2.log
    Configuring zlib-0.6.1.2...
    Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe: ghc-pkg dump failed: dieVerbatim:
    user error (Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe:
    'C:\Users\lance.clark\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc-pkg.EXE'
    exited with an error:
    ghc-pkg.EXE:
    C:\sr\snapshots\180ba486\pkgdb\unliftio-0.2.4.0-IVTGK3mHtkhHiDy8XbDoWC.conf:
    getModificationTime:getFileTimes:CreateFile
    "C:\\sr\\snapshots\\180ba486\\pkgdb\\unliftio-0.2.4.0-IVTGK3mHtkhHiDy8XbDoWC.conf":
    does not exist (The system cannot find the file specified.)
    )


Lance Clark

unread,
Mar 16, 2018, 1:53:31 PM3/16/18
to haskell-stack
I ran 'stack haddock -v' to see if I could get more information about the failure, and it just ran successfully with no errors. Not a clue what happened.
Reply all
Reply to author
Forward
0 new messages