<p dir="ltr">Ah, I see. You're using GCC, which doesn't support blocks, to host Clang and build the ASan runtime.<br>
I don't think this is a configuration we want to support. As a result you'll get the runtime with missing blocks support, which won't pass the GCD tests (have you tried 'make check-asan' for the resulting Clang?)</p>

<div class="gmail_quote">On Nov 7, 2013 7:52 AM, "Alexander Potapenko" <<a href="mailto:glider@google.com">glider@google.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">Are there situations when blocks support is missing in Clang?</p>
<div class="gmail_quote">On Oct 11, 2013 1:43 AM, "Iain Sandoe" <<a href="mailto:iain@codesourcery.com" target="_blank">iain@codesourcery.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
I found today (on OSX10.8) that with cmake using gcc-4.8 as the bootstrap I was getting a fail building asan-mac.cc, related to use of blocks syntax.  The same checkout builds fine using autoconf/make.<br>
<br>
In asan-mac.cc, availability of blocks is currently tested by !defined(MISSING_BLOCKS_SUPPORT) - which is apparently not set in the cmake process - the attached trivial patch changes this to use "defined(__BLOCKS__)" instead.<br>


<br>
The same checkout now builds with both gcc-4.8 and clang for both 'cmake' and 'configure' (LLVM, clang and compiler-rt).<br>
<br>
Iain<br>
<br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div>
</blockquote></div>