Turned out this is "Apple block" type declaration that isn't supported in 
GCC. We'll apply a local patch to fix the issue.
Sorry for the noise.

-Maxim

среда, 9 ноября 2016 г., 19:15:26 UTC+3 пользователь Maxim Ostapenko 
написал:
>
> Hi,
>
> I've recently merged relatively fresh sanitizer library from LLVM to GCC 
> and faced quite strange build failure on darwin16 (OX 10.12.1). 
> Corresponding bug in GCC bugzilla is here: 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78267
>
> As I noted in bugzilla, the error 
>
> ../../../../work/libsanitizer/sanitizer_common/sanitizer_mac.cc  -fno-common 
> -DPIC -o .libs/sanitizer_mac.o
> In file included from 
> ../../../../work/libsanitizer/sanitizer_common/sanitizer_mac.cc:39:0:
> /usr/include/os/trace.h:204:15: error: expected unqualified-id before '^' 
> token
>  typedef void (^os_trace_payload_t)(xpc_object_t xdict);
>                ^
> /usr/include/os/trace.h:204:15: error: expected ')' before '^' token
> 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:
>
>
> looks very strange, it seems that this typedef comes from Objective-C header 
> (<os/trace.h>). The only reasonable information about this typedef I found is 
> that it's relatively new (it was introduced in macOS 10.11.2) and it's an 
> Objective-C type alias 
> (https://developer.apple.com/reference/os/os_trace_payload_t).
>
>
> I wonder how this issue (including Objective-C header in C++ code) was 
> handled in clang + OS X 10.11+? Is there some other, C++ <os/trace.h> header?
>
> Kuba, do you have any comments here?
>
>
> Thanks,
>
> -Maxim
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to