Help with triton build problem in unstable (RC isse)?
Hi. I could use some help figuring out what is wrong with the triton
build in unstable, <URL: https://bugs.debian.org/1052930 >. As far as I
can tell, the problem is with build dependencies and the cmake build
system. I tried to replace the build dependencies libmlir-14-dev and
mlir-14-tools with libmlir-16-dev and mlir-16-tools to match the cmake
detected llvm version, in the hope that the issue was a version skew
problem, but did not get the build working. It only gave me a new and
equally confusing error:
[...]
-- Found LLVM: /usr/lib/llvm-16 (found suitable version "16.0.6", minimum required is "11")
-- Found LLVM
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Success
-- Found FFI: /usr/lib/x86_64-linux-gnu/libffi.so
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Success
-- Found Terminfo: /usr/lib/x86_64-linux-gnu/libtinfo.so
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3")
-- Found zstd: /usr/lib/x86_64-linux-gnu/libzstd.so
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.14")
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "8.6.0")
-- Linker detection: GNU ld
WARNING: triton-translate links LLVM and LLVMCore!
WARNING: triton-translate links LLVM and LLVMSupport!
WARNING: triton-translate links LLVM and LLVMOption!
WARNING: triton-translate links LLVM and LLVMCodeGen!
WARNING: triton-translate links LLVM and LLVMAsmParser!
-- Configuring done (1.9s)
CMake Error at /usr/lib/llvm-16/lib/cmake/llvm/AddLLVM.cmake:554 (add_dependencies):
The dependency target "MLIRArithmetic" of target "obj.TritonIR" does not
exist.
Call Stack (most recent call first):
/usr/lib/llvm-16/lib/cmake/mlir/AddMLIR.cmake:303 (llvm_add_library)
/usr/lib/llvm-16/lib/cmake/mlir/AddMLIR.cmake:580 (add_mlir_library)
lib/Dialect/Triton/IR/CMakeLists.txt:1 (add_mlir_dialect_library)
CMake Error at /usr/lib/llvm-16/lib/cmake/llvm/AddLLVM.cmake:554 (add_dependencies):
The dependency target "MLIRSCF" of target "obj.TritonIR" does not exist.
Call Stack (most recent call first):
/usr/lib/llvm-16/lib/cmake/mlir/AddMLIR.cmake:303 (llvm_add_library)
/usr/lib/llvm-16/lib/cmake/mlir/AddMLIR.cmake:580 (add_mlir_library)
lib/Dialect/Triton/IR/CMakeLists.txt:1 (add_mlir_dialect_library)
CMake Error at /usr/lib/llvm-16/lib/cmake/llvm/AddLLVM.cmake:554 (add_dependencies):
The dependency target "MLIRStandard" of target "obj.TritonIR" does not
exist.
Call Stack (most recent call first):
/usr/lib/llvm-16/lib/cmake/mlir/AddMLIR.cmake:303 (llvm_add_library)
/usr/lib/llvm-16/lib/cmake/mlir/AddMLIR.cmake:580 (add_mlir_library)
lib/Dialect/Triton/IR/CMakeLists.txt:1 (add_mlir_dialect_library)
CMake Error at /usr/lib/llvm-16/lib/cmake/llvm/AddLLVM.cmake:554 (add_dependencies):
The dependency target "MLIRLLVMIR" of target "obj.TritonLLVMIR" does not
exist.
Call Stack (most recent call first):
/usr/lib/llvm-16/lib/cmake/mlir/AddMLIR.cmake:303 (llvm_add_library)
/usr/lib/llvm-16/lib/cmake/mlir/AddMLIR.cmake:592 (add_mlir_library)
lib/Target/LLVMIR/CMakeLists.txt:1 (add_mlir_translation_library)
CMake Error at /usr/lib/llvm-16/lib/cmake/llvm/AddLLVM.cmake:554 (add_dependencies):
The dependency target "MLIRSCFToStandard" of target "obj.TritonLLVMIR" does
not exist.
Call Stack (most recent call first):
/usr/lib/llvm-16/lib/cmake/mlir/AddMLIR.cmake:303 (llvm_add_library)
/usr/lib/llvm-16/lib/cmake/mlir/AddMLIR.cmake:592 (add_mlir_library)
lib/Target/LLVMIR/CMakeLists.txt:1 (add_mlir_translation_library)
-- Generating done (0.1s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
FETCHCONTENT_FULLY_DISCONNECTED
PYTHON_EXECUTABLE
PYTHON_INCLUDE_DIR
PYTHON_LIBRARY
Python3_EXECUTABLE
Python3_INCLUDE_DIR
Python3_LIBRARY
Python_EXECUTABLE
Python_INCLUDE_DIR
Python_LIBRARY
CMake Generate step failed. Build files cannot be regenerated correctly.
cd .pybuild/cpython3_3.12_triton/build && tail -v -n \+0 CMakeCache.txt
[...]
I am not very good with cmake, and would love some feedback on how to
fix this. I am available on #debian-ai if someone want to discuss this
on IRC.
--
Happy hacking
Petter Reinholdtsen
Reply to: