lipracer wrote: You need to add a dependency on UB dialect in cmake file like [this](https://github.com/llvm/llvm-project/blob/6960ace534c4021301dd5a9933ca06ba96edea23/mlir/lib/Dialect/Affine/IR/CMakeLists.txt#L23). https://github.com/llvm/llvm-project/pull/85901