<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/90193>90193</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            test/python/dialects/transform_interpreter.py fails with PyMlirTransformOptions is non-copyable
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          rengolin
      </td>
    </tr>
</table>

<pre>
    New check-out, new build, trunk as of today (`74a5e7784b`):
```
$ ninja check-mlir
 98% [87:88/88] 686.8/s, 0.127s Running the MLIR regression tests
FAIL: MLIR :: python/dialects/transform_interpreter.py (1 of 2328)
******************** TEST 'MLIR :: python/dialects/transform_interpreter.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3.10 /home/rengolin/devel/llvm/linalg-named-ops/mlir/test/python/dialects/transform_interpreter.py | /home/rengolin/devel/llvm/linalg-named-ops/build/bin/FileCheck /home/rengolin/devel/llvm/linalg-named-ops/mlir/test/python/dialects/transform_interpreter.py
# executed command: /usr/bin/python3.10 /home/rengolin/devel/llvm/linalg-named-ops/mlir/test/python/dialects/transform_interpreter.py
# .---command stderr------------
# | Traceback (most recent call last):
# |   File "/home/rengolin/devel/llvm/linalg-named-ops/mlir/test/python/dialects/transform_interpreter.py", line 4, in <module>
# |     from mlir.dialects.transform import interpreter as interp
# |   File "/home/rengolin/devel/llvm/linalg-named-ops/build/tools/mlir/python_packages/mlir_core/mlir/dialects/transform/interpreter/__init__.py", line 6, in <module>
# |     from ...._mlir_libs import _mlirTransformInterpreter as _cextTransformInterpreter
# | ImportError: return_value_policy = copy, but type (anonymous namespace)::PyMlirTransformOptions is non-copyable!
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/rengolin/devel/llvm/linalg-named-ops/build/bin/FileCheck /home/rengolin/devel/llvm/linalg-named-ops/mlir/test/python/dialects/transform_interpreter.py
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/rengolin/devel/llvm/linalg-named-ops/build/bin/FileCheck /home/rengolin/devel/llvm/linalg-named-ops/mlir/test/python/dialects/transform_interpreter.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
********************
Failed Tests (1):
  MLIR :: python/dialects/transform_interpreter.py
```

I only see this on my local Ubuntu install (AMD), not on Arch (Intel), not on Rocky (Intel/AMD).

@ftynse 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzcV19v4rgX_TTm5SpR4gQSHnhgoJEqzZ-f-us8Iye5gKeOHdlO23z71U1IgVF3t9uZHa0GIVpz7XvPOT52LsI5edCIKzb_wObbmej80diVRX0wSupZaep-9RmfoDpi9RCYzjO-AY1PUHZS1TTwttMPIByYPXhTix4Yz9kiylIxxyzL05ItIsaXLFmzaMuiNQ3H9zjkKWipv4lTjUZJO0ZgmTM-Bzb_kGcsWec540Wes_kWFvkipJEjAFEY88zBXae11AfwR4RPH2_vwOLBonPSaPDovBuTFuvbjyxZj1MIU7KGtvdHoxkvaikUVt4xXngrtNsb2-yk9mhbix5t2A7sYuLKE54TrROJ97_h_ub_98B49l5IjGdAtG628CM4RiY3z9LDxtRIKPiJ3fC5MU0jdA1fOt92nnRwvh4ccd7bIJj0SODu62fKITwoqRHiKVJ0zjJelJLojTyTMI6A8eJoGmS8mOxH9PERFeOFUo8N_ZFaqEOgRYN1YFpSZfALL2iLX_K9dSuzzXurnux_YlFIhRty768ncdYbn7HqPNZQjRtF4v-H1D4DDYMgOGEE52u0Nrh4nefR9txbUWEpBmXzxjgPFivUHiqhFCjhruw3rQKgHQHG-a-nSTU3o-VT-k9qYMmmMXWnkCU33wMF2FvTABUMp_ThS3KQTWush4sadNWOw5_MebK0N0ZdaDCS37WiehAHnAK7ylg8T3pNGMaLC9iMF7ud1NLvdt-ptHi7SmEYhruhvJKlm8QZvrmfyt5eS7Wr8Nm_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