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

Luke Benes lukebenes at
Thu Sep 16 15:16:21 UTC 2021

> Or clang needs -latomic and gcc not.
Yes, it does. Looks like a known bug in clang:

Building with "-DCMAKE_CXX_FLAGS=-latomic", resolves the undefined reference to `__atomic_load' and allows the build to complete successfully. However, it causes clang to spam 
clang-12: warning: -latomic: 'linker' input unused [-Wunused-command-line-argument]

when building.


More information about the LibreOffice mailing list