[Mlir-commits] [mlir] [MLIR] add C-API bindings for complex dialect (PR #173228)
LLVM Continuous Integration
llvmlistbot at llvm.org
Wed Dec 24 01:43:25 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-arm64-windows-msvc-testsuite` running on `linaro-armv8-windows-msvc-06` while building `mlir` at step 6 "build stage 1".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/222/builds/1396
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (build stage 1) failure: 'ninja' (failure)
...
c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\complex(1333,5): note: 'complex' has been explicitly marked deprecated here
1333 | _DEPRECATE_NONFLOATING_COMPLEX
| ^
c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\yvals_core.h(1413,7): note: expanded from macro '_DEPRECATE_NONFLOATING_COMPLEX'
1413 | [[deprecated("warning STL4037: " \
| ^
1 warning generated.
[7521/8258] Building RC object tools\mlir\tools\mlir-parser-fuzzer\bytecode\CMakeFiles\mlir-bytecode-parser-fuzzer.dir\C_\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\llvm\resources\windows_version_resource.rc.res
[7522/8258] Building CXX object tools\mlir\tools\mlir-parser-fuzzer\text\CMakeFiles\mlir-text-parser-fuzzer.dir\DummyParserFuzzer.cpp.obj
[7523/8258] Building CXX object tools\mlir\lib\CAPI\Dialect\CMakeFiles\obj.MLIRCAPIComplex.dir\Complex.cpp.obj
FAILED: [code=1] tools/mlir/lib/CAPI/Dialect/CMakeFiles/obj.MLIRCAPIComplex.dir/Complex.cpp.obj
C:\Users\tcwg\scoop\shims\ccache.exe C:\Users\tcwg\scoop\apps\llvm-arm64\current\bin\clang-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:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\stage1\tools\mlir\lib\CAPI\Dialect -IC:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\lib\CAPI\Dialect -IC:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\stage1\tools\mlir\include -IC:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\include -IC:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\stage1\include -IC:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\llvm\include /DWIN32 /D_WINDOWS /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4 -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw -Wundef -Werror=mismatched-tags /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\ -c -- C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\lib\CAPI\Dialect\Complex.cpp
In file included from C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\lib\CAPI\Dialect\Complex.cpp:12:
In file included from C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\include\mlir/CAPI/Registration.h:13:
In file included from C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\include\mlir/CAPI/IR.h:18:
In file included from C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\include\mlir/Bytecode/BytecodeWriter.h:16:
In file included from C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\include\mlir/IR/AsmState.h:18:
In file included from C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\include\mlir/IR/OperationSupport.h:19:
C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\include\mlir/IR/BuiltinAttributes.h(359,14): warning: 'complex' is deprecated: 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. [-Wdeprecated-declarations]
359 | return {APFloat(*smt, value.real()), APFloat(*smt, value.imag())};
| ^
c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\complex(1333,5): note: 'complex' has been explicitly marked deprecated here
1333 | _DEPRECATE_NONFLOATING_COMPLEX
| ^
c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\yvals_core.h(1413,7): note: expanded from macro '_DEPRECATE_NONFLOATING_COMPLEX'
1413 | [[deprecated("warning STL4037: " \
| ^
C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\lib\CAPI\Dialect\Complex.cpp(15,45): error: no member named 'complex' in namespace 'mlir'
15 | mlir::complex::ComplexDialect)
| ~~~~~~^
C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\include\mlir/CAPI/Registration.h(39,30): note: expanded from macro 'MLIR_DEFINE_CAPI_DIALECT_REGISTRATION'
39 | unwrap(registry)->insert<ClassName>(); \
| ^~~~~~~~~
C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\lib\CAPI\Dialect\Complex.cpp(15,45): error: no member named 'complex' in namespace 'mlir'
15 | mlir::complex::ComplexDialect)
| ~~~~~~^
C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\include\mlir/CAPI/Registration.h(42,51): note: expanded from macro 'MLIR_DEFINE_CAPI_DIALECT_REGISTRATION'
42 | return wrap(unwrap(context)->getOrLoadDialect<ClassName>()); \
| ^~~~~~~~~
C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\lib\CAPI\Dialect\Complex.cpp(15,45): error: no member named 'complex' in namespace 'mlir'
15 | mlir::complex::ComplexDialect)
| ~~~~~~^
C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\include\mlir/CAPI/Registration.h(45,17): note: expanded from macro 'MLIR_DEFINE_CAPI_DIALECT_REGISTRATION'
45 | return wrap(ClassName::getDialectNamespace()); \
| ^~~~~~~~~
C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\lib\CAPI\Dialect\Complex.cpp(18,14): error: use of undeclared identifier 'ComplexAttr'
18 | return isa<ComplexAttr>(unwrap(attr));
| ^~~~~~~~~~~
C:\Users\tcwg\llvm-worker\flang-arm64-win-msvc-ts\llvm\mlir\lib\CAPI\Dialect\Complex.cpp(24,7): error: use of undeclared identifier 'complex'
```
</details>
https://github.com/llvm/llvm-project/pull/173228
More information about the Mlir-commits
mailing list