Created attachment 196025 [details] avro-c.patch 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: Author: sunpoet Date: Thu Aug 9 14:45:58 UTC 2018 New revision: 476784 URL: https://svnweb.freebsd.org/changeset/ports/476784 Log: Fix build on aarch64, arm and mips PR: 230478 Submitted by: Greg V <greg@unrelenting.technology> Changes: head/devel/avro-c/Makefile head/devel/avro-c/files/patch-src_avro_refcount.h
Committed. Thanks!