Unable to build LLDB on Windows 11 with LLDB_ENABLE_PYTHON=ON, lld-link told it can not resolve symbols with python library

  1. OS: Windows 11 Build 22621.2361
  2. Toolchain: CMake(3.26.4-msvc4, Visual Studio 2022 bundled), Clang 17.0.2 and lld 17.0.2 (self built by msvc 19.37.32824)
  3. Configuration command:
cmake -G "Ninja" -S ..\llvm -B . -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_LINKER=lld-link -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;libc;lldb" -DLLVM_ENABLE_RUNTIMES=libcxx -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_TERMINFO=OFF -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_RTTI=ON -DLIBCXX_ENABLE_SHARED=YES -DLIBCXX_ENABLE_STATIC=NO
  1. Configuration output:
-- The C compiler identification is Clang 17.0.2 with MSVC-like command-line
-- The CXX compiler identification is Clang 17.0.2 with MSVC-like command-line
-- The ASM compiler identification is Clang with MSVC-like command-line
-- Found assembler: D:/llvm/17/bin/clang-cl.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/llvm/17/bin/clang-cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/llvm/17/bin/clang-cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- bolt project is disabled
-- clang project is enabled
-- clang-tools-extra project is enabled
-- compiler-rt project is disabled
-- cross-project-tests project is disabled
-- libc project is enabled
-- libclc project is disabled
-- lld project is enabled
-- lldb project is enabled
-- mlir project is disabled
-- openmp project is disabled
-- polly project is disabled
-- pstl project is disabled
-- flang project is disabled
-- Found Python3: C:/Users/UserName/AppData/Local/Programs/Python/Python312/python.exe (found suitable version "3.12.0", minimum required is "3.6") found components: Interpreter
-- Looking for dlfcn.h
-- Looking for dlfcn.h - not found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for link.h
-- Looking for link.h - not found
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - not found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - not found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - not found
-- Looking for sys/param.h
-- Looking for sys/param.h - not found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - not found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sysexits.h
-- Looking for sysexits.h - not found
-- Looking for termios.h
-- Looking for termios.h - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Performing Test HAVE_BUILTIN_THREAD_POINTER
-- Performing Test HAVE_BUILTIN_THREAD_POINTER - Failed
-- Looking for mach/mach.h
-- Looking for mach/mach.h - not found
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Looking for pfm_initialize in pfm
-- Looking for pfm_initialize in pfm - not found
-- Found ZLIB: C:/Program Files (x86)/GnuWin32/lib/libz.dll.a (found version "1.2.3")
-- Looking for compress2
-- Looking for compress2 - not found
-- Found LibXml2: C:/Program Files (x86)/GnuWin32/lib/libxml2.lib (found version "2.4.12")
-- Looking for xmlReadMemory
-- Looking for xmlReadMemory - not found
-- Looking for xar_open in xar
-- Looking for xar_open in xar - not found
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for backtrace
-- Looking for backtrace - not found
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Success
-- Looking for __register_frame
-- Looking for __register_frame - not found
-- Looking for __deregister_frame
-- Looking for __deregister_frame - not found
-- Looking for __unw_add_dynamic_fde
-- Looking for __unw_add_dynamic_fde - not found
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - not found
-- Looking for getpagesize
-- Looking for getpagesize - not found
-- Looking for sysconf
-- Looking for sysconf - not found
-- Looking for getrusage
-- Looking for getrusage - not found
-- Looking for setrlimit
-- Looking for setrlimit - not found
-- Looking for isatty
-- Looking for isatty - not found
-- Looking for futimens
-- Looking for futimens - not found
-- Looking for futimes
-- Looking for futimes - not found
-- Looking for sigaltstack
-- Looking for sigaltstack - not found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - not found
-- Looking for mallinfo2
-- Looking for mallinfo2 - not found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - not found
-- Looking for getrlimit
-- Looking for getrlimit - not found
-- Looking for posix_spawn
-- Looking for posix_spawn - not found
-- Looking for pread
-- Looking for pread - not found
-- Looking for sbrk
-- Looking for sbrk - not found
-- Looking for strerror_r
-- Looking for strerror_r - not found
-- Looking for strerror_s
-- Looking for strerror_s - found
-- Looking for setenv
-- Looking for setenv - not found
-- Looking for _chsize_s
-- Looking for _chsize_s - found
-- Looking for _alloca
-- Looking for _alloca - not found
-- Looking for __alloca
-- Looking for __alloca - not found
-- Looking for __chkstk
-- Looking for __chkstk - not found
-- Looking for __chkstk_ms
-- Looking for __chkstk_ms - not found
-- Looking for ___chkstk
-- Looking for ___chkstk - not found
-- Looking for ___chkstk_ms
-- Looking for ___chkstk_ms - not found
-- Looking for __ashldi3
-- Looking for __ashldi3 - not found
-- Looking for __ashrdi3
-- Looking for __ashrdi3 - not found
-- Looking for __divdi3
-- Looking for __divdi3 - not found
-- Looking for __fixdfdi
-- Looking for __fixdfdi - not found
-- Looking for __fixsfdi
-- Looking for __fixsfdi - not found
-- Looking for __floatdidf
-- Looking for __floatdidf - not found
-- Looking for __lshrdi3
-- Looking for __lshrdi3 - not found
-- Looking for __moddi3
-- Looking for __moddi3 - not found
-- Looking for __udivdi3
-- Looking for __udivdi3 - not found
-- Looking for __umoddi3
-- Looking for __umoddi3 - not found
-- Looking for __main
-- Looking for __main - not found
-- Looking for __cmpdi2
-- Looking for __cmpdi2 - not found
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - Failed
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Looking for proc_pid_rusage
-- Looking for proc_pid_rusage - not found
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG - Success
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Success
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Ninja version: 1.11.0
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Found Python module pygments
-- Found Python module pygments.lexers.c_cpp
-- Found Python module yaml
-- LLVM host triple: i686-pc-windows-msvc
-- LLVM default target triple: i686-pc-windows-msvc
-- Performing Test SUPPORTS_BREPRO
-- Performing Test SUPPORTS_BREPRO - Success
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Success
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Success
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG - Failed
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG - Success
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR - Success
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Success
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Success
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Success
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Performing Test HAS_WERROR_GLOBAL_CTORS
-- Performing Test HAS_WERROR_GLOBAL_CTORS - Success
-- Performing Test LLVM_HAS_NOGLOBAL_CTOR_MUTEX
-- Performing Test LLVM_HAS_NOGLOBAL_CTOR_MUTEX - Failed
-- Looking for _M_X64
-- Looking for _M_X64 - not found
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.42.0.windows.2")
-- LLVMHello ignored -- Loadable modules not supported on this platform.
-- Targeting AArch64
-- Targeting AMDGPU
-- Targeting ARM
-- Targeting AVR
-- Targeting BPF
-- Targeting Hexagon
-- Targeting Lanai
-- Targeting LoongArch
-- Targeting Mips
-- Targeting MSP430
-- Targeting NVPTX
-- Targeting PowerPC
-- Targeting RISCV
-- Targeting Sparc
-- Targeting SystemZ
-- Targeting VE
-- Targeting WebAssembly
-- Targeting X86
-- Targeting XCore
-- Looking for sys/resource.h
-- Looking for sys/resource.h - not found
-- Clang version: 17.0.2
-- CTTestTidyModule ignored -- Loadable modules not supported on this platform.
-- LLD version: 17.0.2
-- Found SWIG: C:/Program Files/swigwin/swig.exe (found suitable version "4.1.1", minimum required is "3")
-- Enable SWIG to generate LLDB bindings: TRUE
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES)
-- Enable editline support in LLDB: FALSE
-- Could NOT find CursesAndPanel (missing: CURSES_INCLUDE_DIRS CURSES_LIBRARIES PANEL_LIBRARIES)
-- Enable curses support in LLDB: FALSE
-- Could NOT find LibLZMA (missing: LIBLZMA_LIBRARY LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.4.4")
-- Enable LZMA compression support in LLDB: FALSE
-- Could NOT find Lua (missing: LUA_LIBRARIES LUA_INCLUDE_DIR) (Required is exact version "5.3")
-- Could NOT find LuaAndSwig (missing: LUA_LIBRARIES LUA_INCLUDE_DIR)
-- Enable Lua scripting support in LLDB: FALSE
-- Found Python3: C:/Users/UserName/AppData/Local/Programs/Python/Python312/python.exe (found version "3.12.0") found components: Interpreter Development Development.Module Development.Embed
-- Found PythonAndSwig: optimized;C:/Users/UserName/AppData/Local/Programs/Python/Python312/libs/python312.lib;debug;C:/Users/UserName/AppData/Local/Programs/Python/Python312/libs/python312_d.lib
-- Enable Python scripting support in LLDB: TRUE
-- Could NOT find LibXml2: Found unsuitable version "2.4.12", but required is at least "2.8" (found C:/Program Files (x86)/GnuWin32/lib/libxml2.lib)
-- Enable Libxml 2 support in LLDB: FALSE
-- Enable libfbsdvmcore support in LLDB: 0
-- Performing Test CXX_SUPPORTS_DEPRECATED_DECLARATIONS
-- Performing Test CXX_SUPPORTS_DEPRECATED_DECLARATIONS - Success
-- Performing Test CXX_SUPPORTS_UNKNOWN_PRAGMAS
-- Performing Test CXX_SUPPORTS_UNKNOWN_PRAGMAS - Success
-- Performing Test CXX_SUPPORTS_STRICT_ALIASING
-- Performing Test CXX_SUPPORTS_STRICT_ALIASING - Success
-- Performing Test CXX_SUPPORTS_STRINGOP_TRUNCATION
-- Performing Test CXX_SUPPORTS_STRINGOP_TRUNCATION - Failed
-- Performing Test CXX_SUPPORTS_DEPRECATED_REGISTER
-- Performing Test CXX_SUPPORTS_DEPRECATED_REGISTER - Success
-- Performing Test CXX_SUPPORTS_VLA_EXTENSION
-- Performing Test CXX_SUPPORTS_VLA_EXTENSION - Success
-- LLDB version: 17.0.2
-- Looking for ppoll
-- Looking for ppoll - not found
-- Looking for ptsname_r
-- Looking for ptsname_r - not found
-- Looking for accept4
-- Looking for accept4 - not found
-- Looking for include files sys/types.h, sys/event.h
-- Looking for include files sys/types.h, sys/event.h - not found
-- Looking for process_vm_readv
-- Looking for process_vm_readv - not found
-- Looking for __NR_process_vm_readv
-- Looking for __NR_process_vm_readv - not found
-- Looking for compression_encode_buffer in compression
-- Looking for compression_encode_buffer in compression - not found
-- Skipping FreeBSDKernel plugin due to missing libfbsdvmcore
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- BugpointPasses ignored -- Loadable modules not supported on this platform.
-- git version: v0.0.0 normalized to 0.0.0
-- Version: 1.6.0
-- Looking for shm_open in rt
-- Looking for shm_open in rt - not found
-- Performing Test HAVE_CXX_FLAG_EHS_
-- Performing Test HAVE_CXX_FLAG_EHS_ - Success
-- Performing Test HAVE_CXX_FLAG_EHA_
-- Performing Test HAVE_CXX_FLAG_EHA_ - Success
-- Enabling additional flags: -DCMAKE_CXX_STANDARD=14
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Enabling additional flags: -DCMAKE_CXX_STANDARD=14
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- failed to compile
CMake Warning at D:/llvm-project-llvmorg-17.0.2/third-party/benchmark/CMakeLists.txt:308 (message):
  Using std::regex with exceptions disabled is not fully supported


-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Configuring done (74.3s)
-- Generating done (9.8s)
-- Build files have been written to: D:/llvm-project-llvmorg-17.0.2/build
  1. My machine has installed python 3.12 (with development files and debug symbols) and swig 4.1.1, and added the executable files into PATH.
  2. Error outputs:
[598/1001] Linking CXX shared library bin\liblldb.dll
FAILED: bin/liblldb.dll lib/liblldb.lib
cmd.exe /C "cd . && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_dll --intdir=tools\lldb\source\API\CMakeFiles\liblldb.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x86\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x86\mt.exe --manifests  -- D:\llvm\17\bin\lld-link.exe /nologo @CMakeFiles\liblldb.rsp  /out:bin\liblldb.dll /implib:lib\liblldb.lib /pdb:bin\liblldb.pdb /dll /version:17.0 /machine:X86 /INCREMENTAL:NO  && cd ."
LINK: command "D:\llvm\17\bin\lld-link.exe /nologo @CMakeFiles\liblldb.rsp /out:bin\liblldb.dll /implib:lib\liblldb.lib /pdb:bin\liblldb.pdb /dll /version:17.0 /machine:X86 /INCREMENTAL:NO /MANIFEST /MANIFESTFILE:bin\liblldb.dll.manifest" failed (exit code 1) with the following output:
lld-link: error: undefined symbol: __declspec(dllimport) _Py_IsInitialized
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(class lldb_private::python::PythonObject __cdecl lldb_private::python::ToSWIGHelper(void *, struct swig_type_info *))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static class lldb_private::python::PythonObject __cdecl lldb_private::python::SWIGBridge::ToSWIGWrapper(class std::unique_ptr<class lldb::SBValue, struct std::default_delete<class lldb::SBValue>>))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static class lldb_private::python::PythonObject __cdecl lldb_private::python::SWIGBridge::ToSWIGWrapper(class std::shared_ptr<class lldb_private::ValueObject>))
>>> referenced 260 more times

