[PATCH] D113650: [lldb] fix -print-script-interpreter-info on windows

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 2 17:27:31 PST 2021


clayborg added a comment.

I can't build on macOS now. I checked out the source code and tried to do:

  cmake -G Ninja -DCMAKE_BUILD_TYPE:STRING=Debug -DLLVM_ENABLE_ASSERTIONS:BOOL=TRUE -DLLVM_ENABLE_PROJECTS='clang;libcxx;libcxxabi;lldb' -DLLDB_BUILD_FRAMEWORK:BOOL=TRUE -DLLDB_USE_SYSTEM_DEBUGSERVER=ON -DLLDB_EDITLINE_USE_WCHAR=0 -DLLDB_ENABLE_LIBEDIT:BOOL=TRUE -DLLDB_ENABLE_CURSES:BOOL=TRUE -DLLDB_ENABLE_PYTHON:BOOL=TRUE -DLLDB_ENABLE_LIBXML2:BOOL=TRUE -DLLDB_ENABLE_LUA:BOOL=FALSE ../llvm-project/llvm

The error is:

  Traceback (most recent call last):
    File "/Users/gclayton/Documents/src/lldb/clean/llvm-project/lldb/bindings/python/get-python-config.py", line 60, in <module>
      main()
    File "/Users/gclayton/Documents/src/lldb/clean/llvm-project/lldb/bindings/python/get-python-config.py", line 33, in main
      print(relpath_nodots(sysconfig.get_path("platlib"), sys.prefix))
    File "/Users/gclayton/Documents/src/lldb/clean/llvm-project/lldb/bindings/python/get-python-config.py", line 14, in relpath_nodots
      raise ValueError(f"{path} is not under {base}")
  ValueError: /Library/Python/3.8/site-packages is not under /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8
  CMake Error at /Users/gclayton/Documents/src/lldb/clean/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt:2 (message):
    LLDB_PYTHON_RELATIVE_PATH is not set.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113650/new/

https://reviews.llvm.org/D113650



More information about the llvm-commits mailing list