Skip to content

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

@vfdff

Description

@vfdff
[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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triagePRs or issues that need to be investigated by maintainers to find the right assignees to address ittype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions