This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/78267] [7 Regression] libsanitizer breaks bootstrap on x86_64-apple-darwin16 at r241977


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]