Zcash v5.5.0 build error on aarch64 Ubuntu

Hi,

I have tried to compile the new v5.5.0 release on the foliwing platform, but failed after about an hour. The log is filled with endless errors, however I thinkg they are well summarised by the below quoted text. Would anyone know what might be the issue?

Hardware: Raspberry Pi 4 8GB
OS: Ubuntu 22.4.1

Error log excerpts:

In file included from libs/thread/src/pthread/thread.cpp:9:
In file included from ./boost/thread/detail/config.hpp:11:
In file included from ./boost/config.hpp:44:
In file included from ./boost/config/detail/select_stdlib_config.hpp:24:
In file included from /home/oscarpzec/zcash/depends/aarch64-unknown-linux-gnu/native/bin/../include/c++/v1/version:197:
In file included from /home/oscarpzec/zcash/depends/aarch64-unknown-linux-gnu/native/bin/../include/c++/v1/__assert:13:
/home/oscarpzec/zcash/depends/aarch64-unknown-linux-gnu/native/bin/../include/c++/v1/__config:13:10: fatal error: '__config_site' file not found
#include <__config_site>
         ^~~~~~~~~~~~~~~
1 error generated.
...failed clang-linux.compile.c++ bin.v2/libs/thread/build/clang-linux-15/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/pthread/thread.o...
...skipped <pbin.v2/libs/thread/build/clang-linux-15/release/link-static/threadapi-pthread/threading-multi/visibility-hidden>libboost_thread.a(clean) for lack of <pbin.v2/libs/thread/build/clang-linux-15/release/link-static/threadapi-pthread/threading-multi/visibility-hidden>pthread/thread.o...
...skipped <pbin.v2/libs/thread/build/clang-linux-15/release/link-static/threadapi-pthread/threading-multi/visibility-hidden>libboost_thread.a for lack of <pbin.v2/libs/thread/build/clang-linux-15/release/link-static/threadapi-pthread/threading-multi/visibility-hidden>pthread/thread.o...
...skipped <p/home/oscarpzec/zcash/depends/work/build/aarch64-unknown-linux-gnu/boost/1_82_0-1a1aa05ae8a/stage/lib>libboost_thread.a for lack of <pbin.v2/libs/thread/build/clang-linux-15/release/link-static/threadapi-pthread/threading-multi/visibility-hidden>libboost_thread.a...
...skipped <pbin.v2/libs/thread/build/clang-linux-15/release/link-static/threadapi-pthread/threading-multi/visibility-hidden>libboost_thread-variant-static.cmake for lack of <pbin.v2/libs/thread/build/clang-linux-15/release/link-static/threadapi-pthread/threading-multi/visibility-hidden>libboost_thread.a...
...skipped <p/home/oscarpzec/zcash/depends/work/build/aarch64-unknown-linux-gnu/boost/1_82_0-1a1aa05ae8a/stage/lib/cmake/boost_thread-1.82.0>libboost_thread-variant-static.cmake for lack of <pbin.v2/libs/thread/build/clang-linux-15/release/link-static/threadapi-pthread/threading-multi/visibility-hidden>libboost_thread-variant-static.cmake...
...failed updating 49 targets...
...skipped 45 targets...
...updated 115 targets...
make: Leaving directory '/home/oscarpzec/zcash/depends'
1 Like

I have a orange pi 5 running Orangepi OS bullseye xfce, I have not attempted to build Zcashd on it however (it runs zebrad). I dont know if the rasp and orange img’s are compatible (there is a pi 4 variant) but here is the hub and the imgs are in the indivudual device categories
http://www.orangepi.org/html/serviceAndSupport/index.html

1 Like

You’re probably better off cross-compiling to this platform from desktop Linux, using
HOST=aarch64-unknown-linux-gnu zcutil/build.sh -j$(nproc)

5 Likes

Thank you but my interest is mainly in having zcashd building easily and natively on the Pi under the standard OS flavours (as opposed to actaully having zcashd running for my own use).

2 Likes

Thank you for the corss compile idea and command config. My main interest is in having zcashd building easily and natively on the Pi under the standard OS flavours (as opposed to actaully having zcashd running for my own use in this particular case).

If there isnt anything wrong with my set up, then this is more of a flag to the dev team than a help request. Up to you guys of course whether to prioritise the platform. Thanks.

1 Like

Assuming you are using Ubuntu on the RasPi 4 8GB edition, my native compiles were failing due to a missing __config__site file. I was able to workaround the include issue by copying the file into one directory up the hierarchy.

cp ./depends/aarch64-unknown-linux-gnu/native/include/aarch64-unknown-linux-gnu/c++/v1/__config_site ./depends/aarch64-unknown-linux-gnu/native/bin/../include/c++/v1/

I’ve now got the 5.5.0 node running successfully.

1 Like

Another user reports a similar build issue and I referenced this thread

zcash/depends/work/build/aarch64-unknown-linux-gnu/boost/1_82_0-1a1aa05ae8a/./.stamp_built] Error 1

The fix below reportedly did not work

HOST=aarch64-unknown-linux-gnu zcutil/build.sh -j$(nproc)

The latest release, v5.5.1 seems to include a fix for the above issue.
I’ve just compiled successfully without making any tweaks.

Thanks for the help everyone.

2 Likes

The other user reports it working as well :+1:

2 Likes