Could NOT find ZLIB/Terminfo Error
lzxdn opened this issue · 0 comments
lzxdn commented
I build LLVM on my centos7.6 system. The build command like this:
scl enable devtoolset-9 'bash'
bash build_llvm.bash -o llvm-centos-7-build -p local -c release -a x86 -j 16
It seems that there is no problem with the compilation and the tar package was successfully generated。
But when I use the build llvm to compile triton, the error occured:
running build_py
running build_ext
-- The C compiler identification is GNU 9.3.1
-- The CXX compiler identification is GNU 9.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/rh/devtoolset-9/root/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/devtoolset-9/root/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Adding Python module
-- Could NOT find Terminfo (missing: Terminfo_LIBRARIES Terminfo_LINKABLE)
-- Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR)
-- Linker detection: GNU ld
-- Configuring done (4.9s)
CMake Error at /root/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-centos-7-release/lib/cmake/llvm/LLVMExports.cmake:64 (set_target_properties):
The link interface of target "LLVMSupport" contains:
ZLIB::ZLIB
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
/root/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-centos-7-release/lib/cmake/llvm/LLVMConfig.cmake:249 (include)
/root/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-centos-7-release/lib/cmake/mlir/MLIRConfig.cmake:10 (find_package)
CMakeLists.txt:188 (find_package)
-- Generating done (9.3s)