Trying to build the latest cardano-node 1.27.0 on:
Debian Buster 10.9.0
GHC - 8.10.4
Cabal - 3.4.0
ran cabal update
cabal configure -w /opt/ghc/bin/ghc
updated cabal.project.local
cabal build all
...omitted
Starting cardano-crypto-tests-2.0.0 (lib)
Building cardano-crypto-tests-2.0.0 (lib)
Installing cardano-ledger-core-0.1.0.0 (lib)
Completed cardano-ledger-core-0.1.0.0 (lib)
Starting ouroboros-network-framework-0.1.0.0 (lib)
Building ouroboros-network-framework-0.1.0.0 (lib)
Installing ouroboros-network-framework-0.1.0.0 (lib)
Completed ouroboros-network-framework-0.1.0.0 (lib)
Starting byron-spec-ledger-0.1.0.0 (lib)
Building byron-spec-ledger-0.1.0.0 (lib)
Starting shelley-spec-ledger-0.1.0.0 (lib)
Building shelley-spec-ledger-0.1.0.0 (lib)
Installing byron-spec-ledger-0.1.0.0 (lib)
Completed byron-spec-ledger-0.1.0.0 (lib)
Installing shelley-spec-ledger-0.1.0.0 (lib)
Completed shelley-spec-ledger-0.1.0.0 (lib)
cabal: Failed to build cardano-crypto-tests-2.0.0 (which is required by
test:cardano-api-test from cardano-api-1.27.0). The build process terminated
with exit code -6
cardano-node 1.26.2 build works on the same VM just fine.
Any ideas how to troubleshoot that or what could it be?
cabal build cardano-crypto-tests-2.0.0 -v 3
doesn’t work - can’t see exact issue, if what’s going on with that failing package.
UPD
running cabal build all
or
# cabal build cardano-crypto-tests
Build profile: -w ghc-8.10.4 -O1
In order, the following will be built (use -v for more details):
- cardano-crypto-tests-2.0.0 (lib) (requires build)
Starting cardano-crypto-tests-2.0.0 (lib)
Building cardano-crypto-tests-2.0.0 (lib)
Installing cardano-crypto-tests-2.0.0 (lib)
Completed cardano-crypto-tests-2.0.0 (lib)
works fine
but initial cabal build all
has failed for 3 time in a row now
SOLVED --------------------------------------------------------------------
not 100% sure but probably that was HW issue and I was running out of mem/CPU on a build node - 2CPU 4GB RAM