lld-link: error: undefined symbol: __declspec(dllimport) __PyObject_New
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SWIG_Python_NewPointerObj(struct _object *, void *, struct swig_type_info *, int))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SwigPyObject_New(void *, struct swig_type_info *, int))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl _wrap_new_SBAddress(struct _object *, struct _object *))
>>> referenced 174 more times

lld-link: error: undefined symbol: __declspec(dllimport) __Py_NoneStruct
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SWIG_Python_NewPointerObj(struct _object *, void *, struct swig_type_info *, int))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static bool __cdecl lldb_private::python::SWIGBridge::LLDBSwigPythonWatchpointCallbackFunction(char const *, char const *, class std::shared_ptr<class lldb_private::StackFrame> const &, class std::shared_ptr<class lldb_private::Watchpoint> const &))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static bool __cdecl lldb_private::python::SWIGBridge::LLDBSwigPythonFormatterCallbackFunction(char const *, char const *, class std::shared_ptr<class lldb_private::TypeImpl>))
>>> referenced 954 more times

lld-link: error: undefined symbol: __declspec(dllimport) _PyUnicode_FromString
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SWIG_Python_NewPointerObj(struct _object *, void *, struct swig_type_info *, int))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SWIG_Python_NewPointerObj(struct _object *, void *, struct swig_type_info *, int))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(_PyInit__lldb)
>>> referenced 6 more times

