parconc-examples icon indicating copy to clipboard operation
parconc-examples copied to clipboard

Stack build fails on Archlinux

Open dlqs opened this issue 3 years ago • 1 comments

Cloning from master and stack build produces the error pasted below.

I tried the recommended action to add to extra-deps but it seemed to lead me down an endless path of adding things to extra-deps.

Stack version 2.7.1, Linux 5.9, HEAD at 840a3f5

Cabal file warning in /parconc-examples/parconc-examples.cabal@281:3: The field "build-tools" is deprecated in the Cabal specification version 2.0. Please use 'build-tool-depends' field

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for parconc-examples-0.4.8(+accelerate +distributed):
    Cabal-2.0.1.1 from stack configuration does not match >=2.2  (latest matching version is 3.4.0.0)
needed since parconc-examples is a build target.

Some different approaches to resolving this:

  * Set 'allow-newer: true'
    in /.stack/config.yaml to ignore all version constraints and build anyway.

  * Recommended action: try adding the following to your extra-deps
    in /parconc-examples/stack.yaml:

- Cabal-3.4.0.0@sha256:74ca2bc93297dc20b291c8dc721055278aa4a7942b0b5aca86766d407e3cbe5f,30533

Plan construction failed.

dlqs avatar Jul 09 '21 00:07 dlqs

For posterity, adding the following snippet to stack.yaml worked for me using lts-10.10:

extra-deps:
  - Cabal-2.2.0.1
  - text-1.2.5.0

stack 2.7.3 Linux 5.12.15 I use arch btw

ehigham avatar Oct 18 '21 22:10 ehigham