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

Could NOT find ZLIB/Terminfo Error #16

Open
lzxdn opened this issue Aug 29, 2023 · 0 comments
Open

Could NOT find ZLIB/Terminfo Error #16

lzxdn opened this issue Aug 29, 2023 · 0 comments

Comments

@lzxdn
Copy link

lzxdn commented Aug 29, 2023

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)

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

1 participant