[Mlir-commits] [mlir] [mlir][Python] create MLIRPythonSupport (PR #171775)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Dec 11 16:58:47 PST 2025


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.dll tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/MLIRPythonSupport.lib</summary>

```
FAILED: [code=4294967295] tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/MLIRPythonSupport.dll tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/MLIRPythonSupport.lib
cmd.exe /C "cd . && C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -E vs_link_dll --intdir=tools\mlir\python\CMakeFiles\MLIRPythonSupport.dir --rc="C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe" --mt="C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\mt.exe" --manifests  -- C:\clang\clang-msvc\bin\lld-link.exe /nologo tools\mlir\python\CMakeFiles\MLIRPythonSupport.dir\__\lib\Bindings\Python\IRCore.cpp.obj tools\mlir\python\CMakeFiles\MLIRPythonSupport.dir\__\lib\Bindings\Python\Globals.cpp.obj tools\mlir\python\CMakeFiles\MLIRPythonSupport.dir\C_\_work\llvm-project\llvm-project\llvm\resources\windows_version_resource.rc.res  /out:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonSupport.dll /implib:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonSupport.lib /pdb:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonSupport.pdb /dll /version:0.0 /MANIFEST:NO /INCREMENTAL:NO  -Wl,-z,nodefs  tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\nanobind-mlir.lib  tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonCAPI.lib  lib\LLVMSupport.lib  lib\LLVMSupport.lib  C:\Python39\libs\python39.lib  psapi.lib  shell32.lib  ole32.lib  uuid.lib  advapi32.lib  ws2_32.lib  ntdll.lib  delayimp.lib  -delayload:shell32.dll  -delayload:ole32.dll  lib\LLVMDemangle.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\MLIRPythonSupport.dir\__\lib\Bindings\Python\IRCore.cpp.obj tools\mlir\python\CMakeFiles\MLIRPythonSupport.dir\__\lib\Bindings\Python\Globals.cpp.obj tools\mlir\python\CMakeFiles\MLIRPythonSupport.dir\C_\_work\llvm-project\llvm-project\llvm\resources\windows_version_resource.rc.res /out:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonSupport.dll /implib:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonSupport.lib /pdb:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonSupport.pdb /dll /version:0.0 /MANIFEST:NO /INCREMENTAL:NO -Wl,-z,nodefs tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\nanobind-mlir.lib tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonCAPI.lib lib\LLVMSupport.lib lib\LLVMSupport.lib C:\Python39\libs\python39.lib psapi.lib shell32.lib ole32.lib uuid.lib advapi32.lib ws2_32.lib ntdll.lib delayimp.lib -delayload:shell32.dll -delayload:ole32.dll lib\LLVMDemangle.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: warning: ignoring unknown argument '-Wl,-z,nodefs'
lld-link: error: undefined symbol: __declspec(dllimport) public: __cdecl std::bad_cast::bad_cast(char const *)
>>> referenced by tools\mlir\python\CMakeFiles\MLIRPythonSupport.dir\__\lib\Bindings\Python\IRCore.cpp.obj:(public: static class nanobind::object __cdecl mlir::python::PyOpView::buildGeneric(class std::basic_string_view<char, struct std::char_traits<char>>, class std::tuple<int, bool>, class nanobind::object, class nanobind::object, class std::optional<class nanobind::list>, class nanobind::list, class std::optional<class nanobind::dict>, class std::optional<class std::vector<class mlir::python::PyBlock *, class std::allocator<class mlir::python::PyBlock *>>>, class std::optional<int>, class mlir::python::PyLocation &, class nanobind::object const &))

lld-link: error: undefined symbol: public: __cdecl std::bad_cast::bad_cast(class std::bad_cast const &)
>>> referenced by tools\mlir\python\CMakeFiles\MLIRPythonSupport.dir\__\lib\Bindings\Python\IRCore.cpp.obj:(_CT??_R0?AVbad_cast at std@@@8??0bad_cast at std@@QEAA at AEBV01@@Z16)

lld-link: error: undefined symbol: public: virtual __cdecl std::bad_cast::~bad_cast(void)
>>> referenced by tools\mlir\python\CMakeFiles\MLIRPythonSupport.dir\__\lib\Bindings\Python\IRCore.cpp.obj:(_TI2?AVbad_cast at std@@)
```
</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/171775


More information about the Mlir-commits mailing list