[clang] [Clang] Improve EmitClangAttrSpellingListIndex (PR #114899)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 7 13:05:31 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-ve-ninja` running on `hpce-ve-main` while building `clang` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/12/builds/9158
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/ve-linux.py ...' (failure)
...
[794/4055] Building ObjcopyOpts.inc...
[795/4055] Building Opts.inc...
[796/4055] Building Opts.inc...
[797/4055] Building Opts.inc...
[798/4055] Building WindresOpts.inc...
[799/4055] Building InstallNameToolOpts.inc...
[800/4055] Building BitcodeStripOpts.inc...
[801/4055] Building StripOpts.inc...
[802/4055] Building CXX object tools/llvm-mt/CMakeFiles/llvm-mt.dir/llvm-mt-driver.cpp.o
[803/4055] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o
FAILED: tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o
/usr/bin/ccache /home/buildbot/install/bin/clang++ -DCLANG_EXPORTS -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/utils/TableGen -I/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/utils/TableGen -I/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include -I/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/include -I/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/include -I/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include -O2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O2 -g -DNDEBUG -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o -MF tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o.d -o tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o -c /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/utils/TableGen/ClangAttrEmitter.cpp
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/utils/TableGen/ClangAttrEmitter.cpp:3869:51: error: reference to local binding 'FS' declared in enclosing function 'clang::EmitClangAttrSpellingListIndex'
[&](StringRef N) { return N.size() == FS.name().size(); });
^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/utils/TableGen/ClangAttrEmitter.cpp:3863:28: note: 'FS' declared here
for (const auto &[Idx, FS] : enumerate(Spellings)) {
^
1 error generated.
[804/4055] Building CXX object tools/llvm-mt/CMakeFiles/llvm-mt.dir/llvm-mt.cpp.o
[805/4055] Building Options.inc...
[806/4055] Building VEGenRegisterInfo.inc...
[807/4055] Building VEGenSubtargetInfo.inc...
[808/4055] Building VEGenCallingConv.inc...
[809/4055] Building VEGenAsmWriter.inc...
[810/4055] Building VEGenMCCodeEmitter.inc...
[811/4055] Building VEGenDAGISel.inc...
[812/4055] Building VEGenAsmMatcher.inc...
[813/4055] Building VEGenDisassemblerTables.inc...
[814/4055] Building VEGenInstrInfo.inc...
[815/4055] Building X86GenRegisterBank.inc...
[816/4055] Building RISCVTargetParserDef.inc...
[817/4055] Building X86GenRegisterInfo.inc...
[818/4055] Building X86GenCallingConv.inc...
[819/4055] Building X86GenInstrMapping.inc...
[820/4055] Building X86GenExegesis.inc...
[821/4055] Building X86GenFoldTables.inc...
[822/4055] Building X86GenDisassemblerTables.inc...
[823/4055] Building X86GenMnemonicTables.inc...
[824/4055] Building X86GenAsmWriter1.inc...
[825/4055] Building X86GenAsmMatcher.inc...
[826/4055] Building X86GenAsmWriter.inc...
[827/4055] Building X86GenFastISel.inc...
[828/4055] Building X86GenGlobalISel.inc...
[829/4055] Building X86GenDAGISel.inc...
[830/4055] Building X86GenSubtargetInfo.inc...
[831/4055] Building X86GenInstrInfo.inc...
ninja: build stopped: subcommand failed.
make: *** [build-llvm] Error 1
Step 7 (build-llvm) failure: build-llvm (failure)
...
[794/4055] Building ObjcopyOpts.inc...
[795/4055] Building Opts.inc...
[796/4055] Building Opts.inc...
[797/4055] Building Opts.inc...
[798/4055] Building WindresOpts.inc...
[799/4055] Building InstallNameToolOpts.inc...
[800/4055] Building BitcodeStripOpts.inc...
[801/4055] Building StripOpts.inc...
[802/4055] Building CXX object tools/llvm-mt/CMakeFiles/llvm-mt.dir/llvm-mt-driver.cpp.o
[803/4055] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o
FAILED: tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o
/usr/bin/ccache /home/buildbot/install/bin/clang++ -DCLANG_EXPORTS -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/utils/TableGen -I/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/utils/TableGen -I/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/include -I/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/include -I/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/include -I/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include -O2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O2 -g -DNDEBUG -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o -MF tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o.d -o tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o -c /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/utils/TableGen/ClangAttrEmitter.cpp
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/utils/TableGen/ClangAttrEmitter.cpp:3869:51: error: reference to local binding 'FS' declared in enclosing function 'clang::EmitClangAttrSpellingListIndex'
[&](StringRef N) { return N.size() == FS.name().size(); });
^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/utils/TableGen/ClangAttrEmitter.cpp:3863:28: note: 'FS' declared here
for (const auto &[Idx, FS] : enumerate(Spellings)) {
^
1 error generated.
[804/4055] Building CXX object tools/llvm-mt/CMakeFiles/llvm-mt.dir/llvm-mt.cpp.o
[805/4055] Building Options.inc...
[806/4055] Building VEGenRegisterInfo.inc...
[807/4055] Building VEGenSubtargetInfo.inc...
[808/4055] Building VEGenCallingConv.inc...
[809/4055] Building VEGenAsmWriter.inc...
[810/4055] Building VEGenMCCodeEmitter.inc...
[811/4055] Building VEGenDAGISel.inc...
[812/4055] Building VEGenAsmMatcher.inc...
[813/4055] Building VEGenDisassemblerTables.inc...
[814/4055] Building VEGenInstrInfo.inc...
[815/4055] Building X86GenRegisterBank.inc...
[816/4055] Building RISCVTargetParserDef.inc...
[817/4055] Building X86GenRegisterInfo.inc...
[818/4055] Building X86GenCallingConv.inc...
[819/4055] Building X86GenInstrMapping.inc...
[820/4055] Building X86GenExegesis.inc...
[821/4055] Building X86GenFoldTables.inc...
[822/4055] Building X86GenDisassemblerTables.inc...
[823/4055] Building X86GenMnemonicTables.inc...
[824/4055] Building X86GenAsmWriter1.inc...
[825/4055] Building X86GenAsmMatcher.inc...
[826/4055] Building X86GenAsmWriter.inc...
[827/4055] Building X86GenFastISel.inc...
[828/4055] Building X86GenGlobalISel.inc...
[829/4055] Building X86GenDAGISel.inc...
[830/4055] Building X86GenSubtargetInfo.inc...
[831/4055] Building X86GenInstrInfo.inc...
ninja: build stopped: subcommand failed.
make: *** [build-llvm] Error 1
```
</details>
https://github.com/llvm/llvm-project/pull/114899
More information about the cfe-commits
mailing list