Skip to content

Instantly share code, notes, and snippets.

@nmattia
Created December 27, 2017 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmattia/e5d146260c841e44005070205249bd01 to your computer and use it in GitHub Desktop.
Save nmattia/e5d146260c841e44005070205249bd01 to your computer and use it in GitHub Desktop.
Stack cannot find downloaded snapshot packages
$ stack build reflex --verbose
Version 1.7.0, Git revision 8266a06536ecf87a9755e7800a3f4496fb10c61b (5509 commits) x86_64 hpack-0.20.0
2017-12-27 21:31:42.056973: [debug] Checking for project config at: /home/nicolas/projects/stack-custom-test/stack.yaml
@(Stack/Config.hs:843:9)
2017-12-27 21:31:42.057253: [debug] Loading project config file stack.yaml
@(Stack/Config.hs:869:13)
2017-12-27 21:31:42.058608: [debug] Loading snapshot.yaml build plan from Right "/home/nicolas/projects/stack-custom-test/snapshot.yaml"
@(Stack/Snapshot.hs:243:3)
2017-12-27 21:31:42.059034: [debug] Decoding build plan from: /home/nicolas/.stack/build-plan/lts-9.9.yaml
@(Stack/Snapshot.hs:150:5)
2017-12-27 21:31:42.059302: [debug] Trying to decode /home/nicolas/.stack/build-plan-cache/lts-9.9.cache
@(Data/Store/VersionTagged.hs:66:5)
2017-12-27 21:31:42.065000: [debug] Success decoding /home/nicolas/.stack/build-plan-cache/lts-9.9.cache
@(Data/Store/VersionTagged.hs:70:13)
2017-12-27 21:31:42.065774: [debug] Run process: /sbin/ldconfig -p
@(System/Process/Log.hs:37:3)
2017-12-27 21:31:42.068853: [debug] Process finished in 2ms: /sbin/ldconfig -p
@(System/Process/Log.hs:44:3)
2017-12-27 21:31:42.069179: [debug] Run process: /usr/bin/gcc -v
@(System/Process/Log.hs:37:3)
2017-12-27 21:31:42.075194: [debug] Process finished in 5ms: /usr/bin/gcc -v
@(System/Process/Log.hs:44:3)
2017-12-27 21:31:42.075491: [debug] PIE enabled
@(Stack/Setup.hs:589:17)
2017-12-27 21:31:42.076170: [debug] Found shared library libtinfo.so.5 in 'ldconfig -p' output
@(Stack/Setup.hs:565:29)
2017-12-27 21:31:42.076773: [debug] Did not find shared library libtinfo.so.6
@(Stack/Setup.hs:579:38)
2017-12-27 21:31:42.076948: [debug] Did not find shared library libncursesw.so.6
@(Stack/Setup.hs:579:38)
2017-12-27 21:31:42.077147: [debug] Found shared library libgmp.so.10 in 'ldconfig -p' output
@(Stack/Setup.hs:565:29)
2017-12-27 21:31:42.077277: [debug] Did not find shared library libgmp.so.3
@(Stack/Setup.hs:579:38)
2017-12-27 21:31:42.077336: [debug] Using standard GHC build
@(Stack/Setup.hs:617:9)
2017-12-27 21:31:42.077762: [debug] Getting global package database location
@(Stack/GhcPkg.hs:46:5)
2017-12-27 21:31:42.078005: [debug] Asking GHC for its version
@(Stack/Setup/Installed.hs:98:13)
2017-12-27 21:31:42.078228: [debug] Getting Cabal package version
@(Stack/GhcPkg.hs:185:5)
2017-12-27 21:31:42.078304: [debug] Run process: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Log.hs:37:3)
2017-12-27 21:31:42.079138: [debug] Run process: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc --numeric-version
@(System/Process/Log.hs:37:3)
2017-12-27 21:31:42.080160: [debug] Run process: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(System/Process/Log.hs:37:3)
2017-12-27 21:31:42.102362: [debug] Process finished in 23ms: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Log.hs:44:3)
2017-12-27 21:31:42.110430: [debug] Process finished in 30ms: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(System/Process/Log.hs:44:3)
2017-12-27 21:31:42.122651: [debug] Process finished in 43ms: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc --numeric-version
@(System/Process/Log.hs:44:3)
2017-12-27 21:31:42.122780: [debug] GHC version is: ghc-8.0.2
@(Stack/Setup/Installed.hs:102:13)
2017-12-27 21:31:42.122844: [debug] Resolving package entries
@(Stack/Setup.hs:250:5)
2017-12-27 21:31:42.123374: [debug] Trying to decode /home/nicolas/.stack/loaded-snapshot-cache/x86_64-linux/ghc-8.0.2/custom-Dummy-c5rMqZb3hphW.cache
@(Data/Store/VersionTagged.hs:66:5)
2017-12-27 21:31:42.123513: [debug] Exception ignored when attempting to load /home/nicolas/.stack/loaded-snapshot-cache/x86_64-linux/ghc-8.0.2/custom-Dummy-c5rMqZb3hphW.cache: /home/nicolas/.stack/loaded-snapshot-cache/x86_64-linux/ghc-8.0.2/custom-Dummy-c5rMqZb3hphW.cache: openBinaryFile: does not exist (No such file or directory)
@(Data/Store/VersionTagged.hs:84:9)
2017-12-27 21:31:42.123658: [debug] Failure decoding /home/nicolas/.stack/loaded-snapshot-cache/x86_64-linux/ghc-8.0.2/custom-Dummy-c5rMqZb3hphW.cache
@(Data/Store/VersionTagged.hs:73:13)
2017-12-27 21:31:42.123774: [debug] Trying to decode /home/nicolas/.stack/loaded-snapshot-cache/x86_64-linux/ghc-8.0.2/lts-9.9.cache
@(Data/Store/VersionTagged.hs:66:5)
2017-12-27 21:31:42.158305: [debug] Success decoding /home/nicolas/.stack/loaded-snapshot-cache/x86_64-linux/ghc-8.0.2/lts-9.9.cache
@(Data/Store/VersionTagged.hs:70:13)
2017-12-27 21:31:42.158698: [info] Cloning d9ef8457dfd140fde32d15a6959a15ddcd7e15e4 from http://github.com/reflex-frp/reflex.git/
@(Stack/PackageLocation.hs:209:17)
2017-12-27 21:31:42.159384: [debug] Creating process: /usr/bin/git clone --recursive http://github.com/reflex-frp/reflex.git/ /home/nicolas/projects/stack-custom-test/.stack-work/downloaded/yp7rhDlvsndZ
@(System/Process/Log.hs:22:3)
Cloning into '/home/nicolas/projects/stack-custom-test/.stack-work/downloaded/yp7rhDlvsndZ'...
remote: Counting objects: 3473, done.
remote: Total 3473 (delta 0), reused 0 (delta 0), pack-reused 3472
Receiving objects: 100% (3473/3473), 910.78 KiB | 157.00 KiB/s, done.
Resolving deltas: 100% (2130/2130), done.
Checking connectivity... done.
2017-12-27 21:31:49.784750: [debug] Run process: /usr/bin/git --git-dir=.git reset --hard d9ef8457dfd140fde32d15a6959a15ddcd7e15e4 --
@(System/Process/Log.hs:37:3)
2017-12-27 21:31:49.793838: [debug] Process finished in 8ms: /usr/bin/git --git-dir=.git reset --hard d9ef8457dfd140fde32d15a6959a15ddcd7e15e4 --
@(System/Process/Log.hs:44:3)
2017-12-27 21:31:49.830061: [debug] Encoding /home/nicolas/.stack/loaded-snapshot-cache/x86_64-linux/ghc-8.0.2/custom-Dummy-c5rMqZb3hphW.cache
@(Data/Store/VersionTagged.hs:48:5)
2017-12-27 21:31:49.841814: [debug] Finished writing /home/nicolas/.stack/loaded-snapshot-cache/x86_64-linux/ghc-8.0.2/custom-Dummy-c5rMqZb3hphW.cache
@(Data/Store/VersionTagged.hs:53:5)
2017-12-27 21:31:49.842172: [debug] Run process: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg init /home/nicolas/.stack/snapshots/x86_64-linux/custom-Dummy-c5rMqZb3hphW/8.0.2/pkgdb/
@(System/Process/Log.hs:37:3)
2017-12-27 21:31:49.852726: [debug] Process finished in 10ms: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg init /home/nicolas/.stack/snapshots/x86_64-linux/custom-Dummy-c5rMqZb3hphW/8.0.2/pkgdb/
@(System/Process/Log.hs:44:3)
2017-12-27 21:31:49.853093: [debug] Run process: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg init /home/nicolas/projects/stack-custom-test/.stack-work/install/x86_64-linux/custom-Dummy-c5rMqZb3hphW/8.0.2/pkgdb/
@(System/Process/Log.hs:37:3)
2017-12-27 21:31:49.864013: [debug] Process finished in 10ms: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg init /home/nicolas/projects/stack-custom-test/.stack-work/install/x86_64-linux/custom-Dummy-c5rMqZb3hphW/8.0.2/pkgdb/
@(System/Process/Log.hs:44:3)
2017-12-27 21:31:49.864751: [debug] Starting to execute command inside EnvConfig
@(Stack/Runners.hs:170:18)
2017-12-27 21:31:49.864887: [debug] Parsing the targets
@(Stack/Build/Target.hs:460:3)
2017-12-27 21:31:49.898240: [debug] Exception ignored when attempting to load /home/nicolas/projects/stack-custom-test/.stack-work/dist/x86_64-linux/Cabal-1.24.2.0/stack-build-cache: /home/nicolas/projects/stack-custom-test/.stack-work/dist/x86_64-linux/Cabal-1.24.2.0/stack-build-cache: openBinaryFile: does not exist (No such file or directory)
@(Data/Store/VersionTagged.hs:84:9)
2017-12-27 21:31:49.898471: [debug] Start: getPackageFiles /home/nicolas/projects/stack-custom-test/stack-custom-test.cabal
@(Stack/PrettyPrint.hs:134:16)
2017-12-27 21:31:49.898749: [debug] Finished in 0ms: getPackageFiles /home/nicolas/projects/stack-custom-test/stack-custom-test.cabal
@(Stack/PrettyPrint.hs:134:16)
2017-12-27 21:31:49.900541: [debug] Finding out which packages are already installed
@(Stack/Build/Installed.hs:60:5)
2017-12-27 21:31:49.900848: [debug] Run process: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Log.hs:37:3)
2017-12-27 21:31:49.929757: [debug] Process finished in 28ms: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg --global --no-user-package-db dump --expand-pkgroot
@(System/Process/Log.hs:44:3)
2017-12-27 21:31:49.930536: [debug] Ignoring package haskeline due to wanting version 0.7.4.0 instead of 0.7.3.0
@(Stack/Build/Installed.hs:190:5)
2017-12-27 21:31:49.930698: [debug] Ignoring package terminfo due to wanting version 0.4.1.0 instead of 0.4.0.2
@(Stack/Build/Installed.hs:190:5)
2017-12-27 21:31:49.930797: [debug] Ignoring package xhtml due to wanting version 3000.2.2 instead of 3000.2.1
@(Stack/Build/Installed.hs:190:5)
2017-12-27 21:31:49.932228: [debug] Run process: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg --user --no-user-package-db --package-db /home/nicolas/.stack/snapshots/x86_64-linux/custom-Dummy-c5rMqZb3hphW/8.0.2/pkgdb dump --expand-pkgroot
@(System/Process/Log.hs:37:3)
2017-12-27 21:31:49.953162: [debug] Process finished in 20ms: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg --user --no-user-package-db --package-db /home/nicolas/.stack/snapshots/x86_64-linux/custom-Dummy-c5rMqZb3hphW/8.0.2/pkgdb dump --expand-pkgroot
@(System/Process/Log.hs:44:3)
2017-12-27 21:31:49.953522: [debug] Run process: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg --user --no-user-package-db --package-db /home/nicolas/projects/stack-custom-test/.stack-work/install/x86_64-linux/custom-Dummy-c5rMqZb3hphW/8.0.2/pkgdb dump --expand-pkgroot
@(System/Process/Log.hs:37:3)
2017-12-27 21:31:49.976119: [debug] Process finished in 22ms: /home/nicolas/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg --user --no-user-package-db --package-db /home/nicolas/projects/stack-custom-test/.stack-work/install/x86_64-linux/custom-Dummy-c5rMqZb3hphW/8.0.2/pkgdb dump --expand-pkgroot
@(System/Process/Log.hs:44:3)
2017-12-27 21:31:49.976633: [debug] Constructing the build plan
@(Stack/Build/ConstructPlan.hs:180:5)
2017-12-27 21:31:49.977309: [debug] Trying to decode /home/nicolas/.stack/indices/Hackage/01-index.cache
@(Data/Store/VersionTagged.hs:66:5)
2017-12-27 21:31:50.172142: [debug] Success decoding /home/nicolas/.stack/indices/Hackage/01-index.cache
@(Data/Store/VersionTagged.hs:70:13)
2017-12-27 21:31:50.174572: [info] Didn't see reflex-0.5.0 in your package indices.
Updating and trying again.
@(Stack/Fetch.hs:374:33)
2017-12-27 21:31:50.179039: [info] Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
@(Stack/PackageIndex.hs:307:24)
2017-12-27 21:31:50.182902: [info] Downloading timestamp
@(Stack/PackageIndex.hs:307:24)
2017-12-27 21:31:50.838776: [info] No updates to your package index were found
@(Stack/PackageIndex.hs:362:14)
Update complete
2017-12-27 21:31:52.297402: [debug] Trying to decode /home/nicolas/.stack/indices/Hackage/01-index.cache
@(Data/Store/VersionTagged.hs:66:5)
2017-12-27 21:31:52.552392: [debug] Success decoding /home/nicolas/.stack/indices/Hackage/01-index.cache
@(Data/Store/VersionTagged.hs:70:13)
The following package identifiers were not found in your indices: reflex-0.5.0
Possible candidates: reflex-0.2, reflex-0.4.0, reflex-0.0.1, reflex-0.3.2, reflex-0.3, reflex-0.1.1, reflex-0.1.0, reflex-0.3.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment