<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 21, 2016 at 9:00 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Wed, Dec 21, 2016 at 2:55 PM, Teresa Johnson <<a href="mailto:tejohnson@google.com">tejohnson@google.com</a>> wrote:<br>
> I think you can get this via "ninja -t commands bin/lldb-argdumper"<br>
> (this will give you a lot of output, all of the compilation commands<br>
> used to build that target). Or redo the build with -v to be sure.<br>
<br>
</span>Unfortunately the old build tree is gone for space reclaim reasons. Sorry,<br>
I'll make sure to not nuke it the next time. I guess I thought the detailed<br>
error message would be enough.<br>
<br>
I didn't build again, but I did configure with the settings posted yesterday,<br>
and there's a warning which I'm unsure how to interpret and if it's a<br>
concern:<br>
<br>
---<br>
CMake Warning at tools/lldb/cmake/modules/<wbr>LLDBConfig.cmake:409 (message):<br>
You appear to be linking to libstdc++ version lesser than 4.9 without<br>
exceptions enabled. These versions of the library have an issue, which<br>
causes occasional lldb crashes. See<br>
<<a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59656" rel="noreferrer" target="_blank">https://gcc.gnu.org/bugzilla/<wbr>show_bug.cgi?id=59656</a>> for details. Possible<br>
courses of action are:<br>
<br>
- use libstdc++ version 4.9 or newer<br>
<br>
- use libc++ (via LLVM_ENABLE_LIBCXX)<br>
<br>
- enable exceptions (via LLVM_ENABLE_EH)<br>
<br>
- ignore this warning and accept occasional instability<br>
Call Stack (most recent call first):<br>
tools/lldb/CMakeLists.txt:4 (include)<br>
---<br>
<br>
libstdc++ is 6.2.1 so the CMake check seems wrong.<br></blockquote><div><br></div><div>Or maybe it is picking up a different libstdc++ from somewhere else on your system? Here's the check from the cmake file:</div><div><br></div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"> # There doesn't seem to be an easy way to check the library version. Instead, we rely on the
# fact that std::set did not have the allocator constructor available until version 4.9
check_cxx_source_compiles("
#include <set>
std::set<int> s = std::set<int>(std::allocator<int>());
int main() { return 0; }" </pre><div><span style="color:rgb(0,0,0);white-space:pre-wrap"> LLDB_USING_LIBSTDCXX_4_9)</span></div><div><br></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"></span>So the version check isn't precise, but unless libstdc++ 6.2.1 doesn't have this interface available, which seems unlikely, something else is going wrong.</div><div><br></div><div>Teresa</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
This prompted me to use -libstd=libc++ and -DLLVM_ENABLE_LIBCXX=ON,<br>
but for some reason Arch Linux packages llvm and clang in version 3.9.0<br>
but libc++ in 3.8.0, so I skipped it.<br>
<br>
Unless the above libstdc++ warning is a problem, I will build and report<br>
back when done.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="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:2px solid rgb(213,15,37)">Teresa Johnson |</td><td nowrap style="border-top:2px solid rgb(51,105,232)"> Software Engineer |</td><td nowrap style="border-top:2px solid rgb(0,153,57)"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top:2px solid rgb(238,178,17)"> 408-460-2413</td></tr></tbody></table></span></div>
</div></div>