[Mlir-commits] [mlir] [MLIR] add C-API bindings for complex dialect (PR #173228)
LLVM Continuous Integration
llvmlistbot at llvm.org
Wed Dec 24 01:31:26 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-x86_64-windows` running on `minipc-ryzen-win` while building `mlir` at step 6 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/166/builds/5350
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (build-unified-tree) failure: build (failure)
...
..\llvm-project\mlir\include\mlir/IR/BuiltinAttributes.h(359): warning C4996: 'std::complex<llvm::APFloat>::complex': warning STL4037: The effect of instantiating the template std::complex for any type other than float, double, or long double is unspecified. You can define _SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING to suppress this warning.
222.042 [605/6/6728] Building CXX object tools\mlir\examples\transform-opt\CMakeFiles\mlir-transform-opt.dir\mlir-transform-opt.cpp.obj
..\llvm-project\mlir\include\mlir/IR/BuiltinAttributes.h(359): warning C4996: 'std::complex<llvm::APFloat>::complex': warning STL4037: The effect of instantiating the template std::complex for any type other than float, double, or long double is unspecified. You can define _SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING to suppress this warning.
222.082 [604/6/6729] Building CXX object tools\mlir\examples\minimal-opt\CMakeFiles\mlir-cat.dir\mlir-cat.cpp.obj
..\llvm-project\mlir\include\mlir/IR/BuiltinAttributes.h(359): warning C4996: 'std::complex<llvm::APFloat>::complex': warning STL4037: The effect of instantiating the template std::complex for any type other than float, double, or long double is unspecified. You can define _SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING to suppress this warning.
222.135 [601/6/6732] Building CXX object tools\mlir\examples\minimal-opt\CMakeFiles\mlir-minimal-opt.dir\mlir-minimal-opt.cpp.obj
..\llvm-project\mlir\include\mlir/IR/BuiltinAttributes.h(359): warning C4996: 'std::complex<llvm::APFloat>::complex': warning STL4037: The effect of instantiating the template std::complex for any type other than float, double, or long double is unspecified. You can define _SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING to suppress this warning.
222.218 [599/6/6734] Building CXX object tools\mlir\examples\minimal-opt\CMakeFiles\mlir-minimal-opt-canonicalize.dir\mlir-minimal-opt-canonicalize.cpp.obj
..\llvm-project\mlir\include\mlir/IR/BuiltinAttributes.h(359): warning C4996: 'std::complex<llvm::APFloat>::complex': warning STL4037: The effect of instantiating the template std::complex for any type other than float, double, or long double is unspecified. You can define _SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING to suppress this warning.
224.493 [531/6/6802] Building CXX object tools\mlir\lib\CAPI\Dialect\CMakeFiles\obj.MLIRCAPIComplex.dir\Complex.cpp.obj
FAILED: [code=2] tools/mlir/lib/CAPI/Dialect/CMakeFiles/obj.MLIRCAPIComplex.dir/Complex.cpp.obj
ccache C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\cl.exe /nologo /TP -DGTEST_HAS_RTTI=0 -DMLIR_CAPI_BUILDING_LIBRARY=1 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\buildbot\flang-x86_64-windows\build\tools\mlir\lib\CAPI\Dialect -IC:\buildbot\flang-x86_64-windows\llvm-project\mlir\lib\CAPI\Dialect -IC:\buildbot\flang-x86_64-windows\build\tools\mlir\include -IC:\buildbot\flang-x86_64-windows\llvm-project\mlir\include -IC:\buildbot\flang-x86_64-windows\build\include -IC:\buildbot\flang-x86_64-windows\llvm-project\llvm\include /DWIN32 /D_WINDOWS /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw /O2 /Ob2 -std:c++17 -MD /EHs-c- /GR- -UNDEBUG /showIncludes /Fotools\mlir\lib\CAPI\Dialect\CMakeFiles\obj.MLIRCAPIComplex.dir\Complex.cpp.obj /Fdtools\mlir\lib\CAPI\Dialect\CMakeFiles\obj.MLIRCAPIComplex.dir\ /FS -c C:\buildbot\flang-x86_64-windows\llvm-project\mlir\lib\CAPI\Dialect\Complex.cpp
..\llvm-project\mlir\include\mlir/IR/BuiltinAttributes.h(359): warning C4996: 'std::complex<llvm::APFloat>::complex': warning STL4037: The effect of instantiating the template std::complex for any type other than float, double, or long double is unspecified. You can define _SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING to suppress this warning.
..\llvm-project\mlir\lib\CAPI\Dialect\Complex.cpp(14): error C3083: 'complex': the symbol to the left of a '::' must be a type
..\llvm-project\mlir\lib\CAPI\Dialect\Complex.cpp(14): error C2039: 'ComplexDialect': is not a member of 'mlir'
tools\mlir\include\mlir/IR/BuiltinOps.h.inc(498): note: see declaration of 'mlir'
..\llvm-project\mlir\lib\CAPI\Dialect\Complex.cpp(14): error C2065: 'ComplexDialect': undeclared identifier
..\llvm-project\mlir\lib\CAPI\Dialect\Complex.cpp(14): error C2672: 'mlir::DialectRegistry::insert': no matching overloaded function found
..\llvm-project\mlir\include\mlir/IR/DialectRegistry.h(164): note: could be 'void mlir::DialectRegistry::insert(void)'
..\llvm-project\mlir\lib\CAPI\Dialect\Complex.cpp(14): note: 'mlir::DialectRegistry::insert': invalid template argument for 'ConcreteDialect', type expected
..\llvm-project\mlir\include\mlir/IR/DialectRegistry.h(152): note: or 'void mlir::DialectRegistry::insert(void)'
..\llvm-project\mlir\lib\CAPI\Dialect\Complex.cpp(14): note: 'mlir::DialectRegistry::insert': invalid template argument for 'ConcreteDialect', type expected
..\llvm-project\mlir\lib\CAPI\Dialect\Complex.cpp(14): error C2672: 'mlir::MLIRContext::getOrLoadDialect': no matching overloaded function found
..\llvm-project\mlir\include\mlir/IR/MLIRContext.h(100): note: could be 'T *mlir::MLIRContext::getOrLoadDialect(void)'
..\llvm-project\mlir\lib\CAPI\Dialect\Complex.cpp(14): note: 'mlir::MLIRContext::getOrLoadDialect': invalid template argument for 'T', type expected
..\llvm-project\mlir\lib\CAPI\Dialect\Complex.cpp(14): error C3083: 'ComplexDialect': the symbol to the left of a '::' must be a type
..\llvm-project\mlir\lib\CAPI\Dialect\Complex.cpp(14): error C2039: 'getDialectNamespace': is not a member of 'mlir'
tools\mlir\include\mlir/IR/BuiltinOps.h.inc(498): note: see declaration of 'mlir'
..\llvm-project\mlir\lib\CAPI\Dialect\Complex.cpp(14): error C3861: 'getDialectNamespace': identifier not found
..\llvm-project\mlir\lib\CAPI\Dialect\Complex.cpp(14): error C2668: 'wrap': ambiguous call to overloaded function
..\llvm-project\mlir\include\mlir/CAPI/Support.h(50): note: could be 'MlirTypeIDAllocator wrap(mlir::TypeIDAllocator *)'
..\llvm-project\mlir\include\mlir/CAPI/Support.h(49): note: or 'MlirTypeID wrap(mlir::TypeID)'
..\llvm-project\mlir\include\mlir/CAPI/Support.h(48): note: or 'MlirLlvmThreadPool wrap(llvm::ThreadPoolInterface *)'
..\llvm-project\mlir\include\mlir/CAPI/Support.h(38): note: or 'MlirLogicalResult wrap(llvm::LogicalResult)'
..\llvm-project\mlir\include\mlir/CAPI/Support.h(29): note: or 'MlirStringRef wrap(llvm::StringRef)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(41): note: or 'MlirValue wrap(mlir::Value)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(40): note: or 'MlirType wrap(mlir::Type)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(39): note: or 'MlirModule wrap(mlir::ModuleOp)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(38): note: or 'MlirLocation wrap(mlir::Location)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(37): note: or 'MlirIdentifier wrap(mlir::StringAttr)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(36): note: or 'MlirAttribute wrap(mlir::Attribute)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(34): note: or 'MlirSymbolTable wrap(mlir::SymbolTable *)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(33): note: or 'MlirRegion wrap(mlir::Region *)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(32): note: or 'MlirOpPrintingFlags wrap(mlir::OpPrintingFlags *)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(31): note: or 'MlirOpOperand wrap(mlir::OpOperand *)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(30): note: or 'MlirBlock wrap(mlir::Block *)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(29): note: or 'MlirOperation wrap(mlir::Operation *)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(28): note: or 'MlirDialectRegistry wrap(mlir::DialectRegistry *)'
..\llvm-project\mlir\include\mlir/CAPI/IR.h(27): note: or 'MlirDialect wrap(mlir::Dialect *)'
```
</details>
https://github.com/llvm/llvm-project/pull/173228
More information about the Mlir-commits
mailing list