The build is successful with llvm-config installed in C:\Program Files (x86)\LLVM\bin. And, I add this to the Windows Path variable
I then modify build/config.cmake to add set(USE_LLVM ON)
Then, I’m trying to build TVM using these commands:
mkdir build
cd build
cmake -G “Visual Studio 15 2017 Win64” -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=“Release” …
and, I’m getting this error:
– Build with RPC support…
– Build with Graph runtime support…
CMake Error at cmake/util/FindLLVM.cmake:21 (list):
list sub-command REMOVE_ITEM requires list to be present.
Call Stack (most recent call first):
cmake/modules/LLVM.cmake:5 (find_llvm)
CMakeLists.txt:171 (include)
– Build with LLVM
– Set TVM_LLVM_VERSION=00
– Configuring incomplete, errors occurred!
Apologies for this beginner level question, but how do I fix this?
I did add this: message(STATUS “LLVM_LIBS” ${LLVM_LIBS}) and it returned me an empty string for LLVM_LIBS.
Do you mean something like this?
cmake -G “Visual Studio 14 2015 Win64” -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=“Release” -DLLVM_DIR=llvm/build/lib/cmake/llvm …
or like this?
cmake -G “Visual Studio 14 2015 Win64” -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=“Release” -DLLVM_DIR=F:\soft\llvm-6.0.0.src\build\lib\cmake\llvm …
I had linker error but I fixed the issue. Now I have one problem:
“my Release folder is empty and I get Release/tvm.lib cannot be opened”
What can I do?