Hey Matt,
(Adding back the list since these are general troubleshooting tips for getting tests running).
Sorry you’re having so much trouble with this!
Ok so a few things to troubleshoot:
Regardless of the build system used, go to the build output’s lib dir. Do this command:
ldd liblldb.so
That will spit out all the shared libraries that your liblldb.so is trying to link against. The python message your seeing will happen if python can’t find the lldb module (as the message suggests and you were tracing down), or if it can find it but fails to load it (which is often the case - something cannot be found when the liblldb.so tries to load as a consequence of the lldb python module trying to load).
You should see something that looks roughly like this:
tfiala@tfiala2:/mnt/ssd/work/macosx.sync/mbp-svn/build-debug/lib$ ldd liblldb.so
linux-vdso.so.1 => (0x00007fffe9dfe000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f6357e71000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6357b6b000)
libedit.so.2 => /usr/lib/x86_64-linux-gnu/libedit.so.2 (0x00007f635793a000)
libpanel.so.5 => /usr/lib/x86_64-linux-gnu/libpanel.so.5 (0x00007f6357736000)
libncurses.so.5 => /lib/x86_64-linux-gnu/libncurses.so.5 (0x00007f6357513000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f63572e9000)
libpython2.7.so.1.0 => /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 (0x00007f6356d82000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f6356b7a000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6356975000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6356757000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f635653e000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f6356327000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6355f61000)
/lib64/ld-linux-x86-64.so.2 (0x00007f635d584000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f6355d5d000)
tfiala@tfiala2:/mnt/ssd/work/macosx.sync/mbp-svn/build-debug/lib$
The left side shows the short name that the .so is referencing. The right side shows what the loader actually mapped it to with the current environment. If there is a problem loading liblldb.so, this will show as (I think) question marks on the right side indicating that the shared library linkage was not found. Let me know if you see something like that.
If you get past this part and you don’t see any issues, the next thing to try is:
PYTHONPATH=/path/to/your/lldb/lib/python2.7/site-packages python
Then do an ‘import lldb’, then a ‘dir (lldb)’, like so: