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

**URL:** <https://forum.cardano.org/t/failed-to-build-cardano-node-from-source-ubuntu-18-04/58208>\
**Category:** Operate a Stake Pool\
**Created:** [20 April 2021 12:06 UTC](https://forum.cardano.org/t/failed-to-build-cardano-node-from-source-ubuntu-18-04/58208 "2021-04-20T12:06:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oklochko](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/oklochko/32/33546_2.png) [@oklochko](https://forum.cardano.org/u/oklochko)\
**Post date:** [20 April 2021 12:06 UTC](https://forum.cardano.org/t/failed-to-build-cardano-node-from-source-ubuntu-18-04/58208/1 "2021-04-20T12:06:59Z")

</div>

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](https://github.com/input-output-hk/cardano-node/blob/master/doc/getting-started/install.md/)  
• 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**

---

<div class="post-metadata">

**Author:** ![oklochko](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/oklochko/32/33546_2.png) [@oklochko](https://forum.cardano.org/u/oklochko)\
**Post date:** [20 April 2021 12:40 UTC](https://forum.cardano.org/t/failed-to-build-cardano-node-from-source-ubuntu-18-04/58208/2 "2021-04-20T12:40:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [21 May 2021 23:27 UTC](https://forum.cardano.org/t/failed-to-build-cardano-node-from-source-ubuntu-18-04/58208/3 "2021-05-21T23:27:32Z")

</div>

similar issue:

> [@Cabal build Cardano node error](https://forum.cardano.org/t/cabal-build-cardano-node-error/62136/5):
>
> you have to install ghc 8.10.4 do not upgrade to version 9.1.0
