lambdacube-gl
lambdacube-gl copied to clipboard
Build instructions outdated
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.
From 0.5 release it will be part of stackage.
Builds fine on NixOS: http://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.haskellPackages.lambdacube-gl.x86_64-linux/all