bug#25791: address argument to atomic operation must be a pointer to _At
From:
ilove zfs
Subject:
bug#25791: address argument to atomic operation must be a pointer to _Atomic type with 2.1.7 on macOS
Date:
Sun, 19 Feb 2017 08:41:05 +0000 (GMT)
On macOS 10.11 and 10.12 building with Xcode 8, guile 2.1.7 fails to compile with several errors saying "address argument to atomic operation must be a pointer to _Atomic type." I can avoid this by setting ac_cv_header_stdatomic_h=no.
Build failure is ``` CC libguile_2.2_la-arrays.lo CC libguile_2.2_la-async.lo In file included from async.c:27: ../libguile/atomics-internal.h:37:10: error: address argument to atomic operation must be a pointer to _Atomic type ('gl_uint32_t *' (aka 'unsigned int *') invalid) return atomic_fetch_sub (loc, arg); ^ ~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stdatomic.h:149:43: note: expanded from macro 'atomic_fetch_sub' #define atomic_fetch_sub(object, operand) __c11_atomic_fetch_sub(object, operand, __ATOMIC_SEQ_CST) ``` and several similar errors.