Some questions about building tvm on windows


#1

during building llvm from source , which compiler should I use g++ or MSVC? is Clang needed to be built and installed to? When I tried to build llvm from source on Windows, some warnings and errors occured as follows:

Warning: Did not find file Compiler/-ASM

– 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.h
– Looking for malloc.h - 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
lots of these .h files are not found

during installing the llvm, also an error showed:
CMake Error at cmake_install.cmake:36 (file):
file INSTALL cannot make directory “C:/Program Files
(x86)/LLVM/include/llvm”: No such file or directory
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: ▒▒▒setlocal [C:\Users\yl2304\llvm-7.0.1.src\build\INSTALL.vcxproj]

Thanks a lot!


#2

Hey,

I remembered LLVM has windows prebuilds. I didn’t have a windows machine at handy but google told me this: https://llvm.org/builds/.

BTW, a pitfall is that LLVM 7.0.0 may crash some times due to its own bugs. Other versions of LLVM should work.


#3

it is said for tvm on windows , llvm should be built from source.
MSV is Visual Studio 14 2015
– The C compiler identification is MSVC 19.0.24210.0
– The CXX compiler identification is MSVC 19.0.24210.0

CMake Warning at cmake/modules/CheckCompilerVersion.cmake:47 (message):
Host Visual Studio should at least be 2015 Update 3 (MSVC 19.00.24213.1)

does it have something to do my MSVC 19.0.24210.0 which is earlier than 2015 Update 3 (MSVC 19.00.24213.1)