Build tvm with error

– Forbidding undefined symbols in shared library, using -Wl,–no-undefined on platform Linux – Build with RPC support…

– Build with Graph Executor support…

– Build with profiler…

– Build with AOT Executor support…

– Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)

– Build with contrib.random

– Build with contrib.sort

– Build with contrib.hybriddump

– Git found: /usr/bin/git

– Found TVM_GIT_COMMIT_HASH=7b50b2d0ddf45d9114715aad16b867e8be6b2230

– Found TVM_GIT_COMMIT_TIME=2022-10-06 16:42:01 -0700

– Autoset: USE_LIBBACKTRACE=ON in Linux

– Building with libbacktrace…

CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2630 (message): No download info given for ‘project_libbacktrace’ and its source directory:

/home/fangdong/baidu/matrix/tvm/cmake/libs/…/…/3rdparty/libbacktrace

is not an existing non-empty directory. Please specify one of:

  • SOURCE_DIR with an existing non-empty directory
  • DOWNLOAD_COMMAND
  • URL
  • GIT_REPOSITORY
  • SVN_REPOSITORY
  • HG_REPOSITORY
  • CVS_REPOSITORY and CVS_MODULE Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/ExternalProject.cmake:3236 (_ep_add_download_command) cmake/libs/Libbacktrace.cmake:36 (ExternalProject_Add) cmake/modules/Logging.cmake:41 (include) CMakeLists.txt:553 (include)

– Building with TVM Map…

– Build with thread support…

– Configuring incomplete, errors occurred!

See also “/home/fangdong/baidu/matrix/tvm/build/CMakeFiles/CMakeOutput.log”. See also “/home/fangdong/baidu/matrix/tvm/build/CMakeFiles/CMakeError.log”.

you might want to:

git submodule init
git submodule update --recursive