lld-link: error: undefined symbol: __declspec(dllimport) _PyObject_SetAttr
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SWIG_Python_NewPointerObj(struct _object *, void *, struct swig_type_info *, int))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SWIG_Python_NewPointerObj(struct _object *, void *, struct swig_type_info *, int))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SWIG_Python_InitShadowInstance(struct _object *))

lld-link: error: undefined symbol: __declspec(dllimport) _PyTuple_New
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SWIG_Python_NewPointerObj(struct _object *, void *, struct swig_type_info *, int))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct SwigPyClientData * __cdecl SwigPyClientData_New(struct _object *))
>>> referenced by lldbPluginScriptInterpreterPython.lib(PythonDataObjects.cpp.obj):(public: __thiscall lldb_private::python::PythonTuple::PythonTuple(enum lldb_private::python::PyInitialValue))
>>> referenced 3 more times

lld-link: error: undefined symbol: __declspec(dllimport) _PyDict_New
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SWIG_Python_NewPointerObj(struct _object *, void *, struct swig_type_info *, int))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(_PyInit__lldb)
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct swig_type_info * __cdecl SWIG_pchar_descriptor(void))
>>> referenced 2 more times

lld-link: error: undefined symbol: __declspec(dllimport) __Py_Dealloc
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SWIG_Python_NewPointerObj(struct _object *, void *, struct swig_type_info *, int))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SWIG_Python_NewPointerObj(struct _object *, void *, struct swig_type_info *, int))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SWIG_Python_NewPointerObj(struct _object *, void *, struct swig_type_info *, int))
>>> referenced 923 more times

