[LLVMdev] build failure on ARM linux

Nick Lewycky nicholas at mxc.ca
Wed Jul 1 20:06:24 PDT 2009

Andrew Haley wrote:
> Andrew Haley wrote:
>> Nick Lewycky wrote:
>>> 2009/6/30 Andrew Haley <aph at redhat.com <mailto:aph at redhat.com>>
>>>     Nick Lewycky wrote:
>>>     > I'm seeing this new build failure, starting some time yesterday on
>>>     ARM:
>>>     Yes.  It's just a matter of defining __sync_val_compare_and_swap_4:
>>>     http://gcc.gnu.org/svn/gcc/trunk/gcc/config/arm/linux-atomic.c
>>> The program is supposed to define it? LLVM doesn't directly call
>>> __sync_val_compare_and_swap_4, so either the system headers #define
>>> something else to it or gcc lowers another call to that.
>> gcc lowers atomic operations to that.  It's part of libgcc now.
>>> In either case, why is it declared HIDDEN?
>> I'm not sure.
> This is a known bug in gcc: see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40133
> We're trying to get it fixed.

Thanks for the reference! I've added myself to the cc.


More information about the llvm-dev mailing list