Skip to content

rts/ARMOutlineAtomicsSymbols.h does not compile

When compiling GHC 9.6 with Clang 16 on FreeBSD 14 AArch64 I get a bunch of compilation errors:

rts/ARMOutlineAtomicsSymbols.h:15:3: error:
     error: address argument to atomic operation must be a pointer to _Atomic type ('uint8_t *' (aka 'unsigned char *') invalid)
      atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_relaxed, memory_order_relaxed); return old;
      ^                                       ~
   |
15 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_relaxed, memory_order_relaxed); return old;
   |   ^
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information