* Symptom
------------------------------------------------
/jdk/src/hotspot/os_cpu/bsd_zero/atomic_bsd_zero.hpp:258:10: error: address argument to atomic builtin must be a pointer to integer or pointer ('volatile narrowOop *' invalid)
return __sync_val_compare_and_swap(dest, compare_value, exchange_value);
^ ~~~~
./src/hotspot/share/runtime/atomic.hpp:746:12: note: in instantiation of function template specialization 'Atomic::PlatformCmpxchg<4>::operator()<narrowOop>' requested here
return PlatformCmpxchg<sizeof(T)>()(dest,
^
./src/hotspot/share/runtime/atomic.hpp:722:10: note: in instantiation of member function 'Atomic::CmpxchgImpl<narrowOop, narrowOop, narrowOop, void>::operator()' requested here
return CmpxchgImpl<D, U, T>()(dest, compare_value, exchange_value, order);
^
... (rest of output omitted)
------------------------------------------------
* Reproduce
Build Zero VMs with clang on Linux or MacOS platforms