kadena-io / chainweb-node

Chainweb: A Proof-of-Work Parallel-Chain Architecture for Massive Throughput
https://docs.kadena.io/basics/whitepapers/overview
BSD 3-Clause "New" or "Revised" License
249 stars 95 forks source link

GNU/Linux Debian 11 - 5.19.0-0.deb11.2-amd64 - build error - cabal: Error parsing project freeze file #1586

Closed blackmennewstyle closed 1 year ago

blackmennewstyle commented 1 year ago

I'm trying to build chainweb-node v2.17.1 and i'm getting the floowing error:

cabal build
cabal: Error parsing project freeze file
/home/ceedii/chainweb-node-2.17.1/cabal.project.freeze:362:
Parse of field 'index-state' failed (index-state must be a unix-timestamps
(e.g. '@1474732068'), a ISO8601 UTC timestamp (e.g. '2016-09-24T17:47:48Z'),
or 'HEAD'): hackage.haskell.org 2022-12-03T04:30:51Z
edmundnoble commented 1 year ago

What's cabal --version show you?

blackmennewstyle commented 1 year ago

I'm using:

cabal-install version 3.0.0.0
compiled using version 3.0.1.0 of the Cabal library
edmundnoble commented 1 year ago

It seems that the freeze files produced by cabal freeze as of 3.4 are not backwards compatible, per the cabal changelog. I recommend installing a version of cabal greater than 3.4. Try https://www.haskell.org/ghcup/. I'll see about updating our docs.

blackmennewstyle commented 1 year ago

OK. Thanks for your answer, i will try to upgrade to a more recent version of cabal.