<div dir="ltr">> <span style="font-family:arial,sans-serif;font-size:12.727272033691406px">It looks like there might be a build error in top of tree based on your output, I will check in a minute on my end.</span><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">I was able to make a clean build with cmake/ninja with top of tree r205497.</span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Looking at the build page, there are a few mistakes there (I'll look into getting these updated):</span></div><div><ul><li><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">gcc 4.8+ is needed now (as of very late 2013). We're using cxx11 features not fully supported by earlier gcc versions. I've used gcc 4.8.1 (Ubuntu 13.10 default) and gcc 4.8.2 (what I build custom on Ubuntu 12.04).</span></li>
<li><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">The enable cxx11 bits are setup by default now (as of Feb/March 2014).</span><br></li><li><font face="arial, sans-serif">libedit is needed as of roughly Feb 2014. Use 'sudo apt-get install libedit-dev'. That works for Ubuntu 13.10 or later. For earlier versions, you really need the July 2013 version of libedit. We use a configure-based version of it on Ubuntu 12.04, but use the stock Ubuntu version for Ubuntu 13.10 and later.</font></li>
<li><span style="font-family:arial,sans-serif">The version of cmake available on Ubuntu 13.10 worked fine for me. I had to build a custom latest version for Ubuntu 12.04.</span></li></ul><div>Let me know if that gets you further. If not, I can distill what we run out of our build scripts to see if you can replicate. A big key at this point is which distribution version you're using, though.</div>
</div><div><br></div><div>Thanks!</div><div><br></div><div>Sincerely,</div><div>Todd Fiala</div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><br></font></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Apr 5, 2014 at 3:25 PM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@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">Hi Tiago,<div><br></div><div>Which version of Linux are you running under? I assume it is Debian based given the apt-get.</div><div><br></div><div>It looks like there might be a build error in top of tree based on your output, I will check in a minute on my end.</div>
<div><br></div><div>I'll have a look at the packages listed in the docs to see if anything I tend to need is missing. I build pretty regularly both on Ubuntu 12.04 x86_64 and Ubuntu 13.10 x86_64, although I almost exclusively use gcc 4.8.1 or 4.8.2 due to some issues I ran into back in Nov 2013 (I need to work on migrating or at least supporting clang in our build process).</div>
<div><br></div><div>Back in a bit after I see if I can get a clean build...</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Apr 4, 2014 at 9:45 PM, Thiago Farina <span dir="ltr"><<a href="mailto:tfarina@chromium.org" target="_blank">tfarina@chromium.org</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I tried to follow the instruction I found in <a href="http://lldb.llvm.org/build.html" target="_blank">http://lldb.llvm.org/build.html</a> but I'm unable to build lldb.</div>
<div><br></div><div>The structure of my source three is:</div>
<div><br></div><div>~/llvm-clang</div><div> |__build (normal dir)</div><div> |__llvm (git)</div><div> |__tools</div><div> |__clang (git)</div><div> |__lldb (git)</div><div>
<br></div><div>I ran `sudo apt-get build-dep lldb-3.3`</div><div>Then from ~/llvm-clang/build, I ran `cmake ../llvm -G Ninja -DLLVM_ENABLE_CXX11=ON</div><div><br></div><div>This might be relevant:</div><div><div>CMake Warning (dev) at tools/lldb/source/CMakeLists.txt:289 (add_dependencies):</div>
<div> Policy CMP0046 is not set: Error on non-existent dependency in</div><div> add_dependencies. Run "cmake --help-policy CMP0046" for policy details.</div><div> Use the cmake_policy command to set the policy and suppress this warning.</div>
<div><br></div><div> The dependency target</div><div> "/home/tfarina/llvm-clang/build/tools/lldb/scripts/LLDBWrapPython.cpp" of</div><div> target "liblldb" does not exist.</div><div><br></div><div>
By the end, I ran `ninja lldb 2>&1 | tee ninja.log`</div>
<div><br></div><div>Log with output attached.</div><div><br></div><div><div>$ clang -v</div><div>clang version 3.5.0 (trunk 204777)</div><div>Target: x86_64-unknown-linux-gnu</div><div>Thread model: posix</div><div>Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8</div>
<div>Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8.1</div><div>Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.5</div><div>Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.5.3</div>
<div>Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6</div><div>Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4</div><div>Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7</div>
<div>Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3</div><div>Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8</div><div>Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.1</div>
<div>Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7</div></div><div><br></div><div>What am I missing?</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>NOTE: I'm not subscribed to this list, so please keep me in the CC list when replying.</div>
<span><font color="#888888">
<div><br></div>-- <br><div dir="ltr">Thiago Farina</div>
</font></span></div></div>
<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>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><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>
</font></span></div>
</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>