[Mlir-commits] [mlir] Support Arbitrary Precision Integers in MLIR C API and Python Bindings (PR #177733)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Jan 23 21:00:40 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 7387 tests passed
* 599 tests skipped
* 14 tests failed
## Failed Tests
(click on a test name to see its output)
### MLIR
<details>
<summary>MLIR.Examples/standalone/test.toy</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
"/usr/bin/cmake" "/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/examples/standalone" -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=/opt/llvm/bin/clang++ -DCMAKE_C_COMPILER=/opt/llvm/bin/clang -DLLVM_ENABLE_LIBCXX=OFF -DMLIR_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/cmake/mlir -DLLVM_USE_LINKER=lld -DMLIR_PYTHON_PACKAGE_PREFIX=mlir_standalone -DMLIR_BINDINGS_PYTHON_NB_DOMAIN=mlir_standalone -DMLIR_INCLUDE_TESTS=ON -DPython3_EXECUTABLE="/usr/bin/python3" -DPython_EXECUTABLE="/usr/bin/python3"
# executed command: /usr/bin/cmake /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/examples/standalone -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=/opt/llvm/bin/clang++ -DCMAKE_C_COMPILER=/opt/llvm/bin/clang -DLLVM_ENABLE_LIBCXX=OFF -DMLIR_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/cmake/mlir -DLLVM_USE_LINKER=lld -DMLIR_PYTHON_PACKAGE_PREFIX=mlir_standalone -DMLIR_BINDINGS_PYTHON_NB_DOMAIN=mlir_standalone -DMLIR_INCLUDE_TESTS=ON -DPython3_EXECUTABLE=/usr/bin/python3 -DPython_EXECUTABLE=/usr/bin/python3
# .---command stdout------------
# | -- The CXX compiler identification is Clang 21.1.8
# | -- The C compiler identification is Clang 21.1.8
# | -- Detecting CXX compiler ABI info
# | -- Detecting CXX compiler ABI info - done
# | -- Check for working CXX compiler: /opt/llvm/bin/clang++ - skipped
# | -- Detecting CXX compile features
# | -- Detecting CXX compile features - done
# | -- Detecting C compiler ABI info
# | -- Detecting C compiler ABI info - done
# | -- Check for working C compiler: /opt/llvm/bin/clang - skipped
# | -- Detecting C compile features
# | -- Detecting C compile features - done
# | -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3")
# | -- Using MLIRConfig.cmake in: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/cmake/mlir
# | -- Using LLVMConfig.cmake in: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/cmake/llvm
# | -- Linker detection: LLD
# | -- Performing Test LLVM_LIBSTDCXX_MIN
# | -- Performing Test LLVM_LIBSTDCXX_MIN - Success
# | -- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR
# | -- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR - Success
# | -- Performing Test LLVM_USES_LIBSTDCXX
# | -- Performing Test LLVM_USES_LIBSTDCXX - Success
# | -- Performing Test LLVM_DEFAULT_TO_GLIBCXX_USE_CXX11_ABI
# | -- Performing Test LLVM_DEFAULT_TO_GLIBCXX_USE_CXX11_ABI - Success
# | -- Performing Test CXX_SUPPORTS_CUSTOM_LINKER
# | -- Performing Test CXX_SUPPORTS_CUSTOM_LINKER - Success
# | -- Performing Test C_SUPPORTS_FPIC
# | -- Performing Test C_SUPPORTS_FPIC - Success
# | -- Performing Test CXX_SUPPORTS_FPIC
# | -- Performing Test CXX_SUPPORTS_FPIC - Success
# | -- Building with -fPIC
# | -- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
# | -- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
# | -- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
# | -- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
# | -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
# | -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
# | -- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG
# | -- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success
# | -- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL
# | -- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Success
# | -- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
# | -- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success
# | -- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG
# | -- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
# | -- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
# | -- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
# | -- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
# | -- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
# | -- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
# | -- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
# | -- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
# | -- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Success
# | -- Looking for os_signpost_interval_begin
# | -- Looking for os_signpost_interval_begin - not found
# | -- Looking for flock
# | -- Looking for flock - found
# | -- Found Python3: /usr/bin/python3 (found suitable version "3.12.3", minimum required is "3.10") found components: Interpreter Development.Module
# | -- Found Python: /usr/bin/python3 (found suitable version "3.12.3", minimum required is "3.10") found components: Interpreter Development.Module
# | -- Found python include dirs: /usr/include/python3.12
# | -- Found python libraries:
# | -- Found numpy v:
# | -- Python extension suffix for modules: 'cpython-312-x86_64-linux-gnu'
# | -- Checking for nanobind in python path...
# | -- found (/home/gha/.local/lib/python3.12/site-packages/nanobind/cmake)
# | -- Found nanobind v2.9.2: /home/gha/.local/lib/python3.12/site-packages/nanobind/include
# | -- Python prefix = '', suffix = '', extension = '
# | -- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS
# | -- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS - Success
# | -- Enabling Python API
# | -- Found python include dirs: /usr/include/python3.12
# | -- Found python libraries:
# | -- Found numpy v:
# | -- Python extension suffix for modules: 'cpython-312-x86_64-linux-gnu'
# | -- Using explicit nanobind cmake directory: /home/gha/.local/lib/python3.12/site-packages/nanobind/cmake (-Dnanobind_DIR to change)
# | -- Found nanobind v2.9.2: /home/gha/.local/lib/python3.12/site-packages/nanobind/include
# | -- Python prefix = '', suffix = '', extension = '
# | -- Configuring done (6.1s)
# | -- Generating done (0.0s)
# | -- Build files have been written to: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone
# `-----------------------------
# RUN: at line 11
export PYTHONPATH="/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/python_packages/mlir_core"
# executed command: export PYTHONPATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/python_packages/mlir_core
# note: command had no output on stdout or stderr
# RUN: at line 12
"/usr/bin/cmake" --build . --target check-standalone | tee /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/Output/test.toy.tmp
# executed command: /usr/bin/cmake --build . --target check-standalone
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: tee /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/Output/test.toy.tmp
# .---command stdout------------
# | [1/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/examples/standalone/python/mlir_standalone/_mlir_libs/_standaloneDialectsNanobind/py.typed -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/_mlir_libs/_standaloneDialectsNanobind/py.typed
# | [2/65] Building StandalonePasses.h.inc...
# | [3/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/_mlir_libs/__init__.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/_mlir_libs/__init__.py
# | [4/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/examples/standalone/python/mlir_standalone/dialects/standalone_nanobind.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/dialects/standalone_nanobind.py
# | [5/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/ir.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/ir.py
# | [6/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/_mlir_libs/_mlir/py.typed -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/_mlir_libs/_mlir/py.typed
# | [7/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/dialects/_ods_common.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/dialects/_ods_common.py
# | [8/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/extras/meta.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/extras/meta.py
# | [9/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/passmanager.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/passmanager.py
# | [10/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/extras/types.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/extras/types.py
# | [11/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/dialects/builtin.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/dialects/builtin.py
# | [12/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/python/dialects/_builtin_ops_gen.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/dialects/_builtin_ops_gen.py
# | [13/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/rewrite.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/rewrite.py
# | [14/65] Building StandaloneOpsDialect.cpp.inc...
# | [15/65] Building StandaloneOps.h.inc...
# | [16/65] Building StandaloneOpsTypes.h.inc...
# | [17/65] Building StandaloneOpsDialect.h.inc...
# | [18/65] Building StandaloneOps.cpp.inc...
# | [19/65] Building StandaloneOpsTypes.cpp.inc...
# | [20/65] Building dialects/_standalone_ops_gen.py...
# | [21/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python/dialects/_standalone_ops_gen.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/dialects/_standalone_ops_gen.py
# | [22/65] Building C object test/CAPI/CMakeFiles/standalone-capi-test.dir/standalone-capi-test.c.o
# | [23/65] Building CXX object python/CMakeFiles/nanobind-mlir_standalone.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_ft.cpp.o
# | [24/65] Building CXX object python/CMakeFiles/nanobind-mlir_standalone.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_static_property.cpp.o
# | [25/65] Building CXX object python/CMakeFiles/nanobind-mlir_standalone.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/implicit.cpp.o
# | [26/65] Building CXX object python/CMakeFiles/nanobind-mlir_standalone.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/trampoline.cpp.o
# | [27/65] Building CXX object python/CMakeFiles/nanobind-mlir_standalone.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/error.cpp.o
# | [28/65] Building CXX object python/CMakeFiles/nanobind-mlir_standalone.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_internals.cpp.o
# | [29/65] Building CXX object python/CMakeFiles/nanobind-mlir_standalone.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_ndarray.cpp.o
# | [30/65] Building CXX object python/CMakeFiles/nanobind-mlir_standalone.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/common.cpp.o
# | [31/65] Building CXX object python/CMakeFiles/nanobind-mlir_standalone.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_enum.cpp.o
# | [32/65] Building CXX object python/CMakeFiles/nanobind-mlir_standalone.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_func.cpp.o
# | [33/65] Building CXX object python/CMakeFiles/nanobind-mlir_standalone.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_type.cpp.o
# | [34/65] Linking CXX shared library python_packages/standalone/mlir_standalone/_mlir_libs/libnanobind-mlir_standalone.so
# | [35/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/MainModule.cpp.o
# | [36/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._standaloneDialectsNanobind.dso.dir/StandaloneExtensionNanobind.cpp.o
# | [37/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp.o
# | [38/65] Building CXX object standalone-translate/CMakeFiles/standalone-translate.dir/standalone-translate.cpp.o
# | [39/65] Building CXX object lib/Standalone/CMakeFiles/obj.MLIRStandalone.dir/StandaloneTypes.cpp.o
# | [40/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRInterfaces.cpp.o
# | [41/65] Building CXX object standalone-plugin/CMakeFiles/StandalonePlugin.dir/standalone-plugin.cpp.o
# | [42/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Rewrite.cpp.o
# | [43/65] Building CXX object lib/Standalone/CMakeFiles/obj.MLIRStandalone.dir/StandaloneDialect.cpp.o
# | [44/65] Building CXX object lib/Standalone/CMakeFiles/obj.MLIRStandalone.dir/StandaloneOps.cpp.o
# | [45/65] Building CXX object lib/CAPI/CMakeFiles/obj.StandaloneCAPI.dir/Dialects.cpp.o
# | [46/65] Building CXX object lib/Standalone/CMakeFiles/obj.MLIRStandalone.dir/StandalonePasses.cpp.o
# | [47/65] Linking CXX static library lib/libMLIRStandalone.a
# | [48/65] Linking CXX shared module lib/StandalonePlugin.so
# | [49/65] Linking CXX shared library lib/libStandaloneCAPITestLib.so.23.0git
# | [50/65] Creating library symlink lib/libStandaloneCAPITestLib.so
# | [51/65] Linking CXX shared library python_packages/standalone/mlir_standalone/_mlir_libs/libStandalonePythonCAPI.so.23.0git
# | [52/65] Creating library symlink python_packages/standalone/mlir_standalone/_mlir_libs/libStandalonePythonCAPI.so
# | [53/65] Linking C executable bin/standalone-capi-test
# | [54/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension.MLIRPythonSupport-mlir_standalone.so.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRAttributes.cpp.o
# | FAILED: python/CMakeFiles/StandalonePythonModules.extension.MLIRPythonSupport-mlir_standalone.so.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRAttributes.cpp.o
# | /opt/llvm/bin/clang++ -DMLIR_BINDINGS_PYTHON_DOMAIN=mlir_standalone -DMLIR_CAPI_BUILDING_LIBRARY=1 -DMLIR_PYTHON_PACKAGE_PREFIX=mlir_standalone. -DNB_DOMAIN=mlir_standalone -DNB_SHARED -DStandalonePythonModules_extension_MLIRPythonSupport_mlir_standalone_so_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/examples/standalone/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/include -isystem /usr/include/python3.12 -isystem /home/gha/.local/lib/python3.12/site-packages/nanobind/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -fPIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -UNDEBUG -Wno-c++98-compat-extra-semi -Wno-cast-qual -Wno-covered-switch-default -Wno-deprecated-literal-operator -Wno-nested-anon-types -Wno-unused-parameter -Wno-zero-length-array -Wno-missing-field-initializers -frtti -fexceptions -MD -MT python/CMakeFiles/StandalonePythonModules.extension.MLIRPythonSupport-mlir_standalone.so.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRAttributes.cpp.o -MF python/CMakeFiles/StandalonePythonModules.extension.MLIRPythonSupport-mlir_standalone.so.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRAttributes.cpp.o.d -o python/CMakeFiles/StandalonePythonModules.extension.MLIRPythonSupport-mlir_standalone.so.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRAttributes.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRAttributes.cpp
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRAttributes.cpp:398:12: error: no member named 'PyIntegerAttribute' in namespace 'mlir'; did you mean simply 'PyIntegerAttribute'?
# | 398 | nb::object mlir::PyIntegerAttribute::toPyInt(PyIntegerAttribute &self) {
# | | ^~~~~~~~~~~~~~~~~~~~~~~~
# | | PyIntegerAttribute
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/Bindings/Python/IRAttributes.h:333:32: note: 'PyIntegerAttribute' declared here
# | 333 | class MLIR_PYTHON_API_EXPORTED PyIntegerAttribute
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRAttributes.cpp:398:12: error: no member named 'PyIntegerAttribute' in namespace 'mlir'; did you mean simply 'PyIntegerAttribute'?
# | 398 | nb::object mlir::PyIntegerAttribute::toPyInt(PyIntegerAttribute &self) {
# | | ^~~~~~~~~~~~~~~~~~~~~~~~
# | | PyIntegerAttribute
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/Bindings/Python/IRAttributes.h:333:32: note: 'PyIntegerAttribute' declared here
# | 333 | class MLIR_PYTHON_API_EXPORTED PyIntegerAttribute
# | | ^
# | 2 errors generated.
# | [55/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRAffine.cpp.o
# | [56/65] Building CXX object standalone-opt/CMakeFiles/standalone-opt.dir/standalone-opt.cpp.o
# | [57/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension.MLIRPythonSupport-mlir_standalone.so.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Globals.cpp.o
# | [58/65] Linking CXX executable bin/standalone-translate
# | [59/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension.MLIRPythonSupport-mlir_standalone.so.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRTypes.cpp.o
# | [60/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension.MLIRPythonSupport-mlir_standalone.so.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRCore.cpp.o
# | ninja: build stopped: subcommand failed.
# `-----------------------------
--
```
</details>
<details>
<summary>MLIR.python/dialects/affine.py</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/affine.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/affine.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/affine.py
# .---command stderr------------
# | python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560: decltype(auto) llvm::cast(const From &) [To = mlir::IntegerType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/affine.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/affine.py
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>MLIR.python/dialects/func.py</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/func.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/func.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/func.py
# .---command stderr------------
# | python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560: decltype(auto) llvm::cast(const From &) [To = mlir::IntegerType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/func.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/func.py
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>MLIR.python/dialects/gpu/dialect.py</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/gpu/dialect.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/gpu/dialect.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/gpu/dialect.py
# .---command stderr------------
# | python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560: decltype(auto) llvm::cast(const From &) [To = mlir::IntegerType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/gpu/dialect.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/gpu/dialect.py
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>MLIR.python/dialects/index_dialect.py</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/index_dialect.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/index_dialect.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/index_dialect.py
# .---command stderr------------
# | python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560: decltype(auto) llvm::cast(const From &) [To = mlir::IntegerType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/index_dialect.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/index_dialect.py
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>MLIR.python/dialects/memref.py</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/memref.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/memref.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/memref.py
# .---command stderr------------
# | python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560: decltype(auto) llvm::cast(const From &) [To = mlir::IntegerType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/memref.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/memref.py
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>MLIR.python/dialects/nvgpu.py</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvgpu.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvgpu.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvgpu.py
# .---command stderr------------
# | python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560: decltype(auto) llvm::cast(const From &) [To = mlir::IntegerType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvgpu.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvgpu.py
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>MLIR.python/dialects/python_test.py</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/python_test.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/python_test.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/python_test.py
# .---command stderr------------
# | python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560: decltype(auto) llvm::cast(const From &) [To = mlir::IntegerType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/python_test.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/python_test.py
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>MLIR.python/dialects/scf.py</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/scf.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/scf.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/scf.py
# .---command stderr------------
# | python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560: decltype(auto) llvm::cast(const From &) [To = mlir::IntegerType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/scf.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/scf.py
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>MLIR.python/dialects/shape.py</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/shape.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/shape.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/shape.py
# .---command stderr------------
# | python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560: decltype(auto) llvm::cast(const From &) [To = mlir::IntegerType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/shape.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/shape.py
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>MLIR.python/dialects/shard.py</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/shard.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/shard.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/shard.py
# .---command stderr------------
# | python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560: decltype(auto) llvm::cast(const From &) [To = mlir::IntegerType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/shard.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/shard.py
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>MLIR.python/dialects/tensor.py</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/tensor.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/tensor.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/tensor.py
# .---command stderr------------
# | python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560: decltype(auto) llvm::cast(const From &) [To = mlir::IntegerType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/tensor.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/tensor.py
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>MLIR.python/ir/auto_location.py</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/ir/auto_location.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/ir/auto_location.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/ir/auto_location.py
# .---command stderr------------
# | python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560: decltype(auto) llvm::cast(const From &) [To = mlir::IntegerType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/ir/auto_location.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/ir/auto_location.py
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>MLIR.python/ir/builtin_types.py</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/ir/builtin_types.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/ir/builtin_types.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/ir/builtin_types.py
# .---command stderr------------
# | python3: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Casting.h:560: decltype(auto) llvm::cast(const From &) [To = mlir::IntegerType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/ir/builtin_types.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/ir/builtin_types.py
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/177733
More information about the Mlir-commits
mailing list