Closed xuanranxiaoshi closed 2 weeks ago
Finally, I tried to fix the problem by recompiling LLVM in Debug mode and resetting the environment variable LLVM_DIR. The compile command is as follows:
cmake ..\llvm\ -G "Visual Studio 17 2022" -A x64 -DLLVM_ENABLE_RTTI:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD="X86;NVPTX" -DLLVM_ENABLE_ASSERTIONS=ON -Thost=x64 -DLLVM_BUILD_TESTS:BOOL=OFF -DCMAKE_INSTALL_PREFIX=installed -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL -DCMAKE_CXX_STANDARD=17
Describe the bug I plan to install Taichi's development debugging environment on windows, and I encounter an error when compiling and building:
LLVMSupport.lib(UnicodeCaseFold.cpp.obj) : error LNK2038: Mismatch of "_ITERATOR_DEBUG_LEVEL" is detected: The value "0" does not match the value "2" (exception.obj) [E:\Code\Cplusplus\taichi\_skbuild\win-amd64-3.9\cmake-build\taichi_python.vcxproj]...
To Reproduce I executed the following build instructions:
Log/Screenshots
Additional comments I guess because I specified the environment variable $env:DEBUG = 1? And the python script automatically installs LLVM 15.0 as a Release? Is this the problem? If not, what is the specific cause, and if so, how to solve it?