[Mlir-commits] [mlir] [mlir] Silence -Wdangling-assignment-gsl in OperationSupport.h (PR #126140)

LLVM Continuous Integration llvmlistbot at llvm.org
Tue Feb 11 14:08:06 PST 2025


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/16752

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

```
Step 5 (compile-openmp) failure: build (failure)
...
10.270 [3843/32/3201] Linking CXX static library lib/libLLVMX86Desc.a
10.278 [3842/32/3202] Linking CXX static library lib/libLLVMX86Disassembler.a
10.317 [3841/32/3203] Linking CXX static library lib/libLLVMCore.a
10.364 [3840/32/3204] Linking CXX static library lib/libLLVMBitReader.a
10.386 [3839/32/3205] Linking CXX static library lib/libLLVMFrontendHLSL.a
10.417 [3838/32/3206] Linking CXX static library lib/libLLVMCFGuard.a
10.457 [3837/32/3207] Linking CXX static library lib/libLLVMAsmParser.a
10.479 [3836/32/3208] Linking CXX static library lib/libLLVMIRReader.a
11.524 [3835/32/3209] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
12.246 [3834/32/3210] Building CXX object tools/mlir/lib/Debug/CMakeFiles/obj.MLIRDebug.dir/ExecutionContext.cpp.o
FAILED: tools/mlir/lib/Debug/CMakeFiles/obj.MLIRDebug.dir/ExecutionContext.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/Debug -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Debug -Itools/mlir/include -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include -Iinclude -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/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 -Wno-deprecated-copy -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++1z -MD -MT tools/mlir/lib/Debug/CMakeFiles/obj.MLIRDebug.dir/ExecutionContext.cpp.o -MF tools/mlir/lib/Debug/CMakeFiles/obj.MLIRDebug.dir/ExecutionContext.cpp.o.d -o tools/mlir/lib/Debug/CMakeFiles/obj.MLIRDebug.dir/ExecutionContext.cpp.o -c /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Debug/ExecutionContext.cpp
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/Unit.h:12:0,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/Action.h:18,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/Debug/BreakpointManager.h:12,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/Debug/ExecutionContext.h:12,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Debug/ExecutionContext.cpp:9:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/OperationSupport.h:1000:40: error: missing binary operator before token "("
 #if defined(__clang__) && __has_warning("-Wdangling-assignment-gsl")
                                        ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/OperationSupport.h:1012:40: error: missing binary operator before token "("
 #if defined(__clang__) && __has_warning("-Wdangling-assignment-gsl")
                                        ^
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-copy’
12.282 [3834/31/3211] Building CXX object tools/mlir/lib/Debug/CMakeFiles/obj.MLIRDebug.dir/DebugCounter.cpp.o
FAILED: tools/mlir/lib/Debug/CMakeFiles/obj.MLIRDebug.dir/DebugCounter.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/Debug -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Debug -Itools/mlir/include -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include -Iinclude -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/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 -Wno-deprecated-copy -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++1z -MD -MT tools/mlir/lib/Debug/CMakeFiles/obj.MLIRDebug.dir/DebugCounter.cpp.o -MF tools/mlir/lib/Debug/CMakeFiles/obj.MLIRDebug.dir/DebugCounter.cpp.o.d -o tools/mlir/lib/Debug/CMakeFiles/obj.MLIRDebug.dir/DebugCounter.cpp.o -c /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Debug/DebugCounter.cpp
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/Unit.h:12:0,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/Action.h:18,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/Debug/Counter.h:12,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Debug/DebugCounter.cpp:9:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/OperationSupport.h:1000:40: error: missing binary operator before token "("
 #if defined(__clang__) && __has_warning("-Wdangling-assignment-gsl")
                                        ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/OperationSupport.h:1012:40: error: missing binary operator before token "("
 #if defined(__clang__) && __has_warning("-Wdangling-assignment-gsl")
                                        ^
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-copy’
12.443 [3834/30/3212] Building CXX object tools/mlir/lib/AsmParser/CMakeFiles/obj.MLIRAsmParser.dir/Lexer.cpp.o
FAILED: tools/mlir/lib/AsmParser/CMakeFiles/obj.MLIRAsmParser.dir/Lexer.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/AsmParser -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/AsmParser -Itools/mlir/include -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include -Iinclude -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/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 -Wno-deprecated-copy -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++1z -MD -MT tools/mlir/lib/AsmParser/CMakeFiles/obj.MLIRAsmParser.dir/Lexer.cpp.o -MF tools/mlir/lib/AsmParser/CMakeFiles/obj.MLIRAsmParser.dir/Lexer.cpp.o.d -o tools/mlir/lib/AsmParser/CMakeFiles/obj.MLIRAsmParser.dir/Lexer.cpp.o -c /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/AsmParser/Lexer.cpp
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/AsmState.h:18:0,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/AsmParser/AsmParser.h:16,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/AsmParser/Lexer.h:17,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/AsmParser/Lexer.cpp:13:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/OperationSupport.h:1000:40: error: missing binary operator before token "("
 #if defined(__clang__) && __has_warning("-Wdangling-assignment-gsl")
                                        ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/include/mlir/IR/OperationSupport.h:1012:40: error: missing binary operator before token "("

```

</details>

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


More information about the Mlir-commits mailing list