[Mlir-commits] [llvm] [mlir] [MLIR][Python] reland (narrower) type stub generation (PR #157930)

Bart Chrzaszcz llvmlistbot at llvm.org
Mon Sep 22 05:23:26 PDT 2025


bartchr808 wrote:

Hey Maksim! This PR broke the bazel build of MLIR. I'm looking into fixing it, but I'm a bit confused what this CL is doing with cmake (I'm not familiar with it), and how to make similar changes for bazel. Here is the current failure:

https://buildkite.com/llvm-project/upstream-bazel/builds/151309/steps/canvas?sid=01996873-fa1c-4b3b-bbc7-68310175ce67

The `missing input file` are easy enough, but the 

```
/llvm-project/mlir/lib/Bindings/Python/IRModule.h:83:12: error: no viable conversion from returned value of type 'typename std::remove_reference<object &>::type' (aka 'nanobind::object') to function return type 'nanobind::typed<nanobind::object, PyOperation>'
   83 |     return stolen;
      |            ^~~~~~
```

I'm not super sure about. I have dealt with nanobind before, but unsure how it's being used here and how bazel build files need to updated. 

So any tips on how I could go about fixing it would be appreciated! 

https://github.com/llvm/llvm-project/pull/157930


More information about the Mlir-commits mailing list