[Mlir-commits] [mlir] [MLIR] add C-API bindings for complex dialect (PR #173228)

LLVM Continuous Integration llvmlistbot at llvm.org
Wed Dec 24 01:54:16 PST 2025


Sergio =?utf-8?q?Sánchez_Ramírez?=,
Sergio =?utf-8?q?Sánchez_Ramírez?=,
Sergio =?utf-8?q?Sánchez_Ramírez?=,
Sergio =?utf-8?q?Sánchez_Ramírez?=,
Sergio =?utf-8?q?Sánchez_Ramírez?=,
Sergio =?utf-8?q?Sánchez_Ramírez?=,
Sergio =?utf-8?q?Sánchez_Ramírez?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/173228 at github.com>


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `flang-aarch64-latest-gcc` running on `linaro-flang-aarch64-latest-gcc` while building `mlir` at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/130/builds/16857

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (build-unified-tree) failure: build (failure)
...
105.957 [2998/18/4853] Linking CXX shared library lib/libMLIRTransformSMTExtension.so.22.0git
105.960 [2997/18/4854] Creating library symlink lib/libMLIROpenACCUtils.so
105.965 [2996/18/4855] Creating library symlink lib/libMLIRSPIRVUtils.so
105.973 [2995/18/4856] Creating library symlink lib/libMLIRTransformLoopExtension.so
105.976 [2994/18/4857] Creating library symlink lib/libMLIRTransformPDLExtension.so
105.977 [2993/18/4858] Creating library symlink lib/libMLIRVectorUtils.so
105.980 [2992/18/4859] Creating library symlink lib/libMLIRTransformSMTExtension.so
106.002 [2992/17/4860] Linking CXX shared library lib/libMLIRTransformDialectTransforms.so.22.0git
106.014 [2992/16/4861] Linking CXX shared library lib/libMLIRArithToAPFloat.so.22.0git
106.024 [2992/15/4862] Building CXX object tools/mlir/lib/CAPI/Dialect/CMakeFiles/obj.MLIRCAPIComplex.dir/Complex.cpp.o
FAILED: tools/mlir/lib/CAPI/Dialect/CMakeFiles/obj.MLIRCAPIComplex.dir/Complex.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -DMLIR_CAPI_BUILDING_LIBRARY=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/tools/mlir/lib/CAPI/Dialect -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/mlir/lib/CAPI/Dialect -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/tools/mlir/include -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/mlir/include -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -O3 -DNDEBUG -std=c++17 -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/mlir/lib/CAPI/Dialect/CMakeFiles/obj.MLIRCAPIComplex.dir/Complex.cpp.o -MF tools/mlir/lib/CAPI/Dialect/CMakeFiles/obj.MLIRCAPIComplex.dir/Complex.cpp.o.d -o tools/mlir/lib/CAPI/Dialect/CMakeFiles/obj.MLIRCAPIComplex.dir/Complex.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/mlir/lib/CAPI/Dialect/Complex.cpp
In file included from ../llvm-project/mlir/lib/CAPI/Dialect/Complex.cpp:12:
../llvm-project/mlir/lib/CAPI/Dialect/Complex.cpp: In function ‘void mlirDialectRegistryInsertComplexDialect(MlirDialectRegistry)’:
../llvm-project/mlir/lib/CAPI/Dialect/Complex.cpp:15:45: error: ‘complex’ is not a member of ‘mlir’; did you mean ‘std::complex’?
   15 |                                       mlir::complex::ComplexDialect)
      |                                             ^~~~~~~
../llvm-project/mlir/include/mlir/CAPI/Registration.h:39:30: note: in definition of macro ‘MLIR_DEFINE_CAPI_DIALECT_REGISTRATION’
   39 |     unwrap(registry)->insert<ClassName>();                                     \
      |                              ^~~~~~~~~
In file included from ../llvm-project/mlir/include/mlir/IR/BuiltinAttributeInterfaces.h:17,
                 from ../llvm-project/mlir/include/mlir/IR/BuiltinAttributes.h:12,
                 from ../llvm-project/mlir/include/mlir/IR/OperationSupport.h:19,
                 from ../llvm-project/mlir/include/mlir/IR/AsmState.h:18,
                 from ../llvm-project/mlir/include/mlir/Bytecode/BytecodeWriter.h:16,
                 from ../llvm-project/mlir/include/mlir/CAPI/IR.h:18,
                 from ../llvm-project/mlir/include/mlir/CAPI/Registration.h:13:
/usr/include/c++/14/complex:72:32: note: ‘std::complex’ declared here
   72 |   template<typename _Tp> class complex;
      |                                ^~~~~~~
../llvm-project/mlir/include/mlir/CAPI/Registration.h:39:23: error: parse error in template argument list
   39 |     unwrap(registry)->insert<ClassName>();                                     \
      |                       ^~~~~~~~~~~~~~~~~
../llvm-project/mlir/lib/CAPI/Dialect/Complex.cpp:14:1: note: in expansion of macro ‘MLIR_DEFINE_CAPI_DIALECT_REGISTRATION’
   14 | MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(Complex, complex,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../llvm-project/mlir/include/mlir/CAPI/Registration.h:39:40: error: no matching function for call to ‘mlir::DialectRegistry::insert<<expression error> >()’
   39 |     unwrap(registry)->insert<ClassName>();                                     \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
../llvm-project/mlir/lib/CAPI/Dialect/Complex.cpp:14:1: note: in expansion of macro ‘MLIR_DEFINE_CAPI_DIALECT_REGISTRATION’
   14 | MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(Complex, complex,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../llvm-project/mlir/include/mlir/IR/StorageUniquerSupport.h:17,
                 from ../llvm-project/mlir/include/mlir/IR/AttributeSupport.h:17,
                 from ../llvm-project/mlir/include/mlir/IR/Attributes.h:12,
                 from ../llvm-project/mlir/include/mlir/IR/OperationSupport.h:17:
../llvm-project/mlir/include/mlir/IR/DialectRegistry.h:152:8: note: candidate: ‘template<class ConcreteDialect> void mlir::DialectRegistry::insert()’
  152 |   void insert() {
      |        ^~~~~~

```

</details>

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


More information about the Mlir-commits mailing list