Re: LLVM/lldb FTBFS with undefined reference to `__atomic_load_8'g

Sylvestre Ledru <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
On 16/12/2013 13:15, Dejan Latinovic wrote:
>
> On Sun, Dec 08, 2013 at 22:21:14PM +0100, Aurelien Jarno wrote:
>
>
> In a class Address there is a member variable std::atomic<lldb::addr_t> m_offset
> where addr_t is defined as uint64_t.
>
> When loading and storing variables of this type, GCC generates calls to library
> functions __atomic_load_8 and __atomic_store_8. These functions are implemented in
> library libatomic, and GCC added support for libatomic starting from version 4.8.
>
> So, to avoid this error it is needed to link liblldb.so whit libatomic.
>
> After I add "-latomic" in LDFLAGS for llbd, lldb compiled successfully for me.
>
Right, that fixed the problem for me. Many thanks!

The build is failing because the partition on the mips buildd was full
... but that is a different story.

Thanks again,
Sylvestre
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.