Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] report missing libtvm.so when specify the TVM_LIBRARY_PATH #17569

Open
vfdff opened this issue Dec 24, 2024 · 2 comments
Open

[Bug] report missing libtvm.so when specify the TVM_LIBRARY_PATH #17569

vfdff opened this issue Dec 24, 2024 · 2 comments
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug

Comments

@vfdff
Copy link

vfdff commented Dec 24, 2024

[100%] Linking CXX shared library libtvm_runtime.so
[100%] Built target tvm_objs
make[2]: *** No rule to make target '/usr/lib/llvm-14/lib/libPolly.a', needed by 'libtvm_allvisible.so'.  Stop.
make[2]: *** No rule to make target '/usr/lib/llvm-14/lib/libPolly.a', needed by 'libtvm.so'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:260: CMakeFiles/tvm_allvisible.dir/all] Error 2
  • I try both the config set(USE_CUDA OFF) and set(USE_CUDA ON), they have the same errors

Expected behavior

compile successfully and get libtvm.so and libtvm_runtime.so

Actual behavior

  • compile failed
    image

  • the libtvm.so and libtvm_runtime.so exist under $TVM_LIBRARY_PATH
    image

Environment (83, gpu machine)

Linux version 5.15.0-46-generic (buildd@lcy02-amd64-007) (gcc (Ubuntu 9.4.0-1ubuntu120.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #4920.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 (cat /proc/version)

Steps to reproduce

accord https://tvm.hyper.ai/docs/install/from_source/

git clone --recursive https://github.com/apache/tvm tvm --depth=1
git fetch --update-shallow
mkdir build
cp cmake/config.cmake build
cmake ..
make -j
@vfdff vfdff added needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug labels Dec 24, 2024
@vfdff
Copy link
Author

vfdff commented Dec 24, 2024

oh, I rebuild it after clean the value of TVM_LIBRARY_PATH (export TVM_LIBRARY_PATH=), it still only generates libtvm_runtime.so under the build Folders.

@lipeng821020589
Copy link

@vfdff hi, recommended that you use LLVM 15. The problem may be a known problem(https://discourse.llvm.org/t/ubuntu-packages-with-llvm-14-then-15-suddenly-looking-for-libpolly-a/67655).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug
Projects
None yet
Development

No branches or pull requests

2 participants