[LLVMdev] build failure on ARM linux

Andrew Haley aph at redhat.com
Wed Jul 1 02:48:53 PDT 2009


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.

Andrew.



More information about the llvm-dev mailing list