After updating to Mojave 10.14.4 and Xcode 10.2, I fail to compile GCC 8.3.0. The error message is
In file included from /usr/include/sys/sysctl.h:83,
from ../../gcc-8.3.0/gcc/config/darwin-driver.c:30:
/usr/include/sys/ucred.h:94:2: error: ‘_Atomic’ does not name a type
_Atomic u_long cr_ref; /* reference count */
^~~~~~~
I have not found any clue how this can be fixed. The header in question is
struct ucred {
LIST_ENTRY(ucred) cr_link; /* never modify this without KAUTH_CRED_HASH_LOCK */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__)
_Atomic u_long cr_ref; /* reference count */
#elif defined(__cplusplus) && __cplusplus >= 201103L
_Atomic u_long cr_ref; /* reference count */ // <--- this line
#else
volatile u_long cr_ref; /* reference count */
#endif
Any ideas are highly appreciated!