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

Upgrade LLVM to 15 when TVM build #682

Open
mshr-h opened this issue Feb 6, 2023 · 2 comments
Open

Upgrade LLVM to 15 when TVM build #682

mshr-h opened this issue Feb 6, 2023 · 2 comments

Comments

@mshr-h
Copy link
Collaborator

mshr-h commented Feb 6, 2023

#680
#681

@mshr-h
Copy link
Collaborator Author

mshr-h commented Feb 6, 2023

The error log is here.

[100%] Building CXX object CMakeFiles/tvm_objs.dir/src/contrib/hybrid/codegen_hybrid.cc.o
[100%] Built target tvm_objs
[100%] Linking CXX shared library libtvm.dylib
ld: library not found for -lzstd
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libtvm.dylib] Error 1
make[1]: *** [CMakeFiles/tvm.dir/all] Error 2
make: *** [all] Error 2
Error: Process completed with exit code 2.

Looks like zstd is missing but it's installed.

The same error happened on my local M1 Mac machine.
Without --link-static, the build worked fine.

CC: @masahi Have you encountered any similar errors?

@masahi
Copy link
Collaborator

masahi commented Feb 6, 2023

The error is coming from LLVM. I heard that LLVM has recently started to depend on zstd. So you need to install libzstd-dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants