[lldb-dev] [PATCH] Compiling lldb on Linux

Sean Callanan scallanan at apple.com
Fri Jul 2 18:10:40 PDT 2010


the generated file you're looking for is LLDB_vers.c, a file generated by Apple Generic Versioning, which is described in more detail
here: http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man8/agvtool.8.html.

A properly-built LLDB_vers.c looks like this:
 const unsigned char LLDBVersionString[] __attribute__ ((used)) = "@(#)PROGRAM:LLDB  PROJECT:lldb-24" "\n"; const double LLDBVersionNumber __attribute__ ((used)) = (double)24.;
I've attached a simple Perl script that generates the above code given the location of the .pbxproj as input.


On Jul 2, 2010, at 12:50 PM, Eli Friedman wrote:

> Attached are two patches which (along with recent commits) allow
> compiling lldb on Linux; the generated executable even works to the
> point where it can disassemble named functions from an x86-32 ELF
> file.  The build procedure is essentially just check out lldb into
> llvm/tools/ in an LLVM tree with a built LLVM and clang, apply this
> patch, and run make in the lldb directory.  Note that the makefiles
> depend on a Python 2.6 install, and the presence of libedit, which
> isn't normally installed on Linux (but libedit-dev is available in
> Ubuntu).
> The Makefiles aren't quite complete; they're missing steps to generate
> some files.  The second patch is required because of this.  Any help
> with that and reviews would be welcome.
> -Eli
> <lldbmakefiles.txt><lldbhack.txt>_______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20100702/cef5dabe/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generate-vers.pl
Type: text/x-perl-script
Size: 1099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20100702/cef5dabe/attachment.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20100702/cef5dabe/attachment-0001.html>

More information about the lldb-dev mailing list