<br><br><div class="gmail_quote">On Wed, Sep 12, 2012 at 8:27 PM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Sep 12, 2012 at 9:14 AM, Marshall Clow <<a href="mailto:mclow.lists@gmail.com">mclow.lists@gmail.com</a>> wrote:<br>
> On Sep 12, 2012, at 9:00 AM, Sean McBride <<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>> wrote:<br>
><br>
>> Hi all,<br>
>><br>
>> I'm doing a pretty plain CMake build of clang, and it seems to not be buildable, giving (on 2 machines):<br>
>><br>
>><br>
>> [ 15%] Building CXX object projects/compiler-rt/lib/asan/CMakeFiles/clang_rt.asan_osx_dynamic.dir/asan_report.cc.o<br>
>> [ 15%] /llvm/llvm/projects/compiler-rt/lib/asan/asan_report.cc:282:1: error: function declared 'noreturn' should not return [-Werror,-Winvalid-noreturn]<br>
>> }<br>
>> ^<br>
>> 1 error generated.<br>
>> make[2]: *** [projects/compiler-rt/lib/asan/CMakeFiles/clang_rt.asan_osx_dynamic.dir/asan_report.cc.o] Error 1<br>
>><br>
>> Any one else seeing this?<br>
><br>
> Yes, I'm seeing it too.<br>
<br>
</div>I guess this might've been what Daniel Dunbar was trying to suppress<br>
the other day.<br></blockquote><div><br></div><div>Yeah, the problem is that old Clang (3.0 is also considered "old" here) incorrectly produces -Winvalid-noreturn</div><div>if a function has local variable with noreturn destructor.</div>
<div><br></div><div>Yesterday we've added -Werror to default compile flags for AddressSanitizer runtime, so your build breaks there.</div><div>Probably it's not the best idea: as David mentions, developers may use different compilers. We may break many</div>
<div>of them if their weird (or old) compiler produces any kind of warning in ASan code. I'm removing -Werror now.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
What version of clang are you using to build?<br>
<span class="HOEnZb"><font color="#888888"><br>
- David<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
> -- Marshall<br>
><br>
> Marshall Clow Idio Software <mailto:<a href="mailto:mclow.lists@gmail.com">mclow.lists@gmail.com</a>><br>
><br>
> A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).<br>
> -- Yu Suzuki<br>
><br>
><br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div><br>