I’m installing tvm on linux server(centOS) as non-root user follwing instruction on https://docs.tvm.ai/install/from_source.html
gcc-9.3.0
cmake-3.17.1
After Gtest, I tried to build and start c++ test by ./tests/scripts/task_cpp_unittest.sh
, but got errors
-- Build with RPC support...
-- Build with Graph runtime support...
-- VTA build with VTA_HW_PATH=/research/tvm/3rdparty/vta-hw
-- Build VTA runtime with target: sim
CMake Warning (dev) at /data/d0/y19/share/cmake-3.17/Modules/FindOpenGL.cmake:305 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run "cmake --help-policy CMP0072" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
FindOpenGL found both a legacy GL library:
OPENGL_gl_LIBRARY: /usr/lib64/libGL.so
and GLVND libraries for OpenGL and GLX:
OPENGL_opengl_LIBRARY: /usr/lib64/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib64/libGLX.so
OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
cmake/modules/OpenGL.cmake:18 (find_package)
CMakeLists.txt:286 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Use llvm-config=/research/llvm/bin/llvm-config
-- /research/llvm/include
-- Found LLVM_INCLUDE_DIRS=/research/llvm/include
-- Found LLVM_DEFINITIONS= -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-- Found TVM_LLVM_VERSION=100
-- Build with LLVM
-- Set TVM_LLVM_VERSION=100
-- Build with contrib.sort
-- Build with contrib.hybriddump
-- Build with c++14
-- Build with thread support...
-- Configuring done
-- Generating done
-- Build files have been written to: /research/tvm/build
make[1]: Entering directory `/research/tvm/build'
make[2]: Entering directory `/research/tvm/build'
make[3]: Entering directory `/research/tvm/build'
make[4]: Entering directory `/research/tvm/build'
Scanning dependencies of target cpptest
make[4]: Leaving directory `/research/tvm/build'
make[4]: Entering directory `/research/tvm/build'
Missing Google Test headers in include path
make[4]: *** [CMakeFiles/cpptest] Error 1
make[4]: Leaving directory `/research/tvm/build'
make[3]: *** [CMakeFiles/cpptest.dir/all] Error 2
make[3]: Leaving directory `/research/tvm/build'
make[2]: *** [CMakeFiles/cpptest.dir/rule] Error 2
make[2]: Leaving directory `/research/tvm/build'
make[1]: *** [cpptest] Error 2
make[1]: Leaving directory `/research/tvm/build'
make: *** [cpptest] Error 2