[lldb-dev] Compiling LLDB on Centos 5 (dont judge me)

Todd Fiala via lldb-dev lldb-dev at lists.llvm.org
Thu Oct 29 16:17:46 PDT 2015


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:

* 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.

* Do you have a new-enough c++ compiler.  Since you're able to build a
clang, that should take care of that issue.

* Other libs you'll need.  I needed to install these:

yum install libedit-devel
yum install python-devel
yum install ncurses-devel
yum install swig
yum install libxml2-devel

* 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.

* 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.

It'll be interesting to hear what else you find.


On Tue, Oct 27, 2015 at 8:37 PM, Mark Chandler via lldb-dev <
lldb-dev at lists.llvm.org> wrote:

> Using gcc 4.8 from devtoolset2. Clang builds fine so might try building
> with that tomorrow.
>
> Sent from my iPhone
>
> On Oct 27, 2015, at 7:46 PM, Oleksiy Vyalov <ovyalov at google.com> wrote:
>
> Hi Mark,
>
> 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?
> 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=..."
>
> On Tue, Oct 27, 2015 at 2:05 PM, Mark Chandler via lldb-dev <
> lldb-dev at lists.llvm.org> wrote:
>
>> Hi All,
>>
>>
>>
>> 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.
>>
>>
>>
>> These are the errors so far:
>>
>>
>> https://gist.githubusercontent.com/lodle/47493c8ea2a51eff5322/raw/ce158e1d10d1df363bdd3a77b11ff3d8661e8144/lldb_make.txt
>>
>> 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.
>>
>>
>>
>>
>>
>> Build Script:
>>
>> https://gist.github.com/lodle/e24a80907bbf7a7b72f6
>>
>>
>>
>>
>>
>> Thanks for the help.
>>
>>
>>
>>
>>
>> *Mark Chandler*
>>
>> Battle.Net <http://battle.net> Infrastructure | Blizzard Entertainment
>>
>> *(P) *949-955-1380 x15353
>>
>>
>>
>> _______________________________________________
>> lldb-dev mailing list
>> lldb-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>>
>>
>
>
> --
> Oleksiy Vyalov | Software Engineer | ovyalov at google.com
>
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>
>


-- 
-Todd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20151029/3b3f2761/attachment.html>


More information about the lldb-dev mailing list