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

LLVM Continuous Integration llvmlistbot at llvm.org
Sat Oct 5 12:55:37 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `mlir-nvidia-gcc7` running on `mlir-nvidia` while building `mlir` at step 5 "build-check-mlir-build-only".

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

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

```
Step 5 (build-check-mlir-build-only) failure: build (failure)
...
36.645 [45/10/4524] Linking CXX executable bin/lli
36.860 [45/9/4525] Linking CXX executable bin/toyc-ch5
36.917 [45/8/4526] Linking CXX executable bin/llc
37.174 [45/7/4527] Linking CXX executable tools/mlir/unittests/Target/LLVM/MLIRTargetLLVMTests
37.420 [45/6/4528] Linking CXX executable bin/mlir-translate
38.028 [45/5/4529] Linking CXX executable bin/mlir-cpu-runner
38.140 [45/4/4530] Linking CXX executable tools/mlir/unittests/ExecutionEngine/MLIRExecutionEngineTests
38.219 [45/3/4531] Linking CXX executable bin/mlir-query
39.264 [45/2/4532] Building CXX object tools/mlir/lib/Conversion/SPIRVToLLVM/CMakeFiles/obj.MLIRSPIRVToLLVM.dir/ConvertLaunchFuncToLLVMCalls.cpp.o
39.832 [45/1/4533] 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_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/g++-7 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/tools/mlir/lib/Conversion/SPIRVToLLVM -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/SPIRVToLLVM -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/include -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/llvm/include -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/include -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/tools/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 /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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’:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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);
                                         ^~~~~~~~~~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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,
              ^~~~~~~~~~~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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);
                                        ^~~~~~~~~~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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,
              ^~~~~~~~~~~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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’:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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);
                                         ^~~~~~~~~~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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,
              ^~~~~~~~~~~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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);
                                        ^~~~~~~~~~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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,
              ^~~~~~~~~~~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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’:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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);
                                         ^~~~~~~~~~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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,
              ^~~~~~~~~~~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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);
                                        ^~~~~~~~~~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/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