lld-link: error: undefined symbol: __declspec(dllimport) _PyType_Modified
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct _object * __cdecl SWIG_Python_NewPointerObj(struct _object *, void *, struct swig_type_info *, int))

lld-link: error: undefined symbol: __declspec(dllimport) __Py_FalseStruct
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static class llvm::Expected<bool> __cdecl lldb_private::python::SWIGBridge::LLDBSwigPythonBreakpointCallbackFunction(char const *, char const *, class std::shared_ptr<class lldb_private::StackFrame> const &, class std::shared_ptr<class lldb_private::BreakpointLocation> const &, class lldb_private::StructuredDataImpl const &))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static bool __cdecl lldb_private::python::SWIGBridge::LLDBSwigPythonWatchpointCallbackFunction(char const *, char const *, class std::shared_ptr<class lldb_private::StackFrame> const &, class std::shared_ptr<class lldb_private::Watchpoint> const &))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static bool __cdecl lldb_private::python::SWIGBridge::LLDBSWIGPythonCallThreadPlan(void *, char const *, class lldb_private::Event *, bool &))
>>> referenced 2 more times

lld-link: error: undefined symbol: __declspec(dllimport) _PyErr_Occurred
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static class llvm::Expected<bool> __cdecl lldb_private::python::SWIGBridge::LLDBSwigPythonBreakpointCallbackFunction(char const *, char const *, class std::shared_ptr<class lldb_private::StackFrame> const &, class std::shared_ptr<class lldb_private::BreakpointLocation> const &, class lldb_private::StructuredDataImpl const &))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: class llvm::Expected<class lldb_private::python::PythonObject> __thiscall lldb_private::python::PythonObject::Call<class lldb_private::python::PythonObject, class lldb_private::python::PythonObject, class lldb_private::python::PythonDictionary>(class lldb_private::python::PythonObject const &, class lldb_private::python::PythonObject const &, class lldb_private::python::PythonDictionary const &) const)
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: class llvm::Expected<class lldb_private::python::PythonObject> __thiscall lldb_private::python::PythonObject::Call<class lldb_private::python::PythonObject, class lldb_private::python::PythonObject, class lldb_private::python::PythonObject, class lldb_private::python::PythonDictionary>(class lldb_private::python::PythonObject const &, class lldb_private::python::PythonObject const &, class lldb_private::python::PythonObject const &, class lldb_private::python::PythonDictionary const &) const)
>>> referenced 668 more times

lld-link: error: undefined symbol: __declspec(dllimport) _PyExc_SystemExit
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static class llvm::Expected<bool> __cdecl lldb_private::python::SWIGBridge::LLDBSwigPythonBreakpointCallbackFunction(char const *, char const *, class std::shared_ptr<class lldb_private::StackFrame> const &, class std::shared_ptr<class lldb_private::BreakpointLocation> const &, class lldb_private::StructuredDataImpl const &))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: __thiscall PyErr_Cleaner::~PyErr_Cleaner(void))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static bool __cdecl lldb_private::python::SWIGBridge::LLDBSwigPythonWatchpointCallbackFunction(char const *, char const *, class std::shared_ptr<class lldb_private::StackFrame> const &, class std::shared_ptr<class lldb_private::Watchpoint> const &))
>>> referenced 22 more times

lld-link: error: undefined symbol: __declspec(dllimport) __PyObject_CallFunction_SizeT
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: class llvm::Expected<class lldb_private::python::PythonObject> __thiscall lldb_private::python::PythonObject::Call<class lldb_private::python::PythonObject, class lldb_private::python::PythonObject, class lldb_private::python::PythonDictionary>(class lldb_private::python::PythonObject const &, class lldb_private::python::PythonObject const &, class lldb_private::python::PythonDictionary const &) const)
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: class llvm::Expected<class lldb_private::python::PythonObject> __thiscall lldb_private::python::PythonObject::Call<class lldb_private::python::PythonObject, class lldb_private::python::PythonObject, class lldb_private::python::PythonObject, class lldb_private::python::PythonDictionary>(class lldb_private::python::PythonObject const &, class lldb_private::python::PythonObject const &, class lldb_private::python::PythonObject const &, class lldb_private::python::PythonDictionary const &) const)
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: class llvm::Expected<class lldb_private::python::PythonObject> __thiscall lldb_private::python::PythonObject::Call<>(void) const)
>>> referenced 4 more times

