[SOLVED] Issue building Cardano-node on a Raspberry Pi 4

Hello,

I’ve been trying to build Cardano-node on my Raspberry Pi 4 for few days now, and I’m stuck at the same point (Full log at the end):

aarch64-linux-gnu-gcc: error: /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Update.dyn_o: No such file or directory

I’m not familiar with cabal but it seems to be working like a gcc, compiling sources in .o / .dyn_o files.

I tried with 1.13.0, 1.14.0, 1.14.1, 1.14.2. Same issue, it’s always this very file that is never there.

Does anyone know how to compile it ?

this build was affected by the following (project) config files:
- /home/furya/cardano-node/cabal.project
- /home/furya/cardano-node/cabal.project.local
Build profile: -w ghc-8.6.5 -O1
In order, the following will be built:
 - byron-spec-ledger-0.1.0.0 (lib) (first run)
 - shelley-spec-ledger-0.1.0.0 (lib) (first run)
 - byron-spec-chain-0.1.0.0 (lib) (first run)
 - shelley-spec-ledger-test-0.1.0.0 (lib) (first run)
 - ouroboros-consensus-shelley-0.1.0.0 (lib) (first run)
 - cardano-ledger-test-1.3.0 (lib) (first run)
 - ouroboros-consensus-cardano-0.1.0.0 (lib) (first run)
 - cardano-config-0.1.0.0 (lib) (first run)
 - cardano-node-1.13.0 (exe:chairman) (first run)
 - cardano-node-1.13.0 (lib) (first run)
 - cardano-api-1.13.0 (lib) (first run)
 - cardano-node-1.13.0 (exe:cardano-node) (first run)
 - cardano-cli-1.13.0 (lib) (first run)
 - cardano-api-1.13.0 (exe:cardano-api-demo) (first run)
 - cardano-cli-1.13.0 (exe:cardano-cli) (first run)
