That is a nuisance. The Ubuntu version of clang 14.0.0 doesn’t support one of the default flags configured automatically by the debian build system. You would think that Ubuntu would be very similar to Debian since it is based off it, but alas Debian stable has clang 14.0.6. clang/llvm is not necessary, it just seemed like a good idea because I think using it might produce slightly more optimised binaries.
OK. You inspired me to go install a Ubuntu virtual machine and work through my instructions step by step. My systems all run Debian stable. I haven’t ever used Ubuntu, so this is a learning experience for me. I followed these instructions for how to install a Ubuntu vm: How to Install Ubuntu 22.04 Virtual Machine on KVM
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
I couldn’t be bothered to figure out how to disable just that one particular clang/llvm compiler option that debuild is setting somewhere, so I elected to simply not use clang/llvm at all and instead use the default gcc and g++ compilers. In other words, you can simply skip that step about installing clang/llvm, and if you have already done it, then you can revert the changes with:
sudo update-alternatives --remove-all cc; \
sudo update-alternatives --remove-all c++
Then uninstall (apt purge) clang/llvm if you like.
I followed my instructions for each dependency library (skipping the clang/llvm option):
sha256sum libblst-iog_0.3.11_amd64.deb
7fe0a72adc3730e50938bcd0d33b6d2c1cce5c65a5eb1e2202edea2fda082518 libblst-iog_0.3.11_amd64.deb
sha256sum libsodium{23,-dev}-iog_1.0.18_amd64.deb
32f04f8d2cdc820acaef827e42a165c532e34ac7ec280085247c6683c41b2d14 libsodium23-iog_1.0.18_amd64.deb
c3a03bfd420296d2b1291ac969537d99da9b35b8d8ed79219eef84387a332475 libsodium-dev-iog_1.0.18_amd64.deb
sha256sum libsecp256k1-{2,dev}-iog_0.3.2_amd64.deb
57ffde970b87ed157a74b814588baa382dd48e1cb52e1ee4a34145ab61f33a90 libsecp256k1-2-iog_0.3.2_amd64.deb
6ff4d6cee6b154104dfa95a35dc30ef6f4e610ce8f9f3228d84bee35357a7e4d libsecp256k1-dev-iog_0.3.2_amd64.deb
Then I installed all the libraries as root:
sudo dpkg -i /home/builder/src/libblst-iog/libblst-iog_0.3.11_amd64.deb; \
sudo dpkg -i /home/builder/src/libsodium-iog/libsodium{23,-dev}-iog_1.0.18_amd64.deb; \
sudo dpkg -i /home/builder/src/libsecp256k1-iog/libsecp256k1-{2,dev}-iog_0.3.2_amd64.deb
Then I noted @jeremyisme 's advice about Ubuntu and libssl1.1, but I think this might be a newer security updated version of that library:
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb; \
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb
Then I followed my instructions at GitHub - TerminadaPool/cardano-node-debian (skipping the clang/llvm option).
sha256sum cardano-{cli,node}_8.9.1_amd64.deb
9382cd4f24a43c4ec1979322c5197f0bcf806f33220c61e0b2f18641231f3039 cardano-cli_8.9.1_amd64.deb
12eff8cef25e8356bb7ae65845b5083a9677a8f6f535752f6c0fa004d606468b cardano-node_8.9.1_amd64.deb
Then I installed the cardano-node and cardano-cli packages:
sudo dpkg -i /home/builder/src/cardano-node/cardano-{cli,node}_8.9.1_amd64.deb; \
cardano-cli --version; \
cardano-node --version
cardano-cli 8.20.3.0 - linux-x86_64 - ghc-9.8
git rev da945ea983d4722a9ffe54250edba9a193a57cf0
cardano-node 8.9.1 - linux-x86_64 - ghc-9.8
git rev da945ea983d4722a9ffe54250edba9a193a57cf0
I will add a note to my instructions for Ubuntu users to avoid using clang/llvm and also that they need to manually install libssl1.1