<div dir="ltr">Great, glad to hear, Mark!</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 29, 2015 at 4:57 PM, Mark Chandler <span dir="ltr"><<a href="mailto:mchandler@blizzard.com" target="_blank">mchandler@blizzard.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 style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<p>For My Centos 5 build:</p>
<p>* Using python 2.7 (From devtoolset 2)</p>
<p>* Using gcc 4.8 (From devtoolset 2)</p>
<p>* disabled libedit and python bindings</p>
<p>* Built cmake from source</p>
<p>* Make is fine so didnt bother with ninja</p>
<p><br>
</p>
<p>Applying the patch then gives me a working liblldb.so.</p>
<p><br>
</p>
<p>Also want to say that its refreshing seeing such a good api. The interface is easy to understand and is standalone without pulling in a bunch of complex types from other libraries. Well done lldb team!</p>
<p><br>
</p>
<p>Mark</p>
<p><br>
</p>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Todd Fiala <<a href="mailto:todd.fiala@gmail.com" target="_blank">todd.fiala@gmail.com</a>><br>
<b>Sent:</b> Thursday, October 29, 2015 4:17 PM<br>
<b>To:</b> Mark Chandler<br>
<b>Cc:</b> Oleksiy Vyalov; <a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
<b>Subject:</b> Re: [lldb-dev] Compiling LLDB on Centos 5 (dont judge me)</font>
<div> </div>
</div><div><div class="h5">
<div>
<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 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 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 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 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>
<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">
<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" 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">-Todd</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">-Todd</div></div>
</div>