<div dir="ltr">I'm too tired, minor corrections<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">Download & Build</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">ROOT_DIR=$HOME/ll/svn</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">mkdir -p $ROOT_DIR/build</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">cd $ROOT_DIR</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">svn co </span><a href="https://llvm.org/svn/llvm-project/lldb/trunk" target="_blank" style="font-family:arial,sans-serif;font-size:13px">https://llvm.org/svn/llvm-project/lldb/trunk</a><span style="font-family:arial,sans-serif;font-size:13px"> lldb</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">svn co </span><a href="https://llvm.org/svn/llvm-project/llvm/trunk" target="_blank" style="font-family:arial,sans-serif;font-size:13px">https://llvm.org/svn/llvm-project/llvm/trunk</a><span style="font-family:arial,sans-serif;font-size:13px"> llvm</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">svn co </span><a href="https://llvm.org/svn/llvm-project/cfe/trunk" target="_blank" style="font-family:arial,sans-serif;font-size:13px">https://llvm.org/svn/llvm-project/cfe/trunk</a><span style="font-family:arial,sans-serif;font-size:13px"> clang</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">cd llvm/tools</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">ln -s ../../clang clang</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">ln -s ../../lldb lldb</span><div style="font-family:arial,sans-serif;font-size:13px">cd $ROOT_DIR/build</div><div style="font-family:arial,sans-serif;font-size:13px">CC='ccache clang -Qunused-arguments -fcolor-diagnostics' CXX='ccache clang++ -Qunused-arguments -fcolor-diagnostics' cmake -GNinja -DCMAKE_LINKER=ld.gold -DCMAKE_CXX_FLAGS= -DCMAKE_SHARED_LINKER_FLAGS= -DCMAKE_EXE_LINKER_FLAGS= -DCMAKE_INSTALL_PREFIX:PATH=$ROOT_DIR/install -DCMAKE_BUILD_TYPE=Release -Wno-dev ../llvm</div><div style="font-family:arial,sans-serif;font-size:13px">ninja<div>ninja check-lldb<br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 22, 2014 at 2:24 AM, Vince Harron <span dir="ltr"><<a href="mailto:vharron@google.com" target="_blank">vharron@google.com</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"><div>Hi Arne,</div><div><br></div><div>Sorry for not reading your message closer the first time.</div><div><br></div>These are roughly the steps we follow to build<br><br>Host setup (for Ubuntu 14.04, obviously debian steps may differ)<br><br>sudo apt-get update<br>sudo apt-get install build-essential cmake ninja-build git libedit-dev ncurses-dev python-dev swig clang-3.5 ccache binutils-gold<br><br>Download & Build<br><br>(lldb_configure.py really just invokes cmake)<br><br><br>ROOT_DIR=$HOME/ll/svn<br>mkdir -p $ROOT_DIR/build<br>cd $ROOT_DIR<br>svn co <a href="https://llvm.org/svn/llvm-project/lldb/trunk" target="_blank">https://llvm.org/svn/llvm-project/lldb/trunk</a> lldb<br>svn co <a href="https://llvm.org/svn/llvm-project/llvm/trunk" target="_blank">https://llvm.org/svn/llvm-project/llvm/trunk</a> llvm<br>svn co <a href="https://llvm.org/svn/llvm-project/cfe/trunk" target="_blank">https://llvm.org/svn/llvm-project/cfe/trunk</a> clang<br>git clone <a href="http://github.com/tfiala/lldb-tools" target="_blank">http://github.com/tfiala/lldb-tools</a><br>cd llvm/tools<br>ln -s ../../clang clang<br>ln -s ../../lldb lldb<div>cd $ROOT_DIR/build</div><div>CC='ccache clang -Qunused-arguments -fcolor-diagnostics' CXX='ccache clang++ -Qunused-arguments -fcolor-diagnostics' cmake -GNinja -DCMAKE_LINKER=ld.gold -DCMAKE_CXX_FLAGS= -DCMAKE_SHARED_LINKER_FLAGS= -DCMAKE_EXE_LINKER_FLAGS= -DCMAKE_INSTALL_PREFIX:PATH=$ROOT_DIR/install -DCMAKE_BUILD_TYPE=Release -Wno-dev ../llvm</div><div>ninja<div>ninja check-lldb<br><br>You can probably drop ccache and the compiler flags from CC and CXX</div><div><br></div><div>Vince</div><div><br><div><span><span style="font-size:11px;font-family:Consolas;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><br></span></span></div></div></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Fri, Nov 21, 2014 at 7:44 AM, Siva Chandra <span dir="ltr"><<a href="mailto:sivachandra@google.com" target="_blank">sivachandra@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On Fri, Nov 21, 2014 at 7:43 AM, Siva Chandra <<a href="mailto:sivachandra@google.com" target="_blank">sivachandra@google.com</a>> wrote:<br>
> On Fri, Nov 21, 2014 at 1:01 AM, Arne Schmitz <<a href="mailto:arne.schmitz@aixigo.de" target="_blank">arne.schmitz@aixigo.de</a>> wrote:<br>
>> Hi everybody,<br>
>><br>
>> I am still trying to build lldb on Debian Stable. I configured cmake like<br>
>> this:<br>
>><br>
>> cmake -DCMAKE_BUILD_TYPE="Release"<br>
>> -DCMAKE_C_COMPILER=/export/source/clang/bin/clang<br>
>> -DCMAKE_CXX_COMPILER=/export/source/clang/bin/clang++<br>
>> -DCMAKE_INSTALL_PREFIX=/export/source/clang ..<br>
>><br>
>> However, I think that the build tries to use my c++ stdlib provided by the<br>
>> system gcc 4.7, and that this is the cause of the error:<br>
>><br>
>> [ 91%] Building CXX object<br>
>> tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/ThreadStateCoordinator.cpp.o<br>
>> In file included from<br>
>> /export/source/git/llvm/tools/lldb/source/Plugins/Process/Linux/ThreadStateCoordinator.cpp:17:<br>
>> In file included from<br>
>> /export/source/git/llvm/tools/lldb/source/Plugins/Process/Linux/ThreadStateCoordinator.h:13:<br>
>> In file included from<br>
>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/condition_variable:38:<br>
>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/chrono:540:6:<br>
>> error: no matching constructor for initialization of 'duration' (aka<br>
>>       'std::chrono::duration<long, std::ratio<1, 1000000> >')<br>
>>           : __d(__t.time_since_epoch())<br>
>>             ^   ~~~~~~~~~~~~~~~~~~~~~~<br>
>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/condition_variable:111:42:<br>
>> note: in instantiation of function template specialization<br>
>>       'std::chrono::time_point<std::chrono::system_clock,<br>
>> std::chrono::duration<long, std::ratio<1, 1000000> ><br>
>>       >::time_point<std::chrono::duration<long, std::ratio<1, 1000000000> ><br>
>>>' requested here<br>
>>         const __clock_t::time_point __s_atime = __s_entry + __delta;<br>
>>                                                 ^<br>
>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/chrono:234:12:<br>
>> note: candidate constructor not viable: no known conversion from<br>
>>       'duration<[...], ratio<[...], 1000000000>>' to 'const duration<[...],<br>
>> ratio<[...], 1000000>>' for 1st argument<br>
>>         constexpr duration(const duration&) = default;<br>
>>                   ^<br>
>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/chrono:237:19:<br>
>> note: candidate template ignored: disabled by 'enable_if' [with _Rep2 =<br>
>>       std::chrono::duration<long, std::ratio<1, 1000000000> >]<br>
>>                enable_if<is_convertible<_Rep2, rep>::value<br>
>>                          ^<br>
>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/chrono:244:19:<br>
>> note: candidate template ignored: disabled by 'enable_if' [with _Rep2 =<br>
>>       long, _Period2 = std::ratio<1, 1000000000>]<br>
>> enable_if<treat_as_floating_point<rep>::value<br>
>>                          ^<br>
>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/chrono:232:12:<br>
>> note: candidate constructor not viable: requires 0 arguments, but 1 was<br>
>>       provided<br>
>>         constexpr duration() : __r() { }<br>
>>                   ^<br>
>> 1 error generated.<br>
>> make[2]: ***<br>
>> [tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/ThreadStateCoordinator.cpp.o]<br>
>> Error 1<br>
>> make[1]: ***<br>
>> [tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/all]<br>
>> Error 2<br>
>> make: *** [all] Error 2<br>
>><br>
>> I also compiled and installed libcxx, so maybe I should switch to that? How<br>
>> do I do that?<br>
><br>
> I have never tried this, but may be add -DCMAKE_CXX_FLAGS=-stdlib=libstdc++?<br>
<br>
</div></div>Oops, it should be s/libstdc++/libc++.<br>
<div><div>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr"><br><table cellspacing="0" cellpadding="0" style="font-family:'Times New Roman'"><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">Vince Harron |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Technical Lead Manager |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:vharron@google.com" target="_blank">vharron@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:858-442-0868" value="+18584420868" target="_blank">858-442-0868</a></td></tr></tbody></table><br></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><br><table cellspacing="0" cellpadding="0" style="font-family:'Times New Roman'"><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">Vince Harron |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Technical Lead Manager |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:vharron@google.com" target="_blank">vharron@google.com</a> |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"> 858-442-0868</td></tr></tbody></table><br></div></div>
</div>