build failed. cannot find -lxml2 #17329
Labels
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
type: bug
when I build tvm from source with cuda version, I encounter the following problem. I have installed libxml2 with conda, but the problem still exists. I also try installing libxml2 from source from website, and adding corresponding lib dir to LD_LIBRARY_PATH, it cannot solve the problem.
[ 1%] Built target project_libbacktrace
[ 1%] Built target tvm_libinfo_objs
[ 10%] Built target tvm_runtime_objs
[ 10%] Built target tvm_runtime
[100%] Built target tvm_objs
[100%] Linking CXX shared library libtvm_allvisible.so
[100%] Linking CXX shared library libtvm.so
/usr/bin/ld: cannot find -lxml2
collect2: error: ld returned 1 exit status
/usr/bin/ld: cannot find -lxml2
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/tvm.dir/build.make:2231: libtvm.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:177: CMakeFiles/tvm.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/tvm_allvisible.dir/build.make:2231: libtvm_allvisible.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:260: CMakeFiles/tvm_allvisible.dir/all] Error 2
The text was updated successfully, but these errors were encountered: