<div dir="ltr">I fixed several RHEL-derived distribution-related issues in top of tree LLDB a few weeks back.  It was for RHEL 7-derived builds, so quite a bit newer.  If you are building your lldb off of top-of-tree, hopefully this will mostly become an exercise of:<div><br></div><div>* Do you have a new-enough python.  (I believe at this point you really want a 2.7, but with CentOS 5 you might be far back enough to be 2.4 or 2.6.  We probably limp along with 2.6 since that was our baseline for a while).  Worst case here you can download a newer python and build from source, then specify it to cmake via the right python cmake variables.</div><div><br></div><div>* Do you have a new-enough c++ compiler.  Since you're able to build a clang, that should take care of that issue.</div><div><br></div><div>* Other libs you'll need.  I needed to install these:</div><div><pre class="" id="comment_text_6" style="font-size:medium;white-space:pre-wrap;width:50em;color:rgb(0,0,0)">yum install libedit-devel
yum install python-devel
yum install ncurses-devel
yum install swig
yum install libxml2-devel</pre><pre class="" id="comment_text_6" style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">* cmake - you'll need cmake 2.8.12.2 or later.  This one I'm pretty sure you're going to need to build this from scratch.</font></pre><pre class="" id="comment_text_6" style="width:50em"><font face="arial, helvetica, sans-serif"><font color="#000000"><span style="white-space:pre-wrap">* ninja - you're going to want to build the ninja build tool to optimize your build speed and use -GNinja with your cmake command line.</span></font></font></pre><pre class="" id="comment_text_6" style="width:50em"><font color="#000000" face="arial, helvetica, sans-serif"><span style="white-space:pre-wrap">It'll be interesting to hear what else you find.</span></font></pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 27, 2015 at 8:37 PM, Mark Chandler via lldb-dev <span dir="ltr"><<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div dir="auto">
<div>Using gcc 4.8 from devtoolset2. Clang builds fine so might try building with that tomorrow.<br>
<br>
Sent from my iPhone</div><div><div class="h5">
<div><br>
On Oct 27, 2015, at 7:46 PM, Oleksiy Vyalov <<a href="mailto:ovyalov@google.com" target="_blank">ovyalov@google.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">Hi Mark,
<div><br>
</div>
<div>what compiler do you use? Could you try to build LLDB with clang 3.5 specifying it via DCMAKE_C_COMPILER and DCMAKE_CXX_COMPILER flags?</div>
<div>It might be a problem with sysroot setup since some headers are not found - you can try to pass a custom sysroot with -DCMAKE_CXX_FLAGS="--sysroot=..."</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Oct 27, 2015 at 2:05 PM, Mark Chandler via lldb-dev
<span dir="ltr"><<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hi All,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Trying to get LLDB to compile on centos 5 to help reduce the size of cores of programs crashing on some servers however im running into some compile issues with it. Looks like some features are used from newer kernel versions and was wondering
 what the procedure is to get this fixed and updated into lldb.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">These are the errors so far:<u></u><u></u></p>
<p class="MsoNormal"><a href="https://gist.githubusercontent.com/lodle/47493c8ea2a51eff5322/raw/ce158e1d10d1df363bdd3a77b11ff3d8661e8144/lldb_make.txt" target="_blank">https://gist.githubusercontent.com/lodle/47493c8ea2a51eff5322/raw/ce158e1d10d1df363bdd3a77b11ff3d8661e8144/lldb_make.txt</a><u></u><u></u></p>
<p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal">Some of them are using O_CLOEXEC flag and headers that don’t exist and was easy enough to add works around. The ones at the end im not sure about.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Build Script:<u></u><u></u></p>
<p class="MsoNormal"><a href="https://gist.github.com/lodle/e24a80907bbf7a7b72f6" target="_blank">https://gist.github.com/lodle/e24a80907bbf7a7b72f6</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks for the help.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Cambria",serif;color:#4f81bd">Mark Chandler<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Cambria",serif;color:#4f81bd"><a href="http://battle.net" target="_blank">Battle.Net</a> Infrastructure | Blizzard Entertainment<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Cambria",serif;color:#7f7f7f">(P)
</span></b><span style="font-size:9.0pt;font-family:"Cambria",serif;color:#7f7f7f"><a href="tel:949-955-1380%20x15353" value="+19499551380" target="_blank">949-955-1380 x15353</a><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>
_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div>
<div dir="ltr"><span style="color:rgb(85,85,85);font-family:sans-serif;line-height:20px;background-color:rgb(255,255,255);border-width:2px 0px 0px;border-style:solid;border-color:rgb(213,15,37);padding-top:2px;margin-top:2px">Oleksiy Vyalov |</span><span style="color:rgb(85,85,85);font-family:sans-serif;line-height:20px;background-color:rgb(255,255,255);border-width:2px 0px 0px;border-style:solid;border-color:rgb(51,105,232);padding-top:2px;margin-top:2px"> Software
 Engineer |</span><span style="color:rgb(85,85,85);font-family:sans-serif;line-height:20px;background-color:rgb(255,255,255);border-width:2px 0px 0px;border-style:solid;border-color:rgb(0,153,57);padding-top:2px;margin-top:2px"> <a href="mailto:ovyalov@google.com" target="_blank">ovyalov<font color="#1155cc">@google.com</font></a></span></div>
</div>
</div>
</div>
</blockquote>
</div></div></div>

<br>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">-Todd</div></div>
</div>