<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 19, 2014 at 6:47 PM, Marvin Damschen <span dir="ltr"><<a href="mailto:marvin.damschen@gullz.de" target="_blank">marvin.damschen@gullz.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><br>
> This error reports comes from building tsan (ThreadSanitizer) run-time.<br>
> First: do you need it?<br>
<br>
</div>I do not need it, but I am not too familiar with the clang build<br>
process. How do I disable it? Would commenting out the<br>
'add_compiler_rt_static_runtime' and 'add_compiler_rt_static_runtime' in<br>
the CMakeLists be sufficient?<br></blockquote><div><br></div><div>Do you need compiler-rt at all? If no, just don't check it out. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><br>
> Second: try to hack compiler-rt/lib/sanitizer_common/sanitizer_asm.h<br>
> to disable CFI directives.<br>
<br>
</div>Apparently, sanitizer_asm.h was added in trunk after 3.4 to solve<br>
exactly the problem I am having right now. However, I am bound to 3.4<br>
because I want to use Intel's OpenMP extensions eventually. I think<br>
disabling the problematic sanitizers is the way to go for me now.<br></blockquote><div><br></div><div>Ah, so trunk does not trouble you. </div><div>Then just comment out the cfi directives in your variant of 3.4 whenever you find them (couple of places in compiler-rt/lib/sanitizer_common and compiler-rt/lib/tsan)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Thank you<br>
<span class=""><font color="#888888">Marvin<br>
</font></span></blockquote></div><br></div></div>