[Mlir-commits] [mlir] [MLIR][Python] Support `has_trait` for operations (PR #188492)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Mar 26 08:35:31 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

The build failed before running any tests. Click on a failure below to see the details.

<details>
<summary>[code=4294967295] tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/MLIRPythonSupport-mlir.dll tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/MLIRPythonSupport-mlir.lib</summary>

```
FAILED: [code=4294967295] tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/MLIRPythonSupport-mlir.dll tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/MLIRPythonSupport-mlir.lib
C:\Windows\system32\cmd.exe /C "C:\Windows\system32\cmd.exe /C "C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -E __create_def C:\_work\llvm-project\llvm-project\build\tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir\.\exports.def C:\_work\llvm-project\llvm-project\build\tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir\.\exports.def.objs --nm=CMAKE_NM-NOTFOUND && cd C:\_work\llvm-project\llvm-project\build" && C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -E vs_link_dll --msvc-ver=1944 --intdir=tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir --rc="C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\rc.exe" --mt="C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\mt.exe" --manifests  -- C:\clang\clang-msvc\bin\lld-link.exe /nologo tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir\C_\_work\llvm-project\llvm-project\mlir\lib\Bindings\Python\Globals.cpp.obj tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir\C_\_work\llvm-project\llvm-project\mlir\lib\Bindings\Python\IRAttributes.cpp.obj tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir\C_\_work\llvm-project\llvm-project\mlir\lib\Bindings\Python\IRCore.cpp.obj tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir\C_\_work\llvm-project\llvm-project\mlir\lib\Bindings\Python\IRTypes.cpp.obj  /out:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonSupport-mlir.dll /implib:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonSupport-mlir.lib /pdb:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonSupport-mlir.pdb /dll /version:0.0 /MANIFEST:NO /INCREMENTAL:NO  /DEF:tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir\.\exports.def  tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\nanobind-mlir.lib  tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonCAPI.lib  C:\Python312\libs\python312.lib  C:\Python312\libs\python312.lib  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
LINK: command "C:\clang\clang-msvc\bin\lld-link.exe /nologo tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir\C_\_work\llvm-project\llvm-project\mlir\lib\Bindings\Python\Globals.cpp.obj tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir\C_\_work\llvm-project\llvm-project\mlir\lib\Bindings\Python\IRAttributes.cpp.obj tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir\C_\_work\llvm-project\llvm-project\mlir\lib\Bindings\Python\IRCore.cpp.obj tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir\C_\_work\llvm-project\llvm-project\mlir\lib\Bindings\Python\IRTypes.cpp.obj /out:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonSupport-mlir.dll /implib:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonSupport-mlir.lib /pdb:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonSupport-mlir.pdb /dll /version:0.0 /MANIFEST:NO /INCREMENTAL:NO /DEF:tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir\.\exports.def tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\nanobind-mlir.lib tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonCAPI.lib C:\Python312\libs\python312.lib C:\Python312\libs\python312.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib" failed (exit code 1) with the following output:
lld-link: error: undefined symbol: mlirOperationHasTrait
>>> referenced by tools\mlir\python\CMakeFiles\MLIRPythonModules.extension.MLIRPythonSupport-mlir.so.dir\C_\_work\llvm-project\llvm-project\mlir\lib\Bindings\Python\IRCore.cpp.obj:(private: static __cdecl `struct _object * __cdecl nanobind::detail::func_create<0, 1, class `void __cdecl mlir::python::mlir::populateIRCore(class nanobind::module_&)'::`1'::<lambda_120>, bool, class mlir::python::mlir::PyOperationBase &, class nanobind::type_object &, 0, 1, struct nanobind::scope, struct nanobind::name, struct nanobind::is_method>(class `void __cdecl mlir::python::mlir::populateIRCore(class nanobind::module_&)'::`1'::<lambda_120> &&, bool (__cdecl *)(class mlir::python::mlir::PyOperationBase &, class nanobind::type_object &), struct std::integer_sequence<unsigned __int64, 0, 1>, struct nanobind::scope const &, struct nanobind::name const &, struct nanobind::is_method const &)'::`1'::<lambda_1>::__invoke(void *, struct _object **, unsigned char *, enum nanobind::rv_policy, struct nanobind::detail::cleanup_list *))
```
</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/188492


More information about the Mlir-commits mailing list