Thanks, llvm version 12 matches the old tvm version 0.8, it works fine.
set(USE_LLVM “llvm-config-12 --link-static”)
PS: It may report missing /usr/lib/llvm-12/lib/libPolly.a and -lz, they can be workaroud by
apt-get install libclang-common-12-dev
apt install zlib1g=1:1.2.11.dfsg-2ubuntu1.5 zlib1g-dev