lld-link: error: undefined symbol: __declspec(dllimport) __Py_TrueStruct
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static bool __cdecl lldb_private::python::SWIGBridge::LLDBSwigPythonFormatterCallbackFunction(char const *, char const *, class std::shared_ptr<class lldb_private::TypeImpl>))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static bool __cdecl lldb_private::python::SWIGBridge::LLDBSWIGPythonCallThreadPlan(void *, char const *, class lldb_private::Event *, bool &))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static bool __cdecl lldb_private::python::SWIGBridge::LLDBSwigPython_UpdateSynthProviderInstance(struct _object *))
>>> referenced 2 more times

lld-link: error: undefined symbol: __declspec(dllimport) _PyFunction_Type
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static bool __cdecl lldb_private::python::SWIGBridge::LLDBSwigPythonCallTypeScript(char const *, void const *, class std::shared_ptr<class lldb_private::ValueObject> const &, void **, class std::shared_ptr<class lldb_private::TypeSummaryOptions> const &, class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> &))

lld-link: error: undefined symbol: __declspec(dllimport) _PyObject_CallFunctionObjArgs
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(int __cdecl SWIG_Python_ConvertPtrAndOwn(struct _object *, void **, struct swig_type_info *, int, int *))
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(void __cdecl SwigPyObject_dealloc(struct _object *))

lld-link: error: undefined symbol: __declspec(dllimport) _PyObject_CallMethodObjArgs
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(public: static struct _object * __cdecl lldb_private::python::SWIGBridge::LLDBSwigPython_GetRecognizedArguments(struct _object *, class std::shared_ptr<class lldb_private::StackFrame> const &))

lld-link: error: undefined symbol: __declspec(dllimport) _PyModule_Create2
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(_PyInit__lldb)

lld-link: error: undefined symbol: __declspec(dllimport) _PyModule_GetDict
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(_PyInit__lldb)
>>> referenced by lldbPluginScriptInterpreterPython.lib(PythonDataObjects.cpp.obj):(public: class llvm::Expected<class lldb_private::python::PythonObject> __thiscall lldb_private::python::PythonModule::Get(class llvm::Twine const &))
>>> referenced by lldbPluginScriptInterpreterPython.lib(PythonDataObjects.cpp.obj):(public: class lldb_private::python::PythonDictionary __thiscall lldb_private::python::PythonModule::GetDictionary(void) const)
>>> referenced 2 more times

lld-link: error: undefined symbol: __declspec(dllimport) _PyCapsule_Import
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(_PyInit__lldb)
>>> referenced by tools\lldb\source\API\CMakeFiles\liblldb.dir\__\__\bindings\python\LLDBWrapPython.cpp.obj:(struct swig_type_info * __cdecl SWIG_pchar_descriptor(void))

lld-link: error: too many errors emitted, stopping now (use /errorlimit:0 to see all errors)