When building the latest version 1.29.0 of the Cardano node binaries I ran into some unfamiliar issues as I was also migrating to arm64 processors at the same time.
The 2 trickiest issues were simple fixes in the end.
I was seeing problems with LLVM version issues. This was solved on Ubuntu by installing llvm-9 and adding the alternative binary path to the environment.
sudo apt-get install llvm-9
sed -i $HOME/.bashrc -e "s/export PATH=\(.*\)$/export PATH=\1:\/lib\/llvm-9\/bin/g"
source ~/.bashrc
Once that was fixed the build moved on to whinging about -lnuma being missing. That was fixed by installing libnuma-dev.
sudo apt-get install libnuma-dev
From there you should be able to carry on with your build
cabal build cardano-cli cardano-node
hth