Skip to content

unable to build triton #7088

@Sh0g0-1758

Description

@Sh0g0-1758

Describe the bug

    [15/351] Building Types.cpp.inc...
    FAILED: include/triton/Dialect/Triton/IR/Types.cpp.inc /root/shogo/master/triton/triton/build/cmake.linux-x86_64-cpython-3.10/include/triton/Dialect/Triton/IR/Types.cpp.inc
    cd /root/shogo/master/triton/triton/build/cmake.linux-x86_64-cpython-3.10/include/triton/Dialect/Triton/IR && /root/.triton/llvm/llvm-e12cbd83-ubuntu-x64/bin/mlir-tblgen -gen-typedef-defs -I /root/shogo/master/triton/triton/include/triton/Dialect/Triton/IR -I/root/shogo/master/triton/triton/include -I/root/shogo/master/triton/triton/. -I/root/.triton/llvm/llvm-e12cbd83-ubuntu-x64/include -I/root/.triton/llvm/llvm-e12cbd83-ubuntu-x64/include -I/root/shogo/master/triton/triton/include -I/root/shogo/master/triton/triton/build/cmake.linux-x86_64-cpython-3.10/include -I/root/shogo/master/triton/triton/third_party -I/root/shogo/master/triton/triton/build/cmake.linux-x86_64-cpython-3.10/third_party /root/shogo/master/triton/triton/include/triton/Dialect/Triton/IR/TritonTypes.td --write-if-changed -o /root/shogo/master/triton/triton/build/cmake.linux-x86_64-cpython-3.10/include/triton/Dialect/Triton/IR/Types.cpp.inc
    /root/.triton/llvm/llvm-e12cbd83-ubuntu-x64/bin/mlir-tblgen: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /root/.triton/llvm/llvm-e12cbd83-ubuntu-x64/bin/mlir-tblgen)
    /root/.triton/llvm/llvm-e12cbd83-ubuntu-x64/bin/mlir-tblgen: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /root/.triton/llvm/llvm-e12cbd83-ubuntu-x64/bin/mlir-tblgen)
    /root/.triton/llvm/llvm-e12cbd83-ubuntu-x64/bin/mlir-tblgen: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /root/.triton/llvm/llvm-e12cbd83-ubuntu-x64/bin/mlir-tblgen)
    /root/.triton/llvm/llvm-e12cbd83-ubuntu-x64/bin/mlir-tblgen: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /root/.triton/llvm/llvm-e12cbd83-ubuntu-x64/bin/mlir-tblgen)
    /root/.triton/llvm/llvm-e12cbd83-ubuntu-x64/bin/mlir-tblgen: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /root/.triton/llvm/llvm-e12cbd83-ubuntu-x64/bin/mlir-tblgen)
    [16/351] Linking CXX static library lib/libgmock.a
    ninja: build stopped: subcommand failed.
    Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "/root/shogo/master/triton/triton/setup.py", line 782, in <module>
        setup(
      File "/usr/local/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/lib/python3.10/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/lib/python3.10/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/local/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
        super().run_command(command)
      File "/usr/local/lib/python3.10/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/root/shogo/master/triton/triton/setup.py", line 695, in run
        super().run()
      File "/usr/local/lib/python3.10/site-packages/setuptools/command/develop.py", line 34, in run
        self.install_for_development()
      File "/usr/local/lib/python3.10/site-packages/setuptools/command/develop.py", line 114, in install_for_development
        self.run_command('build_ext')
      File "/usr/local/lib/python3.10/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
        super().run_command(command)
      File "/usr/local/lib/python3.10/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/root/shogo/master/triton/triton/setup.py", line 410, in run
        self.build_extension(ext)
      File "/root/shogo/master/triton/triton/setup.py", line 516, in build_extension
        subprocess.check_call(["cmake", "--build", "."] + build_args, cwd=cmake_dir)
      File "/usr/local/lib/python3.10/subprocess.py", line 369, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'TritonRelBuildWithAsserts', '-j16']' returned non-zero exit status 1.
    copy /root/.triton/nvidia/nvcc/cuda_nvcc-linux-x86_64-12.8.93-archive/bin/ptxas to /root/shogo/master/triton/triton/third_party/nvidia/backend/bin/ptxas ...
    copy /root/.triton/nvidia/cuobjdump/cuda_cuobjdump-linux-x86_64-12.8.55-archive/bin/cuobjdump to /root/shogo/master/triton/triton/third_party/nvidia/backend/bin/cuobjdump ...
    copy /root/.triton/nvidia/nvdisasm/cuda_nvdisasm-linux-x86_64-12.8.55-archive/bin/nvdisasm to /root/shogo/master/triton/triton/third_party/nvidia/backend/bin/nvdisasm ...
    copy /root/.triton/nvidia/nvcc/cuda_nvcc-linux-x86_64-12.8.61-archive/include to /root/shogo/master/triton/triton/third_party/nvidia/backend/include ...
    copy /root/.triton/nvidia/cudart/cuda_cudart-linux-x86_64-12.8.57-archive/include to /root/shogo/master/triton/triton/third_party/nvidia/backend/include ...
    copy /root/.triton/nvidia/cupti/cuda_cupti-linux-x86_64-12.8.90-archive/include to /root/shogo/master/triton/triton/third_party/nvidia/backend/include ...
    copy /root/.triton/nvidia/cupti/cuda_cupti-linux-x86_64-12.8.90-archive/lib to /root/shogo/master/triton/triton/third_party/nvidia/backend/lib/cupti ...
    downloading and extracting https://github.com/nlohmann/json/releases/download/v3.11.3/include.zip ...
    error: subprocess-exited-with-error
    
    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> See above for output.
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
    full command: /usr/bin/python -c '
    exec(compile('"'"''"'"''"'"'
    # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
    #
    # - It imports setuptools before invoking setup.py, to enable projects that directly
    #   import from `distutils.core` to work with newer packaging standards.
    # - It provides a clear error message when setuptools is not installed.
    # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
    #   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
    #     manifest_maker: standard file '"'"'-c'"'"' not found".
    # - It generates a shim setup.py, for handling setup.cfg-only projects.
    import os, sys, tokenize
    
    try:
        import setuptools
    except ImportError as error:
        print(
            "ERROR: Can not execute `setup.py` since setuptools is not available in "
            "the build environment.",
            file=sys.stderr,
        )
        sys.exit(1)
    
    __file__ = %r
    sys.argv[0] = __file__
    
    if os.path.exists(__file__):
        filename = __file__
        with tokenize.open(__file__) as f:
            setup_py_code = f.read()
    else:
        filename = "<auto-generated setuptools caller>"
        setup_py_code = "from setuptools import setup; setup()"
    
    exec(compile(setup_py_code, filename, "exec"))
    '"'"''"'"''"'"' % ('"'"'/root/shogo/master/triton/triton/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps
    cwd: /root/shogo/master/triton/triton/
  Rolling back uninstall of triton
  Moving to /usr/local/bin/proton
   from /tmp/pip-uninstall-2onuq_r0/proton
  Moving to /usr/local/bin/proton-viewer
   from /tmp/pip-uninstall-2onuq_r0/proton-viewer
  Moving to /usr/local/lib/python3.10/site-packages/triton-3.3.0.dist-info/
   from /usr/local/lib/python3.10/site-packages/~riton-3.3.0.dist-info
  Moving to /usr/local/lib/python3.10/site-packages/triton/
   from /usr/local/lib/python3.10/site-packages/~riton
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.

Environment details

Triton: head at upstream
GPU: A10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions