Failed to build cardano-node from source (Ubuntu 18.04)

Hi.
• AWS EC2 Ubuntu 18.04
• 8 GB RAM
• 2 Core
• 40 GB SSD
Doc.: cardano-node/install.md at master · input-output-hk/cardano-node · GitHub
• Fail-Step: cabal build all
• Error:
Starting cs-ledger-0.1.0.0 (lib)
Building cs-ledger-0.1.0.0 (lib)
Installing ouroboros-network-0.1.0.0 (lib)
Completed ouroboros-network-0.1.0.0 (lib)

Failed to build cs-ledger-0.1.0.0.
Build log (
/home/ubuntu/.cabal/logs/ghc-8.6.5/cs-ledger-0.1.0.0-4625b040e6d9f92d0db8ab1a1f26e7def7458236e78be1f2d2e6c40d54990a0a.log
):
Warning: cs-ledger.cabal:17:28: Packages with ‘cabal-version: 1.12’ or later
should specify a specific version of the Cabal spec of the form
‘cabal-version: x.y’. Use ‘cabal-version: 2.0’.
Configuring library for cs-ledger-0.1.0.0…
Preprocessing library for cs-ledger-0.1.0.0…
Building library for cs-ledger-0.1.0.0…
[ 1 of 16] Compiling Hedgehog.Gen.Double ( src/Hedgehog/Gen/Double.hs, dist/build/Hedgehog/Gen/Double.o )
[ 2 of 16] Compiling Ledger.Core ( src/Ledger/Core.hs, dist/build/Ledger/Core.o )
[ 3 of 16] Compiling Ledger.Core.Omniscient ( src/Ledger/Core/Omniscient.hs, dist/build/Ledger/Core/Omniscient.o )
[ 4 of 16] Compiling Ledger.GlobalParams ( src/Ledger/GlobalParams.hs, dist/build/Ledger/GlobalParams.o )
[ 5 of 16] Compiling Ledger.Core.Generators ( src/Ledger/Core/Generators.hs, dist/build/Ledger/Core/Generators.o )
[ 6 of 16] Compiling Ledger.Util ( src/Ledger/Util.hs, dist/build/Ledger/Util.o )
[ 7 of 16] Compiling Ledger.Update ( src/Ledger/Update.hs, dist/build/Ledger/Update.o )

src/Ledger/Update.hs:1:1: error:
Exception when trying to run compile-time code:
/root/src/cardano-node/dist-newstyle/tmp/src-29241/cs-ledger-0.1.0.0/src/goblin_genomes/UPIREG_UPREGFailure_DoesNotVerify: openBinaryFile: does not exist (No such file or directory)
Code: mkGoblinGens
“UPIREG”
[“UPREGFailure_DoesNotVerify”, “UPREGFailure_NotGenesisDelegate”,
“UPREGFailure_UPVFailure_AVChangedInPVUpdate”,
“UPREGFailure_UPVFailure_PVChangedInSVUpdate”, …]
|
1 | {-# LANGUAGE DeriveAnyClass #-}
| ^
cabal: Failed to build cs-ledger-0.1.0.0 (which is required by exe:chairman
from cardano-node-1.9.3, exe:cardano-node from cardano-node-1.9.3 and others).
See the build log above for details.

why is that? what can i do to solve the problem? Thank you

1 Like

Update:
if i use GHC compiler v.8.10.2 (or hight),
cabal configure --with-compiler=ghc-8.10.2
i get Error:

cabal: Could not resolve dependencies:
[__0] trying: Win32-network-0.1.0.0 (user goal)
[__1] next goal: base (dependency of Win32-network)
[__1] rejecting: base-4.14.1.0/installed-4.14.1.0 (conflict: Win32-network =>
base>=4.5 && <4.13)
[__1] rejecting: base-4.12.0.0, base-4.11.1.0, base-4.11.0.0, base-4.10.1.0,
base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0, base-4.8.1.0,
base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1,
base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0,
base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0,
base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from
non-upgradeable package requires installed instance)
[__1] fail (backjumping, conflict set: Win32-network, base)
After searching the rest of the dependency tree exhaustively, these were the
goals I’ve had most trouble fulfilling: base, Win32-network

if i use GHC compiler v.8.6.5,
cabal configure --with-compiler=ghc-8.6.5
all is okey, but i get Error in original post

similar issue:

2 Likes