[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



On Wed, Dec 04, 2013 at 06:12:53PM +0100, Sylvestre Ledru wrote:
> Le 04/12/2013 04:19, YunQiang Su a écrit :
> > On Wed, Dec 4, 2013 at 12:34 AM, Sylvestre Ledru <sylvestre@debian.org> wrote:
> >> Hello,
> >>
> >> Under both mips & mipsel, lldb (from both llvm-toolchain-3.3 and -3.4)
> >> fails to build from sources with:
> >>
> >> /usr/include/c++/4.8/bits/atomic_base.h:496: undefined reference to `__atomic_load_8'
> > All of 3.3/3.4/3.5 can be built successfully on mips64el.
> I am not familiar with the mips*. What could explain the difference
> between mips64el and the 2 others?
> 

>From the name it seems that it is trying to load a 8-bytes word
atomically. We can't provide that on a 32-bit architecture, and I think
other 32-bit architectures might have the same problem. Or maybe LLVM 
wrongly detects the machine as 64-bit (as it has a 64-bit kernel), and 
thus try to use 64-bit atomic functions.

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: