supersat opened a new issue, #15436:
URL: https://github.com/apache/tvm/issues/15436

   I am attempting to rebuild TVM from scratch with LLVM 16, which was also 
built from scratch. This used to work, but now I'm getting a cmake error, as 
shown below. I believe this might be related to #15164.
   
   ### Expected behavior
   
   TVM successfully compiles
   
   ### Actual behavior
   
   I get the following error:
   
   ```CMake Error at cmake/utils/FindLLVM.cmake:156 (find_package):
     By not providing "Findzstd.cmake" in CMAKE_MODULE_PATH this project has
     asked CMake to find a package configuration file provided by "zstd", but
     CMake did not find one.
   
     Could not find a package configuration file provided by "zstd" with any of
     the following names:
   
       zstdConfig.cmake
       zstd-config.cmake
   
     Add the installation prefix of "zstd" to CMAKE_PREFIX_PATH or set
     "zstd_DIR" to a directory containing one of the above files.  If "zstd"
     provides a separate development package or SDK, be sure it has been
     installed.
   Call Stack (most recent call first):
     cmake/modules/LLVM.cmake:31 (find_llvm)
     CMakeLists.txt:507 (include)
   ```
   
   ### Environment
   
   Ubuntu 20.04 LTS
   TVM commit: 5b431f5dd00b4a63ef8155ef2c690371caa88227
   LLVM commit: 08d094a0e457360ad8b94b017d2dc277e697ca76 (tag: llvmorg-16.0.0)
   
   ### Steps to reproduce
   
   LLVM build command:
   
   `CXX=/opt/llvm-github/llvm-project/llvmorg-15.0.3-install/bin/clang++ 
CC=/opt/llvm-github/llvm-project/llvmorg-15.0.3-install/bin/clang cmake -S llvm 
-B build -G Ninja 
-DLLVM_ENABLE_PROJECTS="clang;compiler-rt;libc;clang-tools-extra" 
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" 
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_PARALLEL_LINK_JOBS=2 
-DCMAKE_INSTALL_PREFIX=/opt/llvm-github/llvm-project/llvmorg-16.0.0`
   
   `cmake --build build`
   
   TVM configure command (in tvm/build):
   
   `cmake .. -DUSE_RPC=ON -DUSE_GRAPH_EXECUTOR=ON -DUSE_LIBBACKTRACE=AUTO 
-DUSE_LLVM=/opt/llvm-github/llvm-project/llvmorg-16.0.0/bin/llvm-config`
   
   ### Triage
   
   * needs-triage
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to