[clang] [clang-tools-extra] [lldb] [llvm] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 15 12:48:33 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `hip-third-party-libs-test` running on `ext_buildbot_hw_05-hip-docker` while building `clang-tools-extra,clang,lldb,llvm` at step 4 "annotate".

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

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

```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py --jobs=32' (failure)
...
[2975/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InstructionPrecedenceTracking.cpp.o
[2976/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InteractiveModelRunner.cpp.o
[2977/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/KernelInfo.cpp.o
[2978/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LastRunTrackingAnalysis.cpp.o
[2979/7940] Building CXX object tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/MacroInfo.cpp.o
[2980/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InstructionSimplify.cpp.o
[2981/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyBranchProbabilityInfo.cpp.o
[2982/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyBlockFrequencyInfo.cpp.o
[2983/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyCallGraph.cpp.o
[2984/7940] Building CXX object tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPExpressions.cpp.o
FAILED: tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPExpressions.cpp.o 
ccache /usr/bin/c++ -DCLANG_EXPORTS -DEXPERIMENTAL_KEY_INSTRUCTIONS -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/hip-third-party-libs-test/build/tools/clang/lib/Lex -I/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex -I/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include -I/home/botworker/bbot/hip-third-party-libs-test/build/tools/clang/include -I/home/botworker/bbot/hip-third-party-libs-test/build/include -I/home/botworker/bbot/hip-third-party-libs-test/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 -fno-common -Woverloaded-virtual -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPExpressions.cpp.o -MF tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPExpressions.cpp.o.d -o tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPExpressions.cpp.o -c /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex/PPExpressions.cpp
In file included from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/TargetInfo.h:21,
                 from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex/PPExpressions.cpp:21:
/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/CodeGenOptions.h:60:9: error: declaration of ‘using CFBranchLabelSchemeKind = enum class clang::CFBranchLabelSchemeKind’ changes meaning of ‘CFBranchLabelSchemeKind’ [-fpermissive]
   60 |   using CFBranchLabelSchemeKind = CFBranchLabelSchemeKind;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/TargetInfo.h:20,
                 from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex/PPExpressions.cpp:21:
/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/CFProtectionOptions.h:20:12: note: ‘CFBranchLabelSchemeKind’ declared here as ‘enum class clang::CFBranchLabelSchemeKind’
   20 | enum class CFBranchLabelSchemeKind {
      |            ^~~~~~~~~~~~~~~~~~~~~~~
[2985/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyValueInfo.cpp.o
[2986/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Lint.cpp.o
[2987/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Local.cpp.o
[2988/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Loads.cpp.o
[2989/7940] Building CXX object tools/clang/lib/Edit/CMakeFiles/obj.clangEdit.dir/Commit.cpp.o
[2990/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopNestAnalysis.cpp.o
[2991/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopAnalysisManager.cpp.o
[2992/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopCacheAnalysis.cpp.o
[2993/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopAccessAnalysis.cpp.o
[2994/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopUnrollAnalyzer.cpp.o
[2995/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopInfo.cpp.o
[2996/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopPass.cpp.o
[2997/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemDerefPrinter.cpp.o
[2998/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryBuiltins.cpp.o
[2999/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MLInlineAdvisor.cpp.o
[3000/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryLocation.cpp.o
[3001/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryProfileInfo.cpp.o
[3002/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryDependenceAnalysis.cpp.o
[3003/7940] Building CXX object tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o
FAILED: tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o 
ccache /usr/bin/c++ -DCLANG_EXPORTS -DEXPERIMENTAL_KEY_INSTRUCTIONS -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/hip-third-party-libs-test/build/tools/clang/lib/Lex -I/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex -I/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include -I/home/botworker/bbot/hip-third-party-libs-test/build/tools/clang/include -I/home/botworker/bbot/hip-third-party-libs-test/build/include -I/home/botworker/bbot/hip-third-party-libs-test/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 -fno-common -Woverloaded-virtual -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o -MF tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o.d -o tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o -c /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex/LiteralSupport.cpp
In file included from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/TargetInfo.h:21,
                 from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex/LiteralSupport.cpp:18:
/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/CodeGenOptions.h:60:9: error: declaration of ‘using CFBranchLabelSchemeKind = enum class clang::CFBranchLabelSchemeKind’ changes meaning of ‘CFBranchLabelSchemeKind’ [-fpermissive]
   60 |   using CFBranchLabelSchemeKind = CFBranchLabelSchemeKind;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/LangOptions.h:17,
Step 7 (build cmake config) failure: build cmake config (failure)
...
[2975/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InstructionPrecedenceTracking.cpp.o
[2976/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InteractiveModelRunner.cpp.o
[2977/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/KernelInfo.cpp.o
[2978/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LastRunTrackingAnalysis.cpp.o
[2979/7940] Building CXX object tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/MacroInfo.cpp.o
[2980/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InstructionSimplify.cpp.o
[2981/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyBranchProbabilityInfo.cpp.o
[2982/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyBlockFrequencyInfo.cpp.o
[2983/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyCallGraph.cpp.o
[2984/7940] Building CXX object tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPExpressions.cpp.o
FAILED: tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPExpressions.cpp.o 
ccache /usr/bin/c++ -DCLANG_EXPORTS -DEXPERIMENTAL_KEY_INSTRUCTIONS -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/hip-third-party-libs-test/build/tools/clang/lib/Lex -I/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex -I/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include -I/home/botworker/bbot/hip-third-party-libs-test/build/tools/clang/include -I/home/botworker/bbot/hip-third-party-libs-test/build/include -I/home/botworker/bbot/hip-third-party-libs-test/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 -fno-common -Woverloaded-virtual -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPExpressions.cpp.o -MF tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPExpressions.cpp.o.d -o tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPExpressions.cpp.o -c /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex/PPExpressions.cpp
In file included from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/TargetInfo.h:21,
                 from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex/PPExpressions.cpp:21:
/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/CodeGenOptions.h:60:9: error: declaration of ‘using CFBranchLabelSchemeKind = enum class clang::CFBranchLabelSchemeKind’ changes meaning of ‘CFBranchLabelSchemeKind’ [-fpermissive]
   60 |   using CFBranchLabelSchemeKind = CFBranchLabelSchemeKind;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/TargetInfo.h:20,
                 from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex/PPExpressions.cpp:21:
/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/CFProtectionOptions.h:20:12: note: ‘CFBranchLabelSchemeKind’ declared here as ‘enum class clang::CFBranchLabelSchemeKind’
   20 | enum class CFBranchLabelSchemeKind {
      |            ^~~~~~~~~~~~~~~~~~~~~~~
[2985/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyValueInfo.cpp.o
[2986/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Lint.cpp.o
[2987/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Local.cpp.o
[2988/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Loads.cpp.o
[2989/7940] Building CXX object tools/clang/lib/Edit/CMakeFiles/obj.clangEdit.dir/Commit.cpp.o
[2990/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopNestAnalysis.cpp.o
[2991/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopAnalysisManager.cpp.o
[2992/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopCacheAnalysis.cpp.o
[2993/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopAccessAnalysis.cpp.o
[2994/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopUnrollAnalyzer.cpp.o
[2995/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopInfo.cpp.o
[2996/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopPass.cpp.o
[2997/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemDerefPrinter.cpp.o
[2998/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryBuiltins.cpp.o
[2999/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MLInlineAdvisor.cpp.o
[3000/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryLocation.cpp.o
[3001/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryProfileInfo.cpp.o
[3002/7940] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryDependenceAnalysis.cpp.o
[3003/7940] Building CXX object tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o
FAILED: tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o 
ccache /usr/bin/c++ -DCLANG_EXPORTS -DEXPERIMENTAL_KEY_INSTRUCTIONS -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/hip-third-party-libs-test/build/tools/clang/lib/Lex -I/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex -I/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include -I/home/botworker/bbot/hip-third-party-libs-test/build/tools/clang/include -I/home/botworker/bbot/hip-third-party-libs-test/build/include -I/home/botworker/bbot/hip-third-party-libs-test/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 -fno-common -Woverloaded-virtual -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o -MF tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o.d -o tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o -c /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex/LiteralSupport.cpp
In file included from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/TargetInfo.h:21,
                 from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/lib/Lex/LiteralSupport.cpp:18:
/home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/CodeGenOptions.h:60:9: error: declaration of ‘using CFBranchLabelSchemeKind = enum class clang::CFBranchLabelSchemeKind’ changes meaning of ‘CFBranchLabelSchemeKind’ [-fpermissive]
   60 |   using CFBranchLabelSchemeKind = CFBranchLabelSchemeKind;
      |         ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/botworker/bbot/hip-third-party-libs-test/llvm-project/clang/include/clang/Basic/LangOptions.h:17,

```

</details>

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


More information about the llvm-commits mailing list