<div dir="ltr">Hi Jun,<div><br></div><div>We've been using the following setup:</div><div><br></div><div>Ubuntu 12.04</div><div>gcc 4.8.2</div><div>latest libedit from <a href="http://thrysoee.dk/editline/">here</a></div>
<div><br></div><div>We make sure we modify our LD_LIBRARY_PATH to include the gcc 4.8.2's libstdc++ (needed to solve the issue of having an old libstdc++ in Ubuntu 12.04) and the newer libedit. Technically I don't think you'll need the new libedit until the iohandler branch gets merged into trunk, but you'll likely need it at some point if you're on a similar setup to us and if you build from top of tree.</div>
<div><br></div><div>I had played around with several options to get lldb built with clang on Ubuntu 12.04 x86_64 a couple months ago but gave up due to errors on each of several different approaches (using a clang bootstrapped with gcc 4.8.x, using a clang from the official <a href="http://llvm.org">llvm.org</a> precise build, using a clang with a built libc++, etc.) At some point I'll get back to looking at those combinations, but for now the gcc 4.8.2 path works well for us.</div>
<div><br></div><div>Hope that helps!</div><div><br></div><div>-Todd</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 13, 2014 at 10:51 AM, Greg Clayton <span dir="ltr"><<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It looks like a C++11 issue with the compiler you are compiling with. LLDB requires C++11 in order to build. You can try a newer GCC (4.8) or top of tree clang.<br>
<br>
Greg<br>
<div><div class="h5"><br>
On Jan 13, 2014, at 6:27 AM, Jun Koi <<a href="mailto:junkoi2004@gmail.com">junkoi2004@gmail.com</a>> wrote:<br>
<br>
> Any help, please??<br>
><br>
> Thanks.<br>
><br>
><br>
> On Sat, Jan 11, 2014 at 3:44 PM, Jun Koi <<a href="mailto:junkoi2004@gmail.com">junkoi2004@gmail.com</a>> wrote:<br>
> hi,<br>
><br>
> i am trying to compile lldb 3.4 with clang 3.4, but got some errors as below.<br>
> any idea how to fix this??<br>
><br>
> many thanks,<br>
> Jun<br>
><br>
> $ clang -v<br>
> clang version 3.4 (tags/RELEASE_34/final)<br>
> Target: i386-pc-linux-gnu<br>
> Thread model: posix<br>
> Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.6<br>
> Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.6.3<br>
> Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.6<br>
> Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.6.3<br>
> Selected GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.6<br>
><br>
><br>
> $ configure --prefix=/usr --enable-cxx11<br>
> $ make ENABLE_OPTIMIZED=1 DEBUG_SYMBOLS=0<br>
> ....<br>
> ....<br>
> In file included from Driver.cpp:20:<br>
> In file included from /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/thread:38:<br>
> /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono|535 col 6| error: no matching constructor for initialization of 'duration' (aka 'std::chrono::duration<long long, std::ratio<1, 1000000> >')<br>
> : __d(__t.time_since_epoch())<br>
> ^ ~~~~~~~~~~~~~~~~~~~~~~<br>
> /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/condition_variable|106 col 42| note: in instantiation of function template specialization 'std::chrono::time_point<std::chrono::system_clock, std::chrono::duration<long long, std::ratio<1, 1000000> > >::time_point<std::chrono::duration<long long, std::ratio<1, 1000000000> > >' requested here<br>
> const __clock_t::time_point __s_atime = __s_entry + __delta;<br>
> ^<br>
> /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono|234 col 12| note: candidate constructor not viable: no known conversion from 'duration<[...], ratio<[...], 1000000000>>' to 'const duration<[...], ratio<[...], 1000000>>' for 1st argument<br>
> constexpr duration(const duration&) = default;<br>
> ^<br>
> /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono|237 col 19| note: candidate template ignored: disabled by 'enable_if' [with _Rep2 = std::chrono::duration<long long, std::ratio<1, 1000000000> >]<br>
> enable_if<is_convertible<_Rep2, rep>::value<br>
> ^<br>
> /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono|244 col 19| note: candidate template ignored: disabled by 'enable_if' [with _Rep2 = long long, _Period2 = std::ratio<1, 1000000000>]<br>
> enable_if<treat_as_floating_point<rep>::value<br>
> ^<br>
> /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono|232 col 12| note: candidate constructor not viable: requires 0 arguments, but 1 was provided<br>
> constexpr duration() : __r() { }<br>
> ^<br>
> 1 error generated.<br>
> make[4]: *** [/home/jun/Downloads/llvm-3.4/tools/lldb/tools/driver/Release+Debug+Asserts/Driver.o] Error 1<br>
> make[4]: Leaving directory `/home/jun/Downloads/llvm-3.4/tools/lldb/tools/driver'<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@cs.uiuc.edu">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>
<br>
_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu">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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);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">Todd Fiala |</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:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>