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

build failed. cannot find -lxml2 #17329

Closed
weizhenhuan opened this issue Sep 3, 2024 · 2 comments
Closed

build failed. cannot find -lxml2 #17329

weizhenhuan opened this issue Sep 3, 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

@weizhenhuan
Copy link

weizhenhuan commented Sep 3, 2024

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

@weizhenhuan weizhenhuan added needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug labels Sep 3, 2024
@wsty1234
Copy link

I have met the same problem. How to solve this ? Thank you so much

@Zoeeeeey
Copy link

I have met the same problem. How to solve this ? Thank you so much TxT

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

3 participants