Below a part of the terminal code where the problem occurs:
Failed to build HsOpenSSL-0.11.7.3.
Build log (
/home/cardano1234/.cabal/logs/ghc-8.10.7/HsOpenSSL-0.11.7.3-2fbf460de846e6520ee3ac1449f168f6540c4acba96ca535dbe38914e6432166.log
):
[1 of 1] Compiling Main ( /home/cardano1234/git/cardano-node/dist-newstyle/tmp/src-24485/HsOpenSSL-0.11.7.3/dist/setup/setup.hs, /home/cardano1234/git/cardano-node/dist-newstyle/tmp/src-24485/HsOpenSSL-0.11.7.3/dist/setup/Main.o )
Linking /home/cardano1234/git/cardano-node/dist-newstyle/tmp/src-24485/HsOpenSSL-0.11.7.3/dist/setup/setup ...
Configuring HsOpenSSL-0.11.7.3...
Preprocessing library for HsOpenSSL-0.11.7.3..
Building library for HsOpenSSL-0.11.7.3..
[ 1 of 33] Compiling OpenSSL ( OpenSSL.hs, dist/build/OpenSSL.o, dist/build/OpenSSL.dyn_o )
[ 2 of 33] Compiling OpenSSL.DH.Internal ( OpenSSL/DH/Internal.hs, dist/build/OpenSSL/DH/Internal.o, dist/build/OpenSSL/DH/Internal.dyn_o )
[ 3 of 33] Compiling OpenSSL.ERR ( OpenSSL/ERR.hs, dist/build/OpenSSL/ERR.o, dist/build/OpenSSL/ERR.dyn_o )
[ 4 of 33] Compiling OpenSSL.EVP.Base64 ( OpenSSL/EVP/Base64.hs, dist/build/OpenSSL/EVP/Base64.o, dist/build/OpenSSL/EVP/Base64.dyn_o )
[ 5 of 33] Compiling OpenSSL.Objects ( dist/build/OpenSSL/Objects.hs, dist/build/OpenSSL/Objects.o, dist/build/OpenSSL/Objects.dyn_o )
[ 6 of 33] Compiling OpenSSL.SSL.Option ( dist/build/OpenSSL/SSL/Option.hs, dist/build/OpenSSL/SSL/Option.o, dist/build/OpenSSL/SSL/Option.dyn_o )
[ 7 of 33] Compiling OpenSSL.Stack ( dist/build/OpenSSL/Stack.hs, dist/build/OpenSSL/Stack.o, dist/build/OpenSSL/Stack.dyn_o )
.......SKIPPED A FEW LINES HERE.......
`gcc' failed in phase `C Compiler'. (Exit code: 1)
cabal: Failed to build HsOpenSSL-0.11.7.3 (which is required by
test:cardano-node-test from cardano-node-1.35.4, exe:cardano-node from
cardano-node-1.35.4 and others). See the build log above for details.
I’m using
Ubuntu Linux 20.04.5
Cardano node 1.35.4
GHC 8.10.7
Cabal 3.6.2.0
I tried to install a lower version for Haskell HsOpenSSL (version 0.11.7.2 instead of 0.11.7.3) after reading this post from pullanswer => PullAnswer post
Making sure you’ve got a clean/new folder for cardano-node2 (or whatever you want to call it). The cabal update command later on will update cabal for your build.
I would make sure you check the cabal.project file before you move to the actually build command.
I’ve done hours of troubleshooting on this, together with someone from IOG. Change
, HSOpenSSL >= 0.11.7.2
to
, HsOpenSSL == 0.11.7.2
in the cabal.project file if you have this problem.
pay attention to the capital S in the original line and non-capital s in the changed line.
It will work after that.