{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/2047","repository_url":"https://api.github.com/repos/commercialhaskell/stack","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2047/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2047/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2047/events","html_url":"https://github.com/commercialhaskell/stack/issues/2047","id":149463620,"number":2047,"title":"Unusual strange errors after recent stack updates","user":{"login":"gromakovsky","id":2556409,"avatar_url":"https://avatars.githubusercontent.com/u/2556409?v=3","gravatar_id":"","url":"https://api.github.com/users/gromakovsky","html_url":"https://github.com/gromakovsky","followers_url":"https://api.github.com/users/gromakovsky/followers","following_url":"https://api.github.com/users/gromakovsky/following{/other_user}","gists_url":"https://api.github.com/users/gromakovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/gromakovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gromakovsky/subscriptions","organizations_url":"https://api.github.com/users/gromakovsky/orgs","repos_url":"https://api.github.com/users/gromakovsky/repos","events_url":"https://api.github.com/users/gromakovsky/events{/privacy}","received_events_url":"https://api.github.com/users/gromakovsky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/resolution:%20upstream%20issue","name":"resolution: upstream issue","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-04-19T13:37:34Z","updated_at":"2016-05-18T22:50:51Z","closed_at":null,"body":"First of all, I want to notice that I feel a bit awkward writting it, because I have no idea how to reproduce these errors and maybe they are not reproducible on other machines at all. Anyway, after such errors started happenning too often and for more than project I decided that I shouldn't silently ignore them and rebuild, but open an issue.\r\n\r\nI use stack version 1.0.4.3-5 from official Archlinux package (`community/stack`). I have been using it for a long time and everything was fine. However, after I started writing a new project some strange errors started to occur. It's worth mentioning that before it there were multiple updates of `community/stack` package. For the first time I didn't care much about these errors, `stack clean && stack build` usually was enough (though sometimes build failed even after clean). Then I started testing my code, so I needed to rebuild it frequently and I got too much errors so that I even made screenshots to share with my colleagues. Here they are:\r\n* http://i.imgur.com/e7yqfVz.png\r\n* http://i.imgur.com/tofqau8.png\r\n* http://i.imgur.com/uVksS8X.png\r\n* http://i.imgur.com/BPeHOum.png\r\n\r\nThere were other errors too, I can collect more if needed, but I guess these 4 are enough to see that something is broken. Unfortunately, I don't have printed versions, because I didn't plan to open an issue at that time.\r\n\r\nToday I switched to work on another project, I never had any difficulties building it. Before it I removed `~/.stack` directory, so `stack build` had to download whole `lts-5.8` snapshot used in that project. Running `stack build rscoin` resulted into this error:\r\n```\r\nlens-4.13: configure\r\nProgress: 75/77\r\n--  While building package lens-4.13 using:\r\n      /tmp/stack13392/lens-4.13/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.5.0 configure --with-ghc=/usr/sbin/ghc --with-ghc-pkg=/usr/sbin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.8/7.10.3/pkgdb --libdir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.8/7.10.3/lib --bindir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.8/7.10.3/bin --datadir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.8/7.10.3/share --libexecdir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.8/7.10.3/libexec --sysconfdir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.8/7.10.3/etc --docdir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.8/7.10.3/doc/lens-4.13 --htmldir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.8/7.10.3/doc/lens-4.13 --haddockdir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.8/7.10.3/doc/lens-4.13 --dependency=array=array-0.5.1.0-960bf9ae8875cc30355e086f8853a049 --dependency=base=base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d --dependency=base-orphans=base-orphans-0.5.3-d2110f3b0d07b67c48bf5cca13f2d1ca --dependency=bifunctors=bifunctors-5.2-8e9eb5f30e00ac757b85f60097b2d87f --dependency=bytestring=bytestring-0.10.6.0-c60f4c543b22c7f7293a06ae48820437 --dependency=comonad=comonad-4.2.7.2-2902545df4237661cfc48aebbdfc77b0 --dependency=containers=containers-0.5.6.2-e59c9b78d840fa743d4169d4bea15592 --dependency=contravariant=contravariant-1.4-7424e4eaef22fe87466b122448986ba0 --dependency=distributive=distributive-0.5.0.2-315fc6024941769bf6205f1e052600ca --dependency=exceptions=exceptions-0.8.2.1-08ed62d2282590eb80eba3e5c42a5f4e --dependency=filepath=filepath-1.4.0.0-f97d1e4aebfd7a03be6980454fe31d6e --dependency=free=free-4.12.4-a17433356b93fe942aae4e06aa7e9d53 --dependency=ghc-prim=ghc-prim-0.4.0.0-6cdc86811872333585fa98756aa7c51e --dependency=hashable=hashable-1.2.4.0-1c5b5b3e4d9b3066cec16b077238de40 --dependency=kan-extensions=kan-extensions-4.2.3-7c0f83b6feb557d22ba17f71ec2cac8d --dependency=mtl=mtl-2.2.1-3af90341e75ee52dfc4e3143b4e5d219 --dependency=parallel=parallel-3.2.1.0-13fa56575e4752a542f0b618706881f7 --dependency=profunctors=profunctors-5.2-f5770bf0201a96b9d6b05ea06a58777d --dependency=reflection=reflection-2.1.2-a1800076486d650159694cb5f635481f --dependency=semigroupoids=semigroupoids-5.0.1-c2fda9d86385e6999b70b52df403fdca --dependency=semigroups=semigroups-0.18.1-9f7035f24a4808c366583d94ad55bc8e --dependency=tagged=tagged-0.8.3-21c7d9e94c80e78986722ec9a3df67cf --dependency=template-haskell=template-haskell-2.10.0.0-3c4cb52230f347282af9b2817f013181 --dependency=text=text-1.2.2.0-daec687352505adca80a15e023cbae5c --dependency=transformers=transformers-0.4.2.0-81450cd8f86b36eaa8fa0cbaf6efc3a3 --dependency=transformers-compat=transformers-compat-0.4.0.4-8aa4073730c676dbe210ea8bffd8d092 --dependency=unordered-containers=unordered-containers-0.2.5.1-6ad25c3b0727ccd065df1f0dd244dbf2 --dependency=vector=vector-0.11.0.0-299aefb173ce5a731565d31f609a0cfd --dependency=void=void-0.7.1-67d9e27bca8d1d87341bea03c23b37c5\r\n    Process exited with code: ExitFailure 1\r\n    Logs have been written to: /home/gromak/Work/rscoin/.stack-work/logs/lens-4.13.log\r\n\r\n    [1 of 1] Compiling Main             ( /tmp/stack13392/lens-4.13/Setup.lhs, /tmp/stack13392/lens-4.13/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/setup/Main.o )\r\n    Linking /tmp/stack13392/lens-4.13/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/setup/setup ...\r\n    Configuring lens-4.13...\r\n    setup: The following installed packages are broken because other packages they\r\n    depend on are missing. These broken packages must be rebuilt before they can\r\n    be used.\r\n    package parallel-3.2.1.0 is broken due to missing package\r\n    containers-0.5.6.2-59326c33e30ec8f6afd574cbac625bbb\r\n```\r\nThen I tried to rebuild it, but error didn't disappear. Then I tried `lts-5.12` and got another error:\r\n```\r\nProgress: 7/63\r\n--  While building package ansi-terminal-0.6.2.3 using:\r\n      /home/gromak/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.5.0 configure --with-ghc=/usr/sbin/ghc --with-ghc-pkg=/usr/sbin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.12/7.10.3/pkgdb --libdir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.12/7.10.3/lib --bindir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.12/7.10.3/bin --datadir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.12/7.10.3/share --libexecdir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.12/7.10.3/libexec --sysconfdir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.12/7.10.3/etc --docdir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.12/7.10.3/doc/ansi-terminal-0.6.2.3 --htmldir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.12/7.10.3/doc/ansi-terminal-0.6.2.3 --haddockdir=/home/gromak/.stack/snapshots/x86_64-linux/lts-5.12/7.10.3/doc/ansi-terminal-0.6.2.3 --dependency=base=base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d --dependency=unix=unix-2.7.1.0-343d4f566f30113da92e819f4a148640\r\n    Process exited with code: ExitFailure 1\r\n    Logs have been written to: /home/gromak/Work/rscoin/.stack-work/logs/ansi-terminal-0.6.2.3.log\r\n\r\n    Configuring ansi-terminal-0.6.2.3...\r\n    setup-Simple-Cabal-1.22.5.0-ghc-7.10.3: '/usr/sbin/ghc-pkg' exited with an\r\n    error:\r\n    ghc-pkg:\r\n    /home/gromak/.stack/snapshots/x86_64-linux/lts-5.12/7.10.3/pkgdb/cereal-0.5.1.0-b8a30f8877fa63f4f84ceceaab55715e.conf:\r\n    openFile: does not exist (No such file or directory)\r\n```\r\nHowever, running `stack clean; stack build` eliminated this error.\r\n\r\nHere is a gist containing two logs (building with 5.8 and 5.12): https://gist.github.com/gromakovsky/4f38f05c44e3a525f9d2c3fa1a0d0b97\r\n\r\nIn coclusion I want to apologise for not providing ways to reproduce any of these errors. First of all, I don't know how to reproduce it on my machine (as I said, these errors happen non-deterministically) and don't have enough time to research it, trying to find a deterministically reproducible example. Also I have a feeling that such problems may be related to Archlinux, or maybe even my particular machine, so I'm not sure if it will be possible to reproduce them somewhere else."},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/220181341","html_url":"https://github.com/commercialhaskell/stack/issues/2047#issuecomment-220181341","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2047","id":220181341,"user":{"login":"mgsloan","id":22570,"avatar_url":"https://avatars.githubusercontent.com/u/22570?v=3","gravatar_id":"","url":"https://api.github.com/users/mgsloan","html_url":"https://github.com/mgsloan","followers_url":"https://api.github.com/users/mgsloan/followers","following_url":"https://api.github.com/users/mgsloan/following{/other_user}","gists_url":"https://api.github.com/users/mgsloan/gists{/gist_id}","starred_url":"https://api.github.com/users/mgsloan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgsloan/subscriptions","organizations_url":"https://api.github.com/users/mgsloan/orgs","repos_url":"https://api.github.com/users/mgsloan/repos","events_url":"https://api.github.com/users/mgsloan/events{/privacy}","received_events_url":"https://api.github.com/users/mgsloan/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T22:50:51Z","updated_at":"2016-05-18T22:50:51Z","body":"Are all of  your modules listed in your cabal file?"}}