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

Re: RM: oclgrind [armel] -- ROP; FTBFS with clang 7



Hi Andreas!

> /usr/bin/ld: liboclgrind-18.3.so: undefined reference to `__atomic_fetch_add_4'
> /usr/bin/ld: liboclgrind-18.3.so: undefined reference to `__atomic_exchange_4'
> /usr/bin/ld: liboclgrind-18.3.so: undefined reference to `__atomic_fetch_sub_4'
> /usr/bin/ld: liboclgrind-18.3.so: undefined reference to `__atomic_load_1'
> /usr/bin/ld: liboclgrind-18.3.so: undefined reference to `__atomic_store_4'
> /usr/bin/ld: liboclgrind-18.3.so: undefined reference to `__atomic_load_4'
> /usr/bin/ld: liboclgrind-18.3.so: undefined reference to `__atomic_store_1'
> /usr/bin/ld: liboclgrind-18.3.so: undefined reference to `__atomic_compare_exchange_4'
> collect2: error: ld returned 1 exit status
> 
> and I don't have time to debug this.

This is most likely caused by a missing -latomic in the linker options,
see [1]. armel doesn't have these atomics built-in in hardware, so you
need to use an external helper library for that.

Adrian

> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915046

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: