Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build instructions outdated #1

Open
NCrashed opened this issue Feb 7, 2016 · 2 comments
Open

Build instructions outdated #1

NCrashed opened this issue Feb 7, 2016 · 2 comments

Comments

@NCrashed
Copy link
Contributor

NCrashed commented Feb 7, 2016

Hi, I have run into some problems while following instructions from README.md.

I am using stack Version 1.0.3, Git revision 71bf72899b2803d5d800f6c4c95f48babe51b1ea x86_64.

Using stack init --resolver lts-4.1:

[[ncrashed@localhost lcroot]$ stack init --resolver lts-4.1
Using cabal packages:
- lambdacube-gl/lambdacube-gl.cabal
- lambdacube-ir/lambdacube-ir.haskell/lambdacube-ir.cabal
- lambdacube-compiler/lambdacube-compiler.cabal

Selected resolver 'lts-4.1' does not have all the packages to match your requirements.
    JuicyPixels version 3.2.6.4 found
        - lambdacube-gl requires >=3.2.7 && <3.3
    OpenGLRaw version 3.0.0.0 found
        - lambdacube-gl requires >=3.1 && <3.2
    QuickCheck version 2.8.1 found
        - lambdacube-compiler requires >=2.8.2 && <2.9
        - lambdacube-compiler flags: coverage = False, onlytestsuite = False, profiling = False
    indentation not found
        - lambdacube-compiler requires ==0.2.*
        - lambdacube-compiler flags: coverage = False, onlytestsuite = False, profiling = False
    pretty-compact not found
        - lambdacube-compiler requires ==1.0.*
        - lambdacube-compiler flags: coverage = False, onlytestsuite = False, profiling = False

Using stack init --resolver lts-5.1:

[ncrashed@localhost lcroot]$ stack init --resolver lts-5.1
Using cabal packages:
- lambdacube-gl/lambdacube-gl.cabal
- lambdacube-ir/lambdacube-ir.haskell/lambdacube-ir.cabal
- lambdacube-compiler/lambdacube-compiler.cabal

Selected resolver 'lts-5.1' does not have all the packages to match your requirements.
    QuickCheck version 2.8.1 found
        - lambdacube-compiler requires >=2.8.2 && <2.9
        - lambdacube-compiler flags: coverage = False, onlytestsuite = False, profiling = False
    async version 2.1.0 found
        - lambdacube-compiler requires ==2.0.*
        - lambdacube-compiler flags: coverage = False, onlytestsuite = False, profiling = False
    indentation not found
        - lambdacube-compiler requires ==0.2.*
        - lambdacube-compiler flags: coverage = False, onlytestsuite = False, profiling = False
    pretty-compact not found
        - lambdacube-compiler requires ==1.0.*
        - lambdacube-compiler flags: coverage = False, onlytestsuite = False, profiling = False

However, you can try '--solver' to use external packages.

Finally the workaround that works: stack init --resolver lts-5.1 --solver

Using cabal packages:
- lambdacube-gl/lambdacube-gl.cabal
- lambdacube-ir/lambdacube-ir.haskell/lambdacube-ir.cabal
- lambdacube-compiler/lambdacube-compiler.cabal

Using resolver: lts-5.1
Using compiler: ghc-7.10.3
Asking cabal to calculate a build plan...
Trying with packages from lts-5.1 as hard constraints...
Attempt failed.

>>>> Cabal errors begin
cabal: Could not resolve dependencies:
trying: lambdacube-compiler-0.4.0.0 (user goal)
next goal: async (dependency of lambdacube-compiler-0.4.0.0)
rejecting: async-2.1.0 (conflict: lambdacube-compiler => async>=2.0 && <2.1)
rejecting: async-2.0.2, 2.0.1.6, 2.0.1.5, 2.0.1.4, 2.0.1.3, 2.0.1.2, 2.0.1.1,
2.0.1.0, 2.0.0.0, 1.4, 1.3, 1.2, 1.1, 1.0 (global constraint requires ==2.1.0)
Dependency tree exhaustively searched.
<<<< Cabal errors end

Retrying with packages from lts-5.1 as preferences...
Successfully determined a build plan with 7 external dependencies.
Initialising configuration using resolver: lts-5.1
Writing configuration to file: stack.yaml
All done.
@csabahruska
Copy link
Member

From 0.5 release it will be part of stackage.

@deepfire
Copy link
Contributor

deepfire commented Feb 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants