[llvm-dev] compiler-rt linking failure on linux-sparcv9
John Paul Adrian Glaubitz via llvm-dev
llvm-dev at lists.llvm.org
Wed Oct 21 17:10:39 PDT 2020
Hi!
On 10/22/20 12:28 AM, John Paul Adrian Glaubitz via llvm-dev wrote:
> On 10/21/20 8:19 PM, John Paul Adrian Glaubitz wrote:
>> The build on linux-sparcv9 has recently started to fail with a linker failure that looks easy to
>> fix but so far I've been unable to find out where to include the necessary -latomic [1]:
>
> This was introduced by:
So, the build actually fails in the 32-bit libraries and I think the main problem is in [1]:
The way atomic_load/store on 32 bits are implemented is just weird. The code could just use
__atomic_load() and __atomic_store() [2].
The build doesn't fail on x86 and MIPS because these architectures have custom headers for
this code. Not sure about PPC but it looks like the code is disabled on PPC completely?
Adrian
> [1] https://github.com/llvm/llvm-project/blob/master/compiler-rt/lib/sanitizer_common/sanitizer_atomic_clang.h
> [2] https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz at debian.org
`. `' Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
More information about the llvm-dev
mailing list