[Mlir-commits] [mlir] [mlir][SPIRV] Fix build error (PR #111264)

LLVM Continuous Integration llvmlistbot at llvm.org
Sat Oct 5 12:49:16 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `mlir` at step 5 "compile-openmp".

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

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

```
Step 5 (compile-openmp) failure: build (failure)
...
26.379 [932/32/6003] Building CXX object tools/llvm-xray/CMakeFiles/llvm-xray.dir/xray-extract.cpp.o
26.380 [931/32/6004] Building CXX object tools/llvm-xray/CMakeFiles/llvm-xray.dir/xray-converter.cpp.o
26.380 [930/32/6005] Building CXX object tools/llvm-xray/CMakeFiles/llvm-xray.dir/xray-fdr-dump.cpp.o
26.393 [929/32/6006] Building CXX object tools/llvm-xray/CMakeFiles/llvm-xray.dir/xray-graph-diff.cpp.o
26.398 [928/32/6007] Building CXX object tools/llvm-xray/CMakeFiles/llvm-xray.dir/xray-registry.cpp.o
26.400 [927/32/6008] Building CXX object tools/llvm-xray/CMakeFiles/llvm-xray.dir/xray-graph.cpp.o
26.401 [926/32/6009] Building CXX object tools/llvm-xray/CMakeFiles/llvm-xray.dir/xray-stacks.cpp.o
26.404 [925/32/6010] Building CXX object tools/llvm-yaml-parser-fuzzer/CMakeFiles/llvm-yaml-parser-fuzzer.dir/DummyYAMLParserFuzzer.cpp.o
26.413 [924/32/6011] Building CXX object tools/llvm-yaml-numeric-parser-fuzzer/CMakeFiles/llvm-yaml-numeric-parser-fuzzer.dir/yaml-numeric-parser-fuzzer.cpp.o
26.414 [923/32/6012] Building CXX object tools/mlir/lib/Conversion/SPIRVToLLVM/CMakeFiles/obj.MLIRSPIRVToLLVM.dir/SPIRVToLLVM.cpp.o
FAILED: tools/mlir/lib/Conversion/SPIRVToLLVM/CMakeFiles/obj.MLIRSPIRVToLLVM.dir/SPIRVToLLVM.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/mlir/lib/Conversion/SPIRVToLLVM -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM -Iinclude -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include -Itools/mlir/include -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-uninitialized -Wno-nonnull -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++1z -MD -MT tools/mlir/lib/Conversion/SPIRVToLLVM/CMakeFiles/obj.MLIRSPIRVToLLVM.dir/SPIRVToLLVM.cpp.o -MF tools/mlir/lib/Conversion/SPIRVToLLVM/CMakeFiles/obj.MLIRSPIRVToLLVM.dir/SPIRVToLLVM.cpp.o.d -o tools/mlir/lib/Conversion/SPIRVToLLVM/CMakeFiles/obj.MLIRSPIRVToLLVM.dir/SPIRVToLLVM.cpp.o -c /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp: In member function ‘virtual llvm::LogicalResult {anonymous}::BitFieldInsertPattern::matchAndRewrite(mlir::spirv::BitFieldInsertOp, mlir::OpConversionPattern<mlir::spirv::BitFieldInsertOp>::OpAdaptor, mlir::ConversionPatternRewriter&) const’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp:374:41: error: invalid initialization of reference of type ‘const mlir::LLVMTypeConverter&’ from expression of type ‘const mlir::TypeConverter’
                                         *getTypeConverter(), rewriter);
                                         ^~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp:188:14: note: in passing argument 5 of ‘mlir::Value processCountOrOffset(mlir::Location, mlir::Value, mlir::Type, mlir::Type, const mlir::LLVMTypeConverter&, mlir::ConversionPatternRewriter&)’
 static Value processCountOrOffset(Location loc, Value value, Type srcType,
              ^~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp:376:40: error: invalid initialization of reference of type ‘const mlir::LLVMTypeConverter&’ from expression of type ‘const mlir::TypeConverter’
                                        *getTypeConverter(), rewriter);
                                        ^~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp:188:14: note: in passing argument 5 of ‘mlir::Value processCountOrOffset(mlir::Location, mlir::Value, mlir::Type, mlir::Type, const mlir::LLVMTypeConverter&, mlir::ConversionPatternRewriter&)’
 static Value processCountOrOffset(Location loc, Value value, Type srcType,
              ^~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp: In member function ‘virtual llvm::LogicalResult {anonymous}::BitFieldSExtractPattern::matchAndRewrite(mlir::spirv::BitFieldSExtractOp, mlir::OpConversionPattern<mlir::spirv::BitFieldSExtractOp>::OpAdaptor, mlir::ConversionPatternRewriter&) const’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp:462:41: error: invalid initialization of reference of type ‘const mlir::LLVMTypeConverter&’ from expression of type ‘const mlir::TypeConverter’
                                         *getTypeConverter(), rewriter);
                                         ^~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp:188:14: note: in passing argument 5 of ‘mlir::Value processCountOrOffset(mlir::Location, mlir::Value, mlir::Type, mlir::Type, const mlir::LLVMTypeConverter&, mlir::ConversionPatternRewriter&)’
 static Value processCountOrOffset(Location loc, Value value, Type srcType,
              ^~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp:464:40: error: invalid initialization of reference of type ‘const mlir::LLVMTypeConverter&’ from expression of type ‘const mlir::TypeConverter’
                                        *getTypeConverter(), rewriter);
                                        ^~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp:188:14: note: in passing argument 5 of ‘mlir::Value processCountOrOffset(mlir::Location, mlir::Value, mlir::Type, mlir::Type, const mlir::LLVMTypeConverter&, mlir::ConversionPatternRewriter&)’
 static Value processCountOrOffset(Location loc, Value value, Type srcType,
              ^~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp: In member function ‘virtual llvm::LogicalResult {anonymous}::BitFieldUExtractPattern::matchAndRewrite(mlir::spirv::BitFieldUExtractOp, mlir::OpConversionPattern<mlir::spirv::BitFieldUExtractOp>::OpAdaptor, mlir::ConversionPatternRewriter&) const’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp:515:41: error: invalid initialization of reference of type ‘const mlir::LLVMTypeConverter&’ from expression of type ‘const mlir::TypeConverter’
                                         *getTypeConverter(), rewriter);
                                         ^~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp:188:14: note: in passing argument 5 of ‘mlir::Value processCountOrOffset(mlir::Location, mlir::Value, mlir::Type, mlir::Type, const mlir::LLVMTypeConverter&, mlir::ConversionPatternRewriter&)’
 static Value processCountOrOffset(Location loc, Value value, Type srcType,
              ^~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp:517:40: error: invalid initialization of reference of type ‘const mlir::LLVMTypeConverter&’ from expression of type ‘const mlir::TypeConverter’
                                        *getTypeConverter(), rewriter);
                                        ^~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp:188:14: note: in passing argument 5 of ‘mlir::Value processCountOrOffset(mlir::Location, mlir::Value, mlir::Type, mlir::Type, const mlir::LLVMTypeConverter&, mlir::ConversionPatternRewriter&)’

```

</details>

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


More information about the Mlir-commits mailing list