0clang --version
1clang version 20.1.8 (Fedora 20.1.8-3.fc43)
2Target: aarch64-redhat-linux-gnu
3Thread model: posix
4InstalledDir: /usr/bin
5Configuration file: /etc/clang/aarch64-redhat-linux-gnu-clang.cfg
0export CC=clang
1export CXX=clang++
2# CMAKE_INTERPROCEDURAL_OPTIMIZATION is -flto=thin for clang
3cmake -B build -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DSANITIZERS=address
4<snip>
5[ 54%] Built target bitcoin-util
6[ 55%] Built target bitcoin-wallet
7[ 72%] Built target bitcoin_node
8[ 73%] Built target bitcoind
9[ 73%] Linking CXX executable ../../bin/test_bitcoin
10/usr/bin/ld: error: Failed to link module ../../lib/libbitcoin_consensus.a.llvm.20628.arith_uint256.cpp: Expected at most one ThinLTO module per bitcode file
11clang++: error: linker command failed with exit code 1 (use -v to see invocation)
We have seen the same issue in oss-fuzz: https://github.com/google/oss-fuzz/blob/564805ba6f3d5b3b9386ae68aaa919ffcf8b50da/projects/bitcoin-core/build.sh#L33.