https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78267
--- Comment #12 from Rainer Orth <ro at gcc dot gnu.org> --- (In reply to Dominique d'Humieres from comment #10) > > Attaching untested fix. > > Dominique, could you try it? > > Now breaks with [...] > In file included from /usr/include/Availability.h:180:0, > from /usr/include/stdio.h:65, > from > ../../../../work/libsanitizer/sanitizer_common/sanitizer_mac.cc:21: > /usr/include/asl.h:342:79: error: 'introduced' was not declared in this scope > asl_object_t asl_open(const char *ident, const char *facility, uint32_t > opts) __API_DEPRECATED("os_log(3) has replaced asl(3); see > os_log_create(3)", macosx(10.4,10.12), ios(2.0,10.0), watchos(2.0,3.0), > tvos(9.0,10.0)); > > ^ Also filed with Apple already: Bug 29184665 __API_AVAILABLE etc. assume __attribute__((availability)) Boils down to __API_AVAILABLE and friends in <Availability.h> not being properly wrapped in #if defined(__has_feature) #if __has_feature(availability) Another case for fixincludes, I guess. Rainer