[clang] [llvm] Add macro to suppress -Wunnecessary-virtual-specifier (PR #139614)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Wed May 21 11:05:17 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang,llvm` at step 3 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/19829
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 3 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-build.sh --jobs=' (failure)
...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm
+ build_step 'Building LLVM'
+ echo '@@@BUILD_STEP Building LLVM@@@'
+ ninja
@@@BUILD_STEP Building LLVM@@@
[1/4818] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ABIBreak.cpp.o
[2/4818] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/AutoConvert.cpp.o
[3/4818] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/COM.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/COM.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 -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Support -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-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 -O3 -DNDEBUG -UNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/COM.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/COM.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/COM.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support/COM.cpp
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/Support/COM.h:17,
from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support/COM.cpp:13:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/Support/Compiler.h:719:40: error: missing binary operator before token "("
719 | #if defined(__clang__) && __has_warning("-Wunnecessary-virtual-specifier")
| ^
[4/4818] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/BuryPointer.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/BuryPointer.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 -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Support -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-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 -O3 -DNDEBUG -UNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/BuryPointer.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/BuryPointer.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/BuryPointer.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support/BuryPointer.cpp
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/Support/BuryPointer.h:12,
from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support/BuryPointer.cpp:9:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/Support/Compiler.h:719:40: error: missing binary operator before token "("
719 | #if defined(__clang__) && __has_warning("-Wunnecessary-virtual-specifier")
| ^
[5/4818] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ConvertUTF.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/ConvertUTF.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 -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Support -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-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 -O3 -DNDEBUG -UNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/ConvertUTF.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/ConvertUTF.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/ConvertUTF.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support/ConvertUTF.cpp
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/Support/ConvertUTF.h:108,
from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support/ConvertUTF.cpp:64:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/Support/Compiler.h:719:40: error: missing binary operator before token "("
719 | #if defined(__clang__) && __has_warning("-Wunnecessary-virtual-specifier")
| ^
[6/4818] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/Demangle.cpp.o
[7/4818] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/DLangDemangle.cpp.o
[8/4818] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/AArch64BuildAttributes.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/AArch64BuildAttributes.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 -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Support -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-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 -O3 -DNDEBUG -UNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/AArch64BuildAttributes.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/AArch64BuildAttributes.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/AArch64BuildAttributes.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support/AArch64BuildAttributes.cpp
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:19,
from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/ADT/StringRef.h:13,
from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/Support/AArch64BuildAttributes.h:21,
from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support/AArch64BuildAttributes.cpp:9:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/Support/Compiler.h:719:40: error: missing binary operator before token "("
719 | #if defined(__clang__) && __has_warning("-Wunnecessary-virtual-specifier")
| ^
[9/4818] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ConvertEBCDIC.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/ConvertEBCDIC.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 -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Support -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-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 -O3 -DNDEBUG -UNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/ConvertEBCDIC.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/ConvertEBCDIC.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/ConvertEBCDIC.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Support/ConvertEBCDIC.cpp
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/ADT/SmallVector.h:18,
Step 6 (Configure LLVM Build) failure: Configure LLVM Build (failure)
...
+ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_VERBOSE_MAKEFILE=1 '-DLLVM_TARGETS_TO_BUILD=AMDGPU;X86' '-DLLVM_ENABLE_PROJECTS=clang;lld;clang-tools-extra' '-DLLVM_ENABLE_RUNTIMES=compiler-rt;libcxx;libcxxabi;libunwind' -DCLANG_DEFAULT_LINKER=lld -DLIBCXX_ENABLE_SHARED=OFF -DLIBCXX_ENABLE_STATIC=ON -DLIBCXX_INSTALL_LIBRARY=OFF -DLIBCXX_INSTALL_HEADERS=OFF -DLIBCXXABI_ENABLE_SHARED=OFF -DLIBCXXABI_ENABLE_STATIC=ON -DLIBCXXABI_INSTALL_STATIC_LIBRARY=OFF -DCMAKE_INSTALL_PREFIX=/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/install -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_Z3_SOLVER=OFF -DLLVM_ENABLE_ZLIB=ON '-DLLVM_LIT_ARGS=-v -vv' /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm
-- bolt project is disabled
-- clang project is enabled
-- clang-tools-extra project is enabled
-- compiler-rt project is disabled
-- cross-project-tests project is disabled
-- libc project is disabled
-- libclc project is disabled
-- lld project is enabled
-- lldb project is disabled
-- mlir project is disabled
-- openmp project is disabled
-- polly project is disabled
-- pstl project is disabled
-- flang project is disabled
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES)
-- LLVM host triple: x86_64-unknown-linux-gnu
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Ninja version: 1.10.1
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- LLVM default target triple: x86_64-unknown-linux-gnu
-- Building with -fPIC
-- Targeting AMDGPU
-- Targeting X86
-- LLD version: 21.0.0
-- Clang version: 21.0.0git
CMake Deprecation Warning at /home/botworker/bbot/clang-hip-vega20/llvm-project/clang/CMakeLists.txt:443 (message):
'CLANG_ENABLE_ARCMT' is deprecated as ARCMigrate has been removed from
Clang. Please use 'CLANG_ENABLE_OBJC_REWRITER' instead to enable or
disable the Objective-C rewriter.
-- Not building llvm-mt because libxml2 is not available
-- Registering ExampleIRTransforms as a pass plugin (static build: OFF)
-- Registering Bye as a pass plugin (static build: OFF)
-- Failed to find LLVM FileCheck
-- Google Benchmark version: v0.0.0, normalized to 0.0.0
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Performing Test HAVE_PTHREAD_AFFINITY -- success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm
+ build_step 'Building LLVM'
+ echo '@@@BUILD_STEP Building LLVM@@@'
+ ninja
```
</details>
https://github.com/llvm/llvm-project/pull/139614
More information about the cfe-commits
mailing list