Open DEVwXZ4Njdmo4hm opened 1 year ago
@llvm/issue-subscribers-lldb
Author: None (DEVwXZ4Njdmo4hm)
Sorry for the late reply. It looks like you're building LLDB in Release mode but you have a Debug python installed. If I remember right, I thought you need a Release build of Python to link correctly? I might be misremembering, it's been a few years since I've tried building LLDB on Windows.
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)
-- 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
[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
lld-link: error: undefined symbol: declspec(dllimport) PyObject_New
lld-link: error: undefined symbol: declspec(dllimport) Py_NoneStruct
lld-link: error: undefined symbol: __declspec(dllimport) _PyUnicode_FromString
lld-link: error: undefined symbol: __declspec(dllimport) _PyObject_SetAttr
lld-link: error: undefined symbol: __declspec(dllimport) _PyTuple_New
lld-link: error: undefined symbol: __declspec(dllimport) _PyDict_New
lld-link: error: undefined symbol: declspec(dllimport) Py_Dealloc
lld-link: error: undefined symbol: __declspec(dllimport) _PyType_Modified
lld-link: error: undefined symbol: declspec(dllimport) Py_FalseStruct
lld-link: error: undefined symbol: __declspec(dllimport) _PyErr_Occurred
lld-link: error: undefined symbol: __declspec(dllimport) _PyExc_SystemExit
lld-link: error: undefined symbol: declspec(dllimport) PyObject_CallFunction_SizeT
lld-link: error: undefined symbol: declspec(dllimport) Py_TrueStruct
lld-link: error: undefined symbol: __declspec(dllimport) _PyFunction_Type
lld-link: error: undefined symbol: __declspec(dllimport) _PyObject_CallFunctionObjArgs
lld-link: error: undefined symbol: __declspec(dllimport) _PyObject_CallMethodObjArgs
lld-link: error: undefined symbol: __declspec(dllimport) _PyModule_Create2
lld-link: error: undefined symbol: __declspec(dllimport) _PyModule_GetDict
lld-link: error: undefined symbol: __declspec(dllimport) _PyCapsule_Import
lld-link: error: too many errors emitted, stopping now (use /errorlimit:0 to see all errors)