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

Stephan Bergmann sbergman at
Thu Oct 14 07:44:02 UTC 2021

On 13/10/2021 18:49, Luke Benes wrote:
> I can successfully build LO on i686 with
> LDFLAGS="-latomic"
> This is overkill. I think patch is needed for the cuckoo module that you added in
> for IA-32 clang. I attempted to do this but I'm not family with how this patching/external system works. If you could give me some tips or something to try, I'd be happy to test it out for you.

In's !SYSTEM_CPPUNIT definition of 
gb_LinkTarget__use_cuckoo_headers, you'll probably need something like

   $(call gb_LinkTarget_add_libs,$(1),-latomic)

properly if'ed for your specific i686 case.

More information about the LibreOffice mailing list