<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 22, 2016 at 2:45 AM, Carsten Mattner <span dir="ltr"><<a href="mailto:carstenmattner@gmail.com" target="_blank">carstenmattner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Wed, Dec 21, 2016 at 6:10 PM, Teresa Johnson <<a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a>> wrote:<br>
<br>
> Or maybe it is picking up a different libstdc++ from somewhere else on your<br>
> system?<br>
> Here's the check from the cmake file:<br>
><br>
> # There doesn't seem to be an easy way to check the library version. Instead,<br>
</span>> # we rely on the fact that std::set did not have the allocator constructor available<br>
> # until version 4.9<br>
<span>> check_cxx_source_compiles("<br>
> #include <set><br>
> std::set<int> s = std::set<int>(std::allocator<i<wbr>nt>());<br>
> int main() { return 0; }"<br>
<br>
</span>I cannot make g++ 6.2.1 fail to build the test snippet with<br>
or without the archlinux-default/custom CXXFLAGS and LDFLAGS.<br>
<br>
Time to find the real error and what's happening.<br>
<span><br>
> LLDB_USING_LIBSTDCXX_4_9)<br>
><br>
> So the version check isn't precise, but unless libstdc++ 6.2.1 doesn't have this<br>
> interface available, which seems unlikely, something else is going wrong.<br>
<br>
</span>That seems risky to ignore then. I guess I'll postpone the rebuild until this<br>
can be resolved/explained.<br>
<br>
Also because ideally I want to do it that way, and it's a goal for a<br>
future default<br>
build config of llvm as discussed recently here, I'd prefer to build<br>
and then use<br>
the in-tree libc++. But it doesn't seem like -DLLVM_ENABLE_LIBCXX has that<br>
effect. Shouldn't it or if not why can't it? I would certainly welcome<br>
and find natural<br>
that the in-tree libc++ is used when LLVM_ENABLE_LIBCXX=ON. The need for<br>
a pre-built and installed libc++ is less practical.<br></blockquote><div><br></div><div>I'm really not sure, and I don't build or use libc++ myself. I was hoping someone else would answer this part, so maybe fork it into a different thread about that specifically so that the question gets more visibility.</div><div><br></div><div>Teresa </div></div><br><br clear="all"><div><br></div>-- <br><div class="m_7854730459997288795gmail_signature" data-smartmail="gmail_signature"><span style="font-family:Times;font-size:medium"><table cellspacing="0" cellpadding="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Teresa Johnson |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"> <a href="tel:(408)%20460-2413" value="+14084602413" target="_blank">408-460-2413</a></td></tr></tbody></table></span></div>
</div></div>