You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "supersat (via GitHub)" <gi...@apache.org> on 2023/07/29 05:12:33 UTC

[GitHub] [tvm] supersat opened a new issue, #15436: [Bug] Unable to build TVM with LLVM 16

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: commits-unsubscribe@tvm.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] junrushao commented on issue #15436: [Bug] Unable to build TVM with LLVM 16

Posted by "junrushao (via GitHub)" <gi...@apache.org>.
junrushao commented on issue #15436:
URL: https://github.com/apache/tvm/issues/15436#issuecomment-1656567497

   LLVM introduces a new dependency which is zstd, so can you actually install zstd?


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] junrushao commented on issue #15436: [Bug] Unable to build TVM with LLVM 16

Posted by "junrushao (via GitHub)" <gi...@apache.org>.
junrushao commented on issue #15436:
URL: https://github.com/apache/tvm/issues/15436#issuecomment-1656568131

   In particular, FindZSTD.cmake is included in llvm


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Unable to build TVM with LLVM 16 [tvm]

Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen closed issue #15436: [Bug] Unable to build TVM with LLVM 16
URL: https://github.com/apache/tvm/issues/15436


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] supersat commented on issue #15436: [Bug] Unable to build TVM with LLVM 16

Posted by "supersat (via GitHub)" <gi...@apache.org>.
supersat commented on issue #15436:
URL: https://github.com/apache/tvm/issues/15436#issuecomment-1656561479

   Reverting commit e1013f10f466980bae28905e3d756e940da2bd02 seems to result in a successful build. Adding @junrushao as the author of that commit. Is there something I'm missing?


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org