Bug#922551: RM: oclgrind [armel] -- ROP; FTBFS with clang 7

2019-02-18 Thread Andreas Beckmann
On 2019-02-18 11:25, John Paul Adrian Glaubitz wrote:
> 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

Thanks for the pointer, will look into it.


Andreas



Bug#922551: RM: oclgrind [armel] -- ROP; FTBFS with clang 7

2019-02-18 Thread John Paul Adrian Glaubitz
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 - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Bug#922551: RM: oclgrind [armel] -- ROP; FTBFS with clang 7

2019-02-17 Thread Andreas Beckmann
Package: ftp.debian.org
Severity: normal

/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.


Andreas