creating /home/furya/cardano-node/dist-newstyle/build
creating /home/furya/cardano-node/dist-newstyle/tmp
creating
/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0
creating
/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/cache
Using self-exec internal setup method with build-type Simple and args:
["act-as-setup","--build-type=Simple","--","build","--verbose=2","--builddir=/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0"]
/home/furya/.local/bin/cabal act-as-setup --build-type=Simple -- build
--verbose=2
--builddir=/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0
Component build order: library
/usr/bin/ghc-pkg init /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/package.conf.inplace
creating
/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build
creating
/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/autogen
creating
/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/autogen
Preprocessing library for byron-spec-ledger-0.1.0.0..
Building library for byron-spec-ledger-0.1.0.0..
creating
/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build
/usr/bin/ghc --make -fbuilding-cabal-package -O -static -dynamic-too -dynosuf dyn_o -dynhisuf dyn_hi -outputdir /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build -odir /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build -hidir /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build -stubdir /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build -i -i/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build -isrc -i/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/autogen -i/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/global-autogen -I/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/autogen -I/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/global-autogen -I/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build -optP-include -optP/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/autogen/cabal_macros.h -this-unit-id byron-spec-ledger-0.1.0.0-inplace -hide-all-packages -Wmissing-home-modules -no-user-package-db -package-db /home/furya/.cabal/store/ghc-8.6.5/package.db -package-db /home/furya/cardano-node/dist-newstyle/packagedb/ghc-8.6.5 -package-db /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/package.conf.inplace -package-id Unique-0.4.7.7-de6d13eb744987efe4fdb1710a62db1e1303db0c6bb1bb60166f1696c76ec8b9 -package-id base-4.12.0.0 -package-id bimap-0.4.0-f36c735e3f41eb47273f06f8ed6e9ec454215a4a4205152121da51d3e62c3ac9 -package-id cardano-binary-1.5.0-inplace -package-id cardano-prelude-0.1.0.0-inplace -package-id containers-0.6.0.1 -package-id file-embed-0.0.11.2-51de40ad334cd154a2289c127b623b8a9839c85b727df0fb19140fed2e8a903f -package-id filepath-1.4.2.1 -package-id goblins-0.1.0.0-inplace -package-id hashable-1.2.7.0-H20bdhmlLgl6TLYsKFVKYh -package-id hedgehog-1.0.2-223d782a9c50cb742367247ee2d3841644b9cc015df8d049bb18c2ae753f129c -package-id lens-4.19.1-fc1f668a41a8895fbdd899f24b37eea3ae669cf3cc714b7c6c317376314af9a8 -package-id small-steps-0.1.0.0-inplace -package-id template-haskell-2.14.0.0 -XHaskell2010 Hedgehog.Gen.Double Byron.Spec.Ledger.Core Byron.Spec.Ledger.Core.Generators Byron.Spec.Ledger.Core.Omniscient Byron.Spec.Ledger.Delegation Byron.Spec.Ledger.Delegation.Test Byron.Spec.Ledger.GlobalParams Byron.Spec.Ledger.Update Byron.Spec.Ledger.Update.Generators Byron.Spec.Ledger.Update.Test Byron.Spec.Ledger.UTxO Byron.Spec.Ledger.UTxO.Generators Byron.Spec.Ledger.Util Byron.Spec.Ledger.STS.UTXO Byron.Spec.Ledger.STS.UTXOW Byron.Spec.Ledger.STS.UTXOWS -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -Werror -hide-all-packages
Linking...
[(DefiniteUnitId (DefUnitId {unDefUnitId = UnitId
"Unique-0.4.7.7-de6d13eb744987efe4fdb1710a62db1e1303db0c6bb1bb60166f1696c76ec8b9"}),DefaultRenaming),(DefiniteUnitId
(DefUnitId {unDefUnitId = UnitId
"base-4.12.0.0"}),DefaultRenaming),(DefiniteUnitId (DefUnitId {unDefUnitId =
UnitId
"bimap-0.4.0-f36c735e3f41eb47273f06f8ed6e9ec454215a4a4205152121da51d3e62c3ac9"}),DefaultRenaming),(DefiniteUnitId
(DefUnitId {unDefUnitId = UnitId
"cardano-binary-1.5.0-inplace"}),DefaultRenaming),(DefiniteUnitId (DefUnitId
{unDefUnitId = UnitId
"cardano-prelude-0.1.0.0-inplace"}),DefaultRenaming),(DefiniteUnitId
(DefUnitId {unDefUnitId = UnitId
"containers-0.6.0.1"}),DefaultRenaming),(DefiniteUnitId (DefUnitId
{unDefUnitId = UnitId
"file-embed-0.0.11.2-51de40ad334cd154a2289c127b623b8a9839c85b727df0fb19140fed2e8a903f"}),DefaultRenaming),(DefiniteUnitId
(DefUnitId {unDefUnitId = UnitId
"filepath-1.4.2.1"}),DefaultRenaming),(DefiniteUnitId (DefUnitId {unDefUnitId
= UnitId "goblins-0.1.0.0-inplace"}),DefaultRenaming),(DefiniteUnitId
(DefUnitId {unDefUnitId = UnitId
"hashable-1.2.7.0-H20bdhmlLgl6TLYsKFVKYh"}),DefaultRenaming),(DefiniteUnitId
(DefUnitId {unDefUnitId = UnitId
"hedgehog-1.0.2-223d782a9c50cb742367247ee2d3841644b9cc015df8d049bb18c2ae753f129c"}),DefaultRenaming),(DefiniteUnitId
(DefUnitId {unDefUnitId = UnitId
"lens-4.19.1-fc1f668a41a8895fbdd899f24b37eea3ae669cf3cc714b7c6c317376314af9a8"}),DefaultRenaming),(DefiniteUnitId
(DefUnitId {unDefUnitId = UnitId
"small-steps-0.1.0.0-inplace"}),DefaultRenaming),(DefiniteUnitId (DefUnitId
{unDefUnitId = UnitId "template-haskell-2.14.0.0"}),DefaultRenaming)]
/usr/bin/aarch64-linux-gnu-ar -r /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/objs-2307/libHSbyron-spec-ledger-0.1.0.0-inplace.a '@/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/objs-2307/ar2307-0.rsp'
/usr/bin/aarch64-linux-gnu-ar: creating /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/objs-2307/libHSbyron-spec-ledger-0.1.0.0-inplace.a
/usr/bin/ghc -shared -dynamic '-dynload deploy' -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/MonadRandom-0.5.1.2-e689db52f43cc7764648aa936480fc41952b104849464588e6668b2ed0027494/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/Unique-0.4.7.7-de6d13eb744987efe4fdb1710a62db1e1303db0c6bb1bb60166f1696c76ec8b9/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/adjunctions-4.4-50b9d4ecfdb41dcb4239bca7d1801f196d985c914933f69a45f7ffb666955a38/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/aeson-1.4.7.1-7f6e41353705e036b292dab54deebd6db5c32d1e1f3fd94e7df88e6bfa36c2c6/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/ansi-terminal-0.10.3-b7baa1aecae56b8a6d78053fb23aadffeb414f931cdc78d55ef5e433ddfc8994/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/ansi-wl-pprint-0.6.9-47dc986322e255956e8e08110474df7a8ad5d3b4c3111805395225c0901fd27e/lib -optl-Wl,-rpath,/usr/lib/ghc/array-0.5.3.0 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/assoc-1.0.1-20827c80e1525230c9882d31405540325d1fabdd92a1f2a0932ec4d1bfa8a2ce/lib -optl-Wl,-rpath,/usr/lib/ghc/base-4.12.0.0 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/base-compat-0.10.5-e546e769975d0a32cbdb27e4a3fa1dbb387493805cab456248910df681b95eb3/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/base-compat-batteries-0.10.5-31d76f712c30267434622b773f6fdcd35b0f2f143760fa07b2615e4e04effec6/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/base-orphans-0.8.2-8e3598371dc4b87161b957b86c8b1b137a95ebbee82f0141ab4f22ee99d9cf6a/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/base16-bytestring-0.1.1.6-59d62f9ada9d11bd8ee796411b39aee61c06c0983bd046df5124b57eceaec18f/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/basement-0.0.11-e48818d45b0edc0d0fdd4986734845bcef732ae70ea67ff9cb3825d85b9163fe/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/bifunctors-5.5.7-c656ef908c3d35e6a9fd15a2ecda24488f5c9d772a4851a6ba03b810fffca26e/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/bimap-0.4.0-f36c735e3f41eb47273f06f8ed6e9ec454215a4a4205152121da51d3e62c3ac9/lib -optl-Wl,-rpath,/usr/lib/ghc/binary-0.8.6.0 -optl-Wl,-rpath,/usr/lib/ghc/bytestring-0.10.8.2 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/canonical-json-0.6.0.0-9514df45379f1d221f259540d16761b3965ddb668132d08652b047571319c7b1/lib -optl-Wl,-rpath,/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/cardano-binary-1.5.0/build -optl-Wl,-rpath,/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/cardano-crypto-class-2.0.0/build -optl-Wl,-rpath,/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/cardano-prelude-0.1.0.0/build -optl-Wl,-rpath,/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/cborg-0.2.2.1/build -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/charset-0.3.7.1-4cc8311987e59e2a934d6a4cbe2eea04a3842b403cd3f602dc1d36238911b4ac/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/clock-0.8-7923a8e88d5910c3a545c5369ee67cdc6ca8b0b2e3c41f3bba98b34b50fd31bb/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/colour-2.3.5-bd860fbd64a13824ceb4f9ebb412e773fcad9046a49d83ed82e6d1ed80b7f994/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/comonad-5.0.6-1475a6bb0ebb52c6105516d6624d0d498d32ea1580dde0c595387402c8ccb928/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/concurrent-output-1.10.11-fa8e37b30ae549f75ff4176af86529c7f1cd6477f00118121afb8c2ddf57c169/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/constraints-0.12-6c3cc65ca45c3fa3f618e2aea1a4b813c633969974fca57897d7f545cb876fba/lib -optl-Wl,-rpath,/usr/lib/ghc/containers-0.6.0.1 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/contravariant-1.5.2-c4961c8699842cd95f1052f9e90b4ffbcc3d7c79aed26ff8bda0085a58e885a2/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/cryptonite-0.25-ac29e6cf720e4bd4f9ddc7e0f7fe05914a806754d43c1e49fcb02ba240a82a1e/lib -optl-Wl,-rpath,/usr/lib/ghc/deepseq-1.4.4.0 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/digest-0.0.1.2-b3e755e58471076b0885775c966b20339a1bd8123ebd81954a7f41d8b9d843c2/lib -optl-Wl,-rpath,/usr/lib/ghc/directory-1.3.3.0 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/distributive-0.6.1-b643cf9db6bcbc167a7102ba1b91a682196765e1c5de3cb5dafb94ed96e4bfe0/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/dlist-0.8.0.7-c4e6bd5b358c7f2378fde8e2568f619be46336b0ca9d1fae61f90b2b2b37a34d/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/exceptions-0.10.4-9da52e31a4be9601d0fe4c88b623891ccc7bd318bc67417a327a932918a04cc4/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/extra-1.6.21-a43bcb91b1434ef5114949460ad85a7f4e5dfd4a19b8651b4ce51ed2323bcf96/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/file-embed-0.0.11.2-51de40ad334cd154a2289c127b623b8a9839c85b727df0fb19140fed2e8a903f/lib -optl-Wl,-rpath,/usr/lib/ghc/filepath-1.4.2.1 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/fingertree-0.1.4.2-2c1b2858431dc5a2ce9171bc37a9741db23697a9006232a975d2e072cb4fa952/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/formatting-6.3.7-f71be36cd25f188ed793780aa9caa8cafcb611ad6bb93a72f13eb0fcbc69121a/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/free-5.1.3-fa5e74ad4493a3a37826a8ced934da94ddd2e85c0791839251a3d2381cae2712/lib -optl-Wl,-rpath,/usr/lib/ghc/ghc-boot-th-8.6.5 -optl-Wl,-rpath,/usr/lib/ghc/ghc-heap-8.6.5 -optl-Wl,-rpath,/usr/lib/ghc/ghc-prim-0.5.3 -optl-Wl,-rpath,/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/goblins-0.1.0.0/build -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/gray-code-0.3.1-833fc3956bd73bb0221d2ce33036db74f76217c3a454491ca857be1d0000820b/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/haskell-lexer-1.1-d1712c6bff6407b6b2a3a399b25fc189f1e4d35d9311c777aeede1c2d088f3ec/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/hedgehog-1.0.2-223d782a9c50cb742367247ee2d3841644b9cc015df8d049bb18c2ae753f129c/lib -optl-Wl,-rpath,/usr/lib/ghc/integer-gmp-1.0.2.0 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/invariant-0.5.3-9a06729cceff4e57dc61efd7f8f62aefca07bac02cb4399f7d95205ca92df810/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/kan-extensions-5.2-ccb3101dac7d07cc5b42410b10deb250f13ef91aae0e2528ec807db6cee6c12b/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/lens-4.19.1-fc1f668a41a8895fbdd899f24b37eea3ae669cf3cc714b7c6c317376314af9a8/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/lifted-async-0.10.0.6-86f8e789d5812ab619a17c9f59f0fa45e3f172e268615a4ebb8cfea40d85fad0/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/lifted-base-0.2.3.12-476cec4366f737598efaa09dbda1fab3f80065fbe3be702ad5068b8598610b04/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/memory-0.15.0-60b87d8257a705841838b66da3183a0e8c48d08e08c89b0183bfe110f5399618/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/mersenne-random-pure64-0.2.2.0-42cafe70e7a3af4373304997a6bc4ef559eaf947025b8c926c5b088a6265811d/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/mmorph-1.1.3-1ae983e4b64e148853c167d0a705b53ae4d5e5d78ad2763c278085d0bd04c9d7/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/monad-control-1.0.2.3-9215ecb6bd26c27549b333f968a791eb94621ba085bdeca5d182247d679b8237/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/moo-1.2-9ba41dbaaab1d28beae271923b9502600d50d8b1b44fcb8df53a4b494eae03e5/lib -optl-Wl,-rpath,/usr/lib/ghc/mtl-2.2.2 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/nonempty-containers-0.3.3.0-d8ad328dc7829e8145c64c5308b64d3757b804d478701a6ac9be26a465bd98b4/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/nonempty-vector-0.2.0.1-c41d6b889850a9630cd2b7cdb1fb6f632560076b68ee763a2fbcd9e289677976/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/old-locale-1.0.0.7-e4db1fbf864a04d3ede32c085812b6faa07b80eb27bf20d700ac3bb5fb2e6177/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/optparse-applicative-0.15.1.0-9f34f6a260b40be4f786d6c81a87f5ba65d7fb34465baf8554ead6db805dfc31/lib -optl-Wl,-rpath,/usr/lib/ghc/parsec-3.1.13.0 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/parsers-0.12.10-bc5067c6d03e8c4c53056ef1c3fa9d4c174880f455c59a9ab5a6e4f1fcdb99b2/lib -optl-Wl,-rpath,/usr/lib/ghc/pretty-1.1.3.6 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/pretty-show-1.10-faff868c703fdeed3fa8c49e5ec34b664db2d2dc6546425bf7a9437fa7fe2797/lib -optl-Wl,-rpath,/usr/lib/ghc/process-1.6.5.0 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/profunctors-5.5.2-864d697ee62eb3fa3e4a773382a285c45899c9382ab861db3732667aa33281cf/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/protolude-0.2.4-24492ac9cf11a1bcc1cfaafce9809dff5e78d57703dbe95b5d06302a61744594/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/random-shuffle-0.0.4-2f11f82a3a6b35d6581b6cda5f75b5cf348253b8c5e2d63c8be4c4bede192e0d/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/recursion-schemes-5.1.3-3be83e22bfa47b42ae31b47fdd9689c3eea9c34b544a6a57f78f43ded6695eb4/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/reflection-2.1.5-d1d3f6aa1be557ee03c70b5962f557a0195c2114bfc39cfad985a038a14f4e97/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/resourcet-1.2.3-c0add28c57c281aeecbcd41951c13a60c7f4447131a742dfe0d5bfa12a0e081c/lib -optl-Wl,-rpath,/usr/lib/ghc/rts -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/safe-0.3.18-ac0a32623b4b41910d3ad78a19cb31a4c77aa7b69f4973a00f18224599f28ae6/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/safe-exceptions-0.1.7.0-cacfee52db2855a334fb5d8920aa5df1eb402b5a9c76f32f1c48d1f919dc301c/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/semigroupoids-5.3.4-99399eab76963ca606adab3224d0a25d815b8c8630677ce384805444e5b657ef/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/semigroups-0.19.1-0db7e74a3070d7845998fd5e5b28726e31d40d81c65a9f71aabf2e79fc70b7b9/lib -optl-Wl,-rpath,/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/serialise-0.2.2.0/build -optl-Wl,-rpath,/home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/small-steps-0.1.0.0/build -optl-Wl,-rpath,/usr/lib/ghc/stm-2.5.0.0 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/tagged-0.8.6-267428de6c62a1fa4f974bad635eeb5731666a46e861c81c61c4140cb1ca9f66/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/tasty-1.2.3-e3ad18b433ad9c0b42c51f46282fec716c5fa11ccad5d5359e0c6ce8e37f4658/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/tasty-hunit-0.10.0.2-f0e81073299ee2dc972b2d7b3060fb3dd346e88ebed2c8b0c96f157951a27c4b/lib -optl-Wl,-rpath,/usr/lib/ghc/template-haskell-2.14.0.0 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/terminal-size-0.3.2.1-512fbf881617a1a6cdb0b4f0b15058ab5418409fb215b8bfa01f80dcc8d6081a/lib -optl-Wl,-rpath,/usr/lib/ghc/text-1.2.3.1 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/th-abstraction-0.3.2.0-f2260a6e700802e9e0740f76d05eb883fbda6987199e889a3c005de1e41df7a5/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/th-expand-syns-0.4.6.0-7d6e87d50b7faa6c7b062f20210f419d844de87302c189246fd9f817b54a08e4/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/th-lift-0.8.1-563294b0e122fefabc71b457b3fa690e13438c917a39ac24aa87b57cfa0fa4a1/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/th-lift-instances-0.1.14-21caa0f8cc71f731c60a235ccb8da916b71ad1544254efdef84b3f6a17757321/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/th-orphans-0.13.9-97163cb67ab286359ac9ec96f1d6998793ca115ef566063787777e899f723822/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/th-reify-many-0.1.9-11a5114601fe561bf7fa045f8a596bd25f1e8993291be91220db70127d04b038/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/th-utilities-0.2.3.1-3e599fb16afaf9a0601960f6f4755580c6033b1ff4498794b9a7ce068a0cb941/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/these-1.0.1-38481ae372e8954bce58ba9c92f193f16f87e5edf041e99c9305083c8ecd5e7c/lib -optl-Wl,-rpath,/usr/lib/ghc/time-1.8.0.2 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/time-compat-1.9.3-1588919cc846453f344bca044b9b51425bebe847fc52b6c26184c9dce3780277/lib -optl-Wl,-rpath,/usr/lib/ghc/transformers-0.5.6.2 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/transformers-base-0.4.5.2-803ea34d1d1171c2274cb6b96354270da2c98d564e337e0323021c3408e4555e/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/transformers-compat-0.6.5-afef8a81258c1f7b5ae24d5bc39068bc105822ba4531f704c7523679493c4993/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/tree-diff-0.1-c6149464094ef82ce44dc2713096af4bb3c1556c28e50626003d6fde0e3b51a0/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/type-equality-1-8de46f32b17376e8642490acff28b9a352dc36edfdbdb3676c4371678c82d5a8/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/typerep-map-0.3.2-b65fa6695eb5348485d747d5a6da82b3110938d0e4c00730890194d5298a677c/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/unbounded-delays-0.1.1.0-e8b64d0ef9891702de4843d52e042341b41cac1eb4931ae7c3bd022eb319cf7b/lib -optl-Wl,-rpath,/usr/lib/ghc/unix-2.7.2.2 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/unliftio-core-0.2.0.1-5ed86cd475c8dab9eb57d0abb1c4510e2c36bd71baf43d9249d3aaabaad913e6/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/uuid-types-1.0.3-124ace374b2f9513fa4df596931243768734ffb5dcbd743b763cb179c53e704b/lib -optl-Wl,-rpath,/usr/lib/haskell-packages/ghc/lib/aarch64-linux-ghc-8.6.5 -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/void-0.7.3-3720813cc4b60b7201fa8c083b80690b569cbaffbfa1b3a7397eb31aea29714b/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/wcwidth-0.0.2-368a8ceebebc858170dd52f1837a041d2e038c8bc370e4089acfe01be7cb1fa8/lib -optl-Wl,-rpath,/home/furya/.cabal/store/ghc-8.6.5/wl-pprint-annotated-0.1.0.1-63f055c1769bc6bb116a0adac918d1e1aa80431351597828b2ae85344065a343/lib -this-unit-id byron-spec-ledger-0.1.0.0-inplace -hide-all-packages -no-auto-link-packages -no-user-package-db -package-db /home/furya/.cabal/store/ghc-8.6.5/package.db -package-db /home/furya/cardano-node/dist-newstyle/packagedb/ghc-8.6.5 -package-db /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/package.conf.inplace -package-id Unique-0.4.7.7-de6d13eb744987efe4fdb1710a62db1e1303db0c6bb1bb60166f1696c76ec8b9 -package-id base-4.12.0.0 -package-id bimap-0.4.0-f36c735e3f41eb47273f06f8ed6e9ec454215a4a4205152121da51d3e62c3ac9 -package-id cardano-binary-1.5.0-inplace -package-id cardano-prelude-0.1.0.0-inplace -package-id containers-0.6.0.1 -package-id file-embed-0.0.11.2-51de40ad334cd154a2289c127b623b8a9839c85b727df0fb19140fed2e8a903f -package-id filepath-1.4.2.1 -package-id goblins-0.1.0.0-inplace -package-id hashable-1.2.7.0-H20bdhmlLgl6TLYsKFVKYh -package-id hedgehog-1.0.2-223d782a9c50cb742367247ee2d3841644b9cc015df8d049bb18c2ae753f129c -package-id lens-4.19.1-fc1f668a41a8895fbdd899f24b37eea3ae669cf3cc714b7c6c317376314af9a8 -package-id small-steps-0.1.0.0-inplace -package-id template-haskell-2.14.0.0 /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Hedgehog/Gen/Double.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core/Generators.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core/Omniscient.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Delegation.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Delegation/Test.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/GlobalParams.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Update.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Update/Generators.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Update/Test.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/UTxO.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/UTxO/Generators.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Util.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/STS/UTXO.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/STS/UTXOW.dyn_o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/STS/UTXOWS.dyn_o -o /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/libHSbyron-spec-ledger-0.1.0.0-inplace-ghc8.6.5.so -hide-all-packages
aarch64-linux-gnu-gcc: error: /home/furya/cardano-node/dist-newstyle/build/aarch64-linux/ghc-8.6.5/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Update.dyn_o: No such file or directory
`aarch64-linux-gnu-gcc' failed in phase `Linker'. (Exit code: 1)
CallStack (from HasCallStack):
  die', called at ./Distribution/Client/ProjectOrchestration.hs:1035:55 in main:Distribution.Client.ProjectOrchestration
cabal: Failed to build byron-spec-chain-0.1.0.0 because it depends on
byron-spec-chain-0.1.0.0 which itself failed to build.
Failed to build byron-spec-ledger-0.1.0.0-inplace.
Failed to build cardano-api-1.13.0 because it depends on cardano-api-1.13.0
which itself failed to build.
Failed to build cardano-api-1.13.0 because it depends on cardano-api-1.13.0
which itself failed to build.
Failed to build cardano-cli-1.13.0 because it depends on cardano-cli-1.13.0
which itself failed to build.
Failed to build cardano-cli-1.13.0 because it depends on cardano-cli-1.13.0
which itself failed to build.
Failed to build cardano-config-0.1.0.0 because it depends on
cardano-config-0.1.0.0 which itself failed to build.
Failed to build cardano-ledger-test-1.3.0 because it depends on
cardano-ledger-test-1.3.0 which itself failed to build.
Failed to build cardano-node-1.13.0 because it depends on cardano-node-1.13.0
which itself failed to build.
Failed to build cardano-node-1.13.0 because it depends on cardano-node-1.13.0
which itself failed to build.
Failed to build cardano-node-1.13.0 because it depends on cardano-node-1.13.0
which itself failed to build.
Failed to build ouroboros-consensus-cardano-0.1.0.0 because it depends on
ouroboros-consensus-cardano-0.1.0.0 which itself failed to build.
Failed to build ouroboros-consensus-shelley-0.1.0.0 because it depends on
ouroboros-consensus-shelley-0.1.0.0 which itself failed to build.
Failed to build shelley-spec-ledger-0.1.0.0 because it depends on
shelley-spec-ledger-0.1.0.0 which itself failed to build.
Failed to build shelley-spec-ledger-test-0.1.0.0 because it depends on
shelley-spec-ledger-test-0.1.0.0 which itself failed to build.

