<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Feb 5, 2016 at 11:11 AM, Kostya Serebryany via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Fri, Feb 5, 2016 at 6:21 AM, Hahnfeld, Jonas via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</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">Hi all,<br>
<br>
I'm currently looking into (optionally) switching the default C++ stdlib to<br>
libc++ (see <a href="http://reviews.llvm.org/D15920" rel="noreferrer" target="_blank">http://reviews.llvm.org/D15920</a> which hasn't received a review so<br>
far)<br>
I've resolved all regression test failures in clang which are now passing<br>
cleanly.<br>
<br>
I'm now investigating the failing sanitizer tests in compiler-rt, here's<br>
what I got so far:<br>
 - two tests use -static-libstdc++ which obviously needs a -stdlib=libstdc++<br>
(asan/TestCases/throw_invoke_test.cc and tsan/static_init6.cc)<br></blockquote><div><br></div></span><div>Makes sense. </div><div>I wonder if we can also use -static-libc++ for these tests</div><span class=""><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">
 - tsan builds an instrumented version of libc++ and adds their headers.<br>
This leads to errors with default C headers which are #include_next'd in<br>
libc++. These #include_next then find the headers of the "normal" libc++<br>
which in turn instantly return because of the header guards. Therefore basic<br>
functions like printf aren't defined.<br>
Solution: Pass -nostdinc++ to disable the headers of the "normal" libc++<br></blockquote><div><br></div></span><div>emm, probably. </div></div></div></div></blockquote><div><br></div><div>Just to clarify: do you want to pass it to TSan lit tests? How would you ensure that</div><div>we'll still pick up C++ standard library headers when tests are run with Clang configured</div><div>to use libstdc++?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><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">
 - lsan completely fails with libc++, I had to generally pass<br>
-stdlib=libstdc++ - is this known and possibly still work in progress?<br></blockquote><div><br></div></span><div>This is not known to me. What are the symptoms? </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"><span class="">
<br>
Greetings,<br>
Jonas<br>
<br>
--<br>
Jonas Hahnfeld, MATSE-Auszubildender<br>
<br>
IT Center<br>
Group: High Performance Computing<br>
Division: Computational Science and Engineering<br>
RWTH Aachen University<br>
Seffenter Weg 23<br>
D 52074  Aachen (Germany)<br>
<a href="mailto:Hahnfeld@itc.rwth-aachen.de" target="_blank">Hahnfeld@itc.rwth-aachen.de</a><br>
<a href="http://www.itc.rwth-aachen.de" rel="noreferrer" target="_blank">www.itc.rwth-aachen.de</a><br>
<br>
<br></span>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div></div>
</div></div>