Skip to content

test/python/dialects/transform_interpreter.py fails with PyMlirTransformOptions is non-copyable #90193

Open
@rengolin

Description

@rengolin

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions