Created attachment 196025 [details]
avro-c uses GCC atomic intrinsics (__sync_add_and_fetch, __sync_sub_and_fetch).
These are well supported by clang, but the ifdef was testing for GNUC newer than 40500 and these weren't used.
avro-c had a raw x86 assembly fallback, which is why it worked fine on there.
With this tiny patch, it builds fine on aarch64 and armv7. clang should support these on mips too I think.
A commit references this bug:
Date: Thu Aug 9 14:45:58 UTC 2018
New revision: 476784
Fix build on aarch64, arm and mips
Submitted by: Greg V <email@example.com>