anutosh491 wrote:

Hi,

I have been trying to figure the above error out. I'm on macos and I was trying 
to build and run the tests locally.

So I build lldb like this 
```
cmake -G Ninja \
  -S llvm-project/llvm \
  -B ~/build/lldb \
  -C "$(pwd)/llvm-project/lldb/cmake/caches/Apple-lldb-macOS.cmake" \
  -DCMAKE_BUILD_TYPE=Release \
  -DLLVM_ENABLE_PROJECTS="clang;lld;lldb" \
  -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" \
  -DLLDB_ENABLE_PYTHON=ON \
  -DLLDB_USE_SYSTEM_DEBUGSERVER=ON \
  -DPython3_EXECUTABLE="$(which python3)"

```
And then also set my PYTHONPATH
```
export PYTHONPATH="$({ ~/build/lldb/bin/lldb -P; })":$PYTHONPATH
```
But still when I run the lldb-api tests i get this
```
********************
UNRESOLVED: lldb-api :: repl/clang/TestClangREPL.py (6 of 1296)
******************** TEST 'lldb-api :: repl/clang/TestClangREPL.py' FAILED 
********************
Script:
--
/Users/anutosh491/miniconda3/bin/python3 
/Users/anutosh491/work/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u 
CFLAGS --out-of-tree-debugserver --env 
LLVM_LIBS_DIR=/Users/anutosh491/build/lldb/./lib --env 
LLVM_INCLUDE_DIR=/Users/anutosh491/build/lldb/include --env 
LLVM_TOOLS_DIR=/Users/anutosh491/build/lldb/./bin --libcxx-include-dir 
/Users/anutosh491/build/lldb/include/c++/v1 --libcxx-library-dir 
/Users/anutosh491/build/lldb/lib --arch arm64 --build-dir 
/Users/anutosh491/build/lldb/lldb-test-build.noindex --lldb-module-cache-dir 
/Users/anutosh491/build/lldb/lldb-test-build.noindex/module-cache-lldb/lldb-api 
--clang-module-cache-dir 
/Users/anutosh491/build/lldb/lldb-test-build.noindex/module-cache-clang/lldb-api
 --executable /Users/anutosh491/build/lldb/./bin/lldb --compiler 
/Users/anutosh491/build/lldb/./bin/clang --dsymutil 
/Users/anutosh491/build/lldb/./bin/dsymutil --make /usr/bin/make 
--llvm-tools-dir /Users/anutosh491/build/lldb/./bin --lldb-obj-root 
/Users/anutosh491/build/lldb/tools/lldb --lldb-libs-dir 
/Users/anutosh491/build/lldb/./lib --framework 
/Users/anutosh491/build/lldb/bin/LLDB.framework --cmake-build-type Release 
/Users/anutosh491/work/llvm-project/lldb/test/API/api/command-return-object -p 
TestClangREPL.py
--
Exit Code: -11

Command Output (stdout):
--
lldb version 22.0.0git (g...@github.com:anutosh491/llvm-project.git revision 
ab8b4f6629ee9c4c99c2751aa394f65ee2a4a34a)
  clang revision ab8b4f6629ee9c4c99c2751aa394f65ee2a4a34a
  llvm revision ab8b4f6629ee9c4c99c2751aa394f65ee2a4a34a

--
Command Output (stderr):
--
Fatal Python error: Segmentation fault

Current thread 0x00000002054d5f00 (most recent call first):
  File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 1289 in create_module
  File "<frozen importlib._bootstrap>", line 813 in module_from_spec
  File "<frozen importlib._bootstrap>", line 921 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
  File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1415 in _handle_fromlist
  File 
"/Users/anutosh491/build/lldb/bin/LLDB.framework/Resources/Python/lldb/__init__.py",
 line 42 in <module>
  File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 995 in exec_module
  File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
  File 
"/Users/anutosh491/work/llvm-project/lldb/packages/Python/lldbsuite/test/dotest.py",
 line 1018 in run_suite
  File "/Users/anutosh491/work/llvm-project/lldb/test/API/dotest.py", line 8 in 
<module>

--
```

Not sure what I'm missing here. Still trying to figure what's wrong with this 
build :\

https://github.com/llvm/llvm-project/pull/153560
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to