<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/116966>116966</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
mlir/LinalgOps.cpp fails to build with `error: could not convert 'indexingMaps' from 'SmallVector<[...],3>' to 'SmallVector<[...],6>'`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
build-problem,
mlir
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
Recent regression on linux bookworm (at least) amd64 & arm64
```
FAILED: tools/mlir/lib/Dialect/Linalg/IR/CMakeFiles/obj.MLIRLinalgDialect.dir/LinalgOps.cpp.o
/usr/bin/g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/build-llvm/tools/mlir/lib/Dialect/Linalg/IR -I/build/source/mlir/lib/Dialect/Linalg/IR -I/build/source/build-llvm/include -I/build/source/llvm/include -I/build/source/mlir/include -I/build/source/build-llvm/tools/mlir/include -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fdebug-prefix-map=/build/source/build-llvm=../ -fdebug-prefix-map=/build/source/= -no-canonical-prefixes -ffile-prefix-map=/build/source/build-llvm=../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -Wundef -Wno-unused-but-set-parameter -O3 -DNDEBUG -fno-exceptions -funwind-tables -std=c++17 -MD -MT tools/mlir/lib/Dialect/Linalg/IR/CMakeFiles/obj.MLIRLinalgDialect.dir/LinalgOps.cpp.o -MF tools/mlir/lib/Dialect/Linalg/IR/CMakeFiles/obj.MLIRLinalgDialect.dir/LinalgOps.cpp.o.d -o tools/mlir/lib/Dialect/Linalg/IR/CMakeFiles/obj.MLIRLinalgDialect.dir/LinalgOps.cpp.o -c /build/source/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
/build/source/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp: In static member function 'static llvm::SmallVector<mlir::AffineMap> mlir::linalg::MatmulOp::getDefaultIndexingMaps(mlir::MLIRContext*)':
/build/source/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:3468:10: error: could not convert 'indexingMaps' from 'SmallVector<[...],3>' to 'SmallVector<[...],6>'
3468 | return indexingMaps;
| ^~~~~~~~~~~~
| |
| SmallVector<[...],3>
At global scope:
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEVklv27oW_jX0hqAhUx7ihReKFRUG4vjBSZ_xVgFFHslsKVKPg5N0cX_7BSU1rnvRNCiKXiFIwjN9Z_g4MOdkrQFWaHaNZvmIBX80duVe1AmctzAqjXhZ7YGD9thCbcE5aTQ2GiupwzMujfn8ZGyDEb1iHitgziO6xKwR8ylGdI6ZbeZTlOQoydA8GX66ZZFtbm9ylGbYG6McokWjpEW0ULJEtMglU8A9osWt1EzViBabPaLFess-QyEVRA9Tfhpvbzf73mRwGYsuTC_btW7M23ZshhxoEVzUllIjWtSIXiN6jUn--OHu4-P97uN-fRNXj_cP-fpxvbu7f8juHh632Xq_uz8rit1-m_1TfLvZbs7STYQJUglEC2eC5fBVQJQ6NYgW7y_8B9F-2fEiDam5CgJ-YPouoyGRt43eqv3Vs3Ke8c-ktcYD98YS563RNSaHytiGeUwOYK2xKM17AXHAg5X-BZODNiTo4EAQb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