I’ve finally managed to compile this file.

4GB of RAM isn’t enough to build everything. So, I’ve created a 4GB partition of Linux Swap on my SSD for the system to use it when the RAM is full. And that’s it!

The file has been created and the building is smoothly rolling right now.

3 Likes

well…how about this. i add 8GB swap…ive formated twice…same issue.

Hello @youngkraker

What is your cabal version ? Did you ensure that the swap was active (swapon command) ?

cabal version 3.0 . if i grep SwapTotal /proc/meminfo it gives me 8gb

Would you mind posting the list of commands you typed ? Or the guide you followed if you did so ?

@Raspool

I’m trying to do build a node myself, BUT would like to create everything through docker.

Do you have a tutorial or list of steps you took to build the node?

Thanks

Hi @nemo83 !

Sorry for the delay, I haven’t been here for a while.

Unfortunately, I don’t use docker so I can’t help you. I hope you’ve found what you needed since you posted it more than a month ago.

Have fun managing your pool on those awesome little monsters!

Hey Roshi!
Im getting an error as well on my ubuntu 18.04, if i dont build on tmux i get thrown out of ssh session completely!

               total        used        free      shared  buff/cache   available
Mem:           3912        1599         888           4        1424        1951
Swap:          5071          46        5025

Failed to build th-orphans-0.13.11.
Build log (
/home/mextro/.cabal/logs/ghc-8.10.2/th-orphans-0.13.11-f31a1b7bd6bd1d6f83d2969ac5151ccf21be2b2e1847dcd2ab136eed3257ba14.log
):
Configuring library for th-orphans-0.13.11…
Preprocessing library for th-orphans-0.13.11…
Building library for th-orphans-0.13.11…
[1 of 2] Compiling Language.Haskell.TH.Instances.Internal ( src/Language/Haskell/TH/Instances/Internal.hs, dist/build/Language/Haskell/TH/Instances/Internal.o, dist/build/Language/Haskell/TH/Instances/Internal.dyn_o )
[2 of 2] Compiling Language.Haskell.TH.Instances ( src/Language/Haskell/TH/Instances.hs, dist/build/Language/Haskell/TH/Instances.o, dist/build/Language/Haskell/TH/Instances.dyn_o )
ghc: panic! (the ‘impossible’ happened)
(GHC version 8.10.2:
Loading temp shared object failed: /tmp/ghc6526_0/libghc_10.so: failed to map segment from shared object
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
cabal: Failed to build th-orphans-0.13.11 (which is required by
test:cardano-node-test from cardano-node-1.24.2, test:cardano-cli-test from
cardano-cli-1.24.2 and others). See the build log above for details.

the log mentioned the same actually:

Configuring library for th-orphans-0.13.11..
Preprocessing library for th-orphans-0.13.11..
Building library for th-orphans-0.13.11..
[1 of 2] Compiling Language.Haskell.TH.Instances.Internal ( src/Language/Haskell/TH/Instances/Internal.hs, dist/build/Language/Haskell/TH/Instances/Internal.o, dist/build/Language/Haskell/TH/Instances/Internal.dyn_o )
[2 of 2] Compiling Language.Haskell.TH.Instances ( src/Language/Haskell/TH/Instances.hs, dist/build/Language/Haskell/TH/Instances.o, dist/build/Language/Haskell/TH/Instances.dyn_o )
ghc: panic! (the 'impossible' happened)
  (GHC version 8.10.2:
    Loading temp shared object failed: /tmp/ghc6526_0/libghc_10.so: failed to map segment from shared object

Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug

Hello @Mextro,

I hope you’ve figured out what the issue was. If not:

  • What is your swapiness number?
  • Is a relay/node running while you build?

@Mextro are you running on 64bit? Here is a doc that describes how to setup the Pi and and run a node using docker.

This image provides …

  • topology updates
  • graceful shutdown
  • gLiveView
  • leader logs

The Dockerfile file is here.

I’m currently working on building this through Nix, so this can hopefully find its way upstream eventually.

no… was running on an old desktop with 32bit and less than 4gb ram… i know the minimum requirements but tried it anyway. Ive now built another server with 64bit and 8gb and am gonna try again! Thank you very much