Closed recursion-ninja closed 6 years ago
I'm afraid I've never seen this error before, so I can't speculate on what is going on here.
@phadej, have you seen this happen before?
You can replicate by:
git clone https://github.com/amnh/PCG/commit/88fed266bfc033641c0f76fa2e148e9ea1fd2217
cd PCG
make
Please try with stack-1.7.0.1
https://github.com/commercialhaskell/stack/releases/tag/v1.7.0.1, I suspect there are old Cabal-2.0 (GHC-8.0 / stack-1.6.5) trying to read something produced by Cabal-2.2 (GHC-8.4)
Also you use:
LTS-11 which is GHC-8.0, so includes Cabal-2.0 - that's probably the cause, 1.6.5 might work too, if you add Cabal-2.2.0.1
to extra-deps.
I tried rebuilding the repository that depends on distributive-0.5.3
with nightly-2018-04-18
and stack v1.6.5
and that appears to have worked. distributive-0.5.3
didn't fail while the project dependencies were being built. I'm confused as to why switching the resolver from lts-11.5
to nightly-2018-04-18
would resolve this, given that the ghc-8.4.1
compiler was explicitly stated in the stack.yaml
file in both cases.
Regardless, this isn't a problem with distributive-0.5.3
. Rather it's a problem with stack
's predictability, documentation, and user facing error messages.
See the incomprehensible build error below:
I'm guessing this has something to do with the custom
Setup.hs
. Is this necessary to build the package?