github / semantic

Parsing, analyzing, and comparing source code across many languages
8.97k stars 452 forks source link

cabal v2-build all fails #599

Closed v0d1ch closed 4 years ago

v0d1ch commented 4 years ago

When trying to build freshly cloned repo this is what I get:

Cloning into '/home/v0d1ch/code/semantic/dist-newstyle/src/fused-syn_-4e0374992752d282'...
remote: Enumerating objects: 119, done.
remote: Counting objects: 100% (119/119), done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 2361 (delta 56), reused 108 (delta 53), pack-reused 2242
Receiving objects: 100% (2361/2361), 475.70 KiB | 1.13 MiB/s, done.
Resolving deltas: 100% (1211/1211), done.
HEAD is now at d11e145 Merge pull request #3 from antitypical/fused-effects-one-dot-zero
Cloning into '/home/v0d1ch/code/semantic/dist-newstyle/src/proto-len_-98703cde05b08e6b'...
remote: Enumerating objects: 157, done.
remote: Counting objects: 100% (157/157), done.
remote: Compressing objects: 100% (77/77), done.
remote: Total 157 (delta 59), reused 137 (delta 47), pack-reused 0
Receiving objects: 100% (157/157), 43.70 KiB | 2.73 MiB/s, done.
Resolving deltas: 100% (59/59), done.
HEAD is now at 5d40444 Merge pull request #4 from tclem/action-cache
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: fused-syntax-0.0.0.0 (user goal)
[__1] trying: base-4.12.0.0/installed-4.1... (dependency of fused-syntax)
[__2] next goal: semantic (user goal)
[__2] rejecting: semantic-0.11.0.0 (conflict: base==4.12.0.0/installed-4.1...,
semantic => base>=4.13 && <5)
[__2] rejecting: semantic-0.0.0 (constraint from user target requires
==0.11.0.0)
[__2] fail (backjumping, conflict set: base, semantic)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, fused-syntax, semantic

I just followed the instructions in the readme. Did a ./script/bootstrap and cabal v2-build all and BAM!

patrickt commented 4 years ago

@v0d1ch Are you running GHC 8.8? It looks like you have an older version of base.

patrickt commented 4 years ago

I’m going to close this out, since the base version is indeed at fault, but please feel to reopen or file a new bug if you encounter further difficulties.

v0d1ch commented 4 years ago

Yeah my ghc is fixed to 8.6.5 because of work. All good, sorry for the noise.

patrickt commented 4 years ago

@v0d1ch If you don’t already, give ghcup a try! You should be able to switch between GHC versions without a problem.

v0d1ch commented 4 years ago

I do but since there is no real time for personal coding I tend to forget that ghc has more than one version :)