Closed rigille closed 3 years ago
Thank you, @rigille!
I've just upgraded to a more recent nixpkgs and stackage release, could you try rebuilding from the latest master to see if it helps?
i appreciate you answered so fast 🙂 it did help, now i get a different error
--> Step 2 - Runing: stack --no-nix-pure build --fast
Stack has not been tested with GHC versions above 8.6, and using 8.8.4, this may fail
Stack has not been tested with Cabal versions above 2.4, but version 3.0.1.0 was found, this may fail
Cabal file warning in/home/rigille/repositories/haskell/lojban.io/haskell/libs/zasni-gerna/zasni-gerna.cabal@17:2: Tabs used as indentation at 17:2
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for happstack-server-7.5.1.3:
network-3.1.1.1 from stack configuration does not match >2.6 && <2.9 (latest matching version is 2.8.0.1)
template-haskell-2.15.0.0 from stack configuration does not match <2.15 (latest matching version is 2.14.0.0)
time-compat-1.9.5 from stack configuration does not match ==0.1.* (latest matching version is 0.1.0.3)
needed due to lojbanios-0.1.0.0 -> happstack-server-7.5.1.3
In the dependencies for papillon-0.1.0.6:
template-haskell-2.15.0.0 from stack configuration does not match ==2.14.* (latest matching version is 2.14.0.0)
needed due to lojbanios-0.1.0.0 -> papillon-0.1.0.6
Some different approaches to resolving this:
* Set 'allow-newer: true' in /home/rigille/.stack/config.yaml to ignore all version constraints and build anyway.
* Recommended action: try adding the following to your extra-deps in /home/rigille/repositories/haskell/lojban.io/stack.yaml:
- network-2.8.0.1@sha256:0f165dffa752d8cde30c2bde86f80609c4f1dc5eeb3182d593041f97839c5b3b,3011
- template-haskell-2.14.0.0@sha256:e3747ae9e2aeec160196706dd470b5fc4175678ec4136bcec9124534f67d83bc,1724
- time-compat-0.1.0.3@sha256:42a0a7d2f0d60467e388721a8b867caa7dff891cad20867d1211039716342087,861
Plan construction failed.
make: *** [Makefile:26: server] Error 1
so i tried to put allow-newer: true
inside stack.yaml
(without the extra-deps). the build process starts but it fails on papillon
attoparsec > copy/register
attoparsec > Installing library in /home/rigille/.stack/snapshots/x86_64-linux-nix/7ac35791366b0c2da6b7b6817758ce4782d3e64e55e39a19c78145a5e97aba67/8.8.4/lib/x86_64-linux-ghc-8.8.4/attoparsec-0.13.2.4-AHmlmm44dvnKaiPmUJc2M1
attoparsec > Registering library for attoparsec-0.13.2.4..
-- While building package papillon-0.1.0.6 using:
/home/rigille/.stack/setup-exe-cache/x86_64-linux-nix/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4 --builddir=.stack-work/dist/x86_64-linux-nix/Cabal-3.0.1.0 build lib:papillon exe:papillon --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Progress 15/91
make: *** [Makefile:26: server] Error 1
Sorry about that, and thanks again for the interest :)
I just made a few more changes, could you try again?
third time's the charm .ui .u'a i already can run the server locally. just had to increase my swap a bit because i ran out of memory building zasni gerna at first .u'i
Awesome!
Yeah, zasni-gerna takes a lot of memory to build haha
hi! i'm new to haskell and nix and i'm trying to build the server using nix, but I get the following error
which seems to be related to the ghc version. has someone experienced a similar error?