Build failure on x86 linux: undefined reference to `__atomic_load'

Luke Benes lukebenes at hotmail.com
Wed Sep 15 23:48:54 UTC 2021


Thanks for helping me to try to reproduce this. I'm building with clang-14. Are you building with gcc? I've confirmed that when I built libcuckoo from 
https://github.com/efficient/libcuckoo with clang, I get a similar failure to the initial failure. When I build it with gcc-11, the build is successful. 

At this point, it appears to be a bug in clang. 

-Luke


[ 14%] Linking CXX executable hellohash
/usr/bin/ld: CMakeFiles/hellohash.dir/hellohash.cc.o: in function `std::atomic<double>::load(std::memory_order) const':
hellohash.cc:(.text._ZNKSt6atomicIdE4loadESt12memory_order[_ZNKSt6atomicIdE4loadESt12memory_order]+0x39): undefined reference to `__atomic_load'
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [examples/CMakeFiles/hellohash.dir/build.make:97: examples/hellohash] Error 1
make[1]: *** [CMakeFiles/Makefile2:358: examples/CMakeFiles/hellohash.dir/all] Error 2

$ clang --version
clang version 14.0.0 (https://github.com/llvm/llvm-project.git c78ed20784ee7ffb60b0879197e34225325aafd0)
Target: i686-pc-linux-gnu




More information about the LibreOffice mailing list