Closed oroppas closed 1 year ago
To set expectations a bit:
-DIREE_BUILD_PYTHON_BINDINGS=ON
has been broken with different error messages on my development machine for months-yearsPersonally, I use the Python bindings through Colab when on Windows and test changes to them from Linux.
We'd be happy to improve the situation there, it's just a matter of investing proportional to the demand. So thanks for the issue report - that's one more vote for fixing things and keeping them working :). Applying that header change from the upstream MLIR Python bindings seems reasonable to me. We should also be able to add Windows CI builds somewhat soon - we're just finishing up migrating from one CI provider (Kokoro) to another (GitHub Actions).
I think this particular issue was fixed, and we now have some continuous builds running on Windows with the Python bindings enabled 🥳
That configuration still isn't as well supported as Linux, and we aren't publishing official Python packages for Windows yet, but we're getting closer to that.
What happened?
The compilation of both
compiler\src\iree\compiler\API\python\IREECTransforms.cpp
andllvm-external-projects\iree-dialects\python\IREEDialectsModule.cpp
failed:IREECTransforms.cpp
IREEDialectsModule.cpp
Steps to reproduce your issue
Build with
-DIREE_BUILD_PYTHON_BINDINGS=ON
on Windows with VC++ 19.33.31629What component(s) does this issue relate to?
Python
Version information
No response
Additional context
According to the error message
and https://reviews.llvm.org/D125284?id=428267, simply deleting
#include "mlir-c/Bindings/Python/Interop.h"
in bothcompiler\src\iree\compiler\API\python\IREECTransforms.cpp
andllvm-external-projects\iree-dialects\python\IREEDialectsModule.cpp
fixes the compilation issue.