The instructions posted on the build page are slightly out-of-date. LLDB trunk builds against LLVM and Clang trunk, and not a pinned revision as the docs mention. If you're using older revisions, you should update all your working copies to trunk.
The error you're seeing with importing _lldb is due to a problem in one of the Makefiles. Python requires an _lldb.so symlink (pointing to liblldb.so) on the PYTHONPATH in order for the import to work correctly. I am working on a cross-platform way to generate it with the Makefiles, but until it is ready, try the following workaround (creating the symlink manually): $ ln -sf <absolute-path-to-build-dir>/Debug+Asserts/lib/liblldb.so <build-dir>/Debug+Asserts/lib/python/lldb/python2.7+/_lldb.so Then, if your PYTHONPATH is set to "<build-dir>/Debug+Asserts/lib/python/lldb/python2.7+", you should be able to run: $ python -c 'import lldb' with no errors. Best of luck, Dan From: [email protected] [mailto:[email protected]] On Behalf Of Kyung su Kim Sent: Saturday, October 13, 2012 6:20 PM To: [email protected] Subject: [lldb-dev] Hello, I have Questions, about lldb:( Hello I'm a university student in korea I have a project in my school, that related dissembleing arm machine code ( I'll use python script language to my project) so I found this llvm project and i tried to build llvm but I faced some problems.. (my compilation enviroment is Ubuntu Linux 10.x ) I saw http://lldb.llvm.org/build.html , and worked step by step first problem is that the llvm_revision doesn't update,.. typed as I saw in manual "svn update -r 127682" ,doesn't work properly.. the result is as below.. ----------------------------------------------- root@kaspyx:~/llvm/tools# grep -m 1 llvm_revision lldb/scripts/build-llvm.pl<http://build-llvm.pl> our $llvm_revision = "127600"; ---------------------------------------------- it looks some guess.. but i wonder why llvm_revision version doesn't update is.. why the revision is 127600?? i want update to 127682.. it's my guess... most of all, lldb doesn't work.. i compiled llvm, lldb, clang... step by step, referenced manual.. but lldb.py doesn't work.. There are compiled binaries in my directory.. ( like "lldb", "lldb.py" ..etc) but When I typed for using lldb python library, I saw error strings ----------------------------------------- root@kaspyx:~/build2/Debug+Asserts/bin# python lldb.py Traceback (most recent call last): File "lldb.py", line 25, in <module> _lldb = swig_import_helper() File "lldb.py", line 17, in swig_import_helper import _lldb ImportError: No module named _lldb ----------------------------------------- I couldn't find _lldb module.. , problems are looks relate llvm_revision. I don't know what should i do.. am i compiled properly?? thanks ....
_______________________________________________ lldb-dev mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
