[llvm] [LoopVectorize] Fix cost model assert when vectorising calls (PR #125716)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 7 02:07:58 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot7` while building `llvm` at step 2 "annotate".

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

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

```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[4763/5427] Linking CXX static library lib/libclangStaticAnalyzerFrontend.a
[4764/5427] Linking CXX executable bin/diagtool
[4765/5427] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[4766/5427] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
[4767/5427] Linking CXX executable bin/clang-diff
[4768/5427] Linking CXX executable bin/clang-installapi
[4769/5427] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[4770/5427] Linking CXX executable bin/clang-refactor
[4771/5427] Building RISCVGenGlobalISel.inc...
[4772/5427] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -MF lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o.d -o lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:6288:12: error: variable 'UsesMask' set but not used [-Werror,-Wunused-but-set-variable]
 6288 |       bool UsesMask = false;
      |            ^
1 error generated.
[4773/5427] Building RISCVGenDAGISel.inc...
[4774/5427] Building AMDGPUGenAsmWriter.inc...
[4775/5427] Building AMDGPUGenGlobalISel.inc...
[4776/5427] Building AMDGPUGenDAGISel.inc...
[4777/5427] Building AMDGPUGenAsmMatcher.inc...
[4778/5427] Building AMDGPUGenInstrInfo.inc...
[4779/5427] Building AMDGPUGenRegisterBank.inc...
[4780/5427] Building AMDGPUGenRegisterInfo.inc...
[4781/5427] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGDebugInfo.cpp.o
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

@@@STEP_FAILURE@@@
@@@BUILD_STEP test compiler-rt symbolizer@@@
ninja: Entering directory `build_default'
[1/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVConstantPoolValue.cpp.o
[2/413] Building CXX object lib/Target/RISCV/MCTargetDesc/CMakeFiles/LLVMRISCVDesc.dir/RISCVMCAsmInfo.cpp.o
[3/413] Building CXX object lib/Target/RISCV/TargetInfo/CMakeFiles/LLVMRISCVInfo.dir/RISCVTargetInfo.cpp.o
[4/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVRedundantCopyElimination.cpp.o
[5/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVCallingConv.cpp.o
[6/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVAsmPrinter.cpp.o
[7/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVExpandAtomicPseudoInsts.cpp.o
[8/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVCodeGenPrepare.cpp.o
[9/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVDeadRegisterDefinitions.cpp.o
[10/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVFrameLowering.cpp.o
[11/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVInsertReadWriteCSR.cpp.o
[12/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVMakeCompressible.cpp.o
[13/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVLandingPadSetup.cpp.o
[14/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVExpandPseudoInsts.cpp.o
[15/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVIndirectBranchTracking.cpp.o
[16/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVInsertVSETVLI.cpp.o
[17/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVInstrInfo.cpp.o
Step 8 (build compiler-rt symbolizer) failure: build compiler-rt symbolizer (failure)
...
[4763/5427] Linking CXX static library lib/libclangStaticAnalyzerFrontend.a
[4764/5427] Linking CXX executable bin/diagtool
[4765/5427] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[4766/5427] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
[4767/5427] Linking CXX executable bin/clang-diff
[4768/5427] Linking CXX executable bin/clang-installapi
[4769/5427] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[4770/5427] Linking CXX executable bin/clang-refactor
[4771/5427] Building RISCVGenGlobalISel.inc...
[4772/5427] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -MF lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o.d -o lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:6288:12: error: variable 'UsesMask' set but not used [-Werror,-Wunused-but-set-variable]
 6288 |       bool UsesMask = false;
      |            ^
1 error generated.
[4773/5427] Building RISCVGenDAGISel.inc...
[4774/5427] Building AMDGPUGenAsmWriter.inc...
[4775/5427] Building AMDGPUGenGlobalISel.inc...
[4776/5427] Building AMDGPUGenDAGISel.inc...
[4777/5427] Building AMDGPUGenAsmMatcher.inc...
[4778/5427] Building AMDGPUGenInstrInfo.inc...
[4779/5427] Building AMDGPUGenRegisterBank.inc...
[4780/5427] Building AMDGPUGenRegisterInfo.inc...
[4781/5427] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGDebugInfo.cpp.o
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 9 (test compiler-rt symbolizer) failure: test compiler-rt symbolizer (failure)
...
[53/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/GISel/RISCVO0PreLegalizerCombiner.cpp.o
[54/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/GISel/RISCVRegisterBankInfo.cpp.o
[55/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/GISel/RISCVPreLegalizerCombiner.cpp.o
[56/413] Building CXX object lib/Target/RISCV/MCTargetDesc/CMakeFiles/LLVMRISCVDesc.dir/RISCVMCTargetDesc.cpp.o
[57/413] Linking CXX static library lib/libLLVMRISCVDesc.a
[58/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVISelDAGToDAG.cpp.o
[59/413] Linking CXX static library lib/libLLVMRISCVDisassembler.a
[60/413] Linking CXX static library lib/libLLVMRISCVAsmParser.a
[61/413] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/GISel/RISCVInstructionSelector.cpp.o
[62/413] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -MF lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o.d -o lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:6288:12: error: variable 'UsesMask' set but not used [-Werror,-Wunused-but-set-variable]
 6288 |       bool UsesMask = false;
      |            ^
1 error generated.
[63/413] Building InstCombineTables.inc...
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 10 (build compiler-rt debug) failure: build compiler-rt debug (failure)
...
[4648/5427] Linking CXX static library lib/libclangDynamicASTMatchers.a
[4649/5427] Linking CXX static library lib/libclangAnalysis.a
[4650/5427] Linking CXX static library lib/libclangAnalysisFlowSensitive.a
[4651/5427] Linking CXX static library lib/libclangAnalysisFlowSensitiveModels.a
[4652/5427] Linking CXX static library lib/libclangSema.a
[4653/5427] Linking CXX static library lib/libclangParse.a
[4654/5427] Linking CXX static library lib/libclangSerialization.a
[4655/5427] Linking CXX executable bin/llvm-cgdata
[4656/5427] Linking CXX executable bin/clang-format
[4657/5427] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -MF lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o.d -o lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:6288:12: error: variable 'UsesMask' set but not used [-Werror,-Wunused-but-set-variable]
 6288 |       bool UsesMask = false;
      |            ^
1 error generated.
[4658/5427] Building RISCVGenDAGISel.inc...
[4659/5427] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
[4660/5427] Building X86GenInstrInfo.inc...
[4661/5427] Building AMDGPUGenAsmMatcher.inc...
[4662/5427] Building AMDGPUGenGlobalISel.inc...
[4663/5427] Building AMDGPUGenRegisterBank.inc...
[4664/5427] Building X86GenSubtargetInfo.inc...
[4665/5427] Building AMDGPUGenInstrInfo.inc...
[4666/5427] Building AMDGPUGenRegisterInfo.inc...
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 11 (test compiler-rt debug) failure: test compiler-rt debug (failure)
...
[451/512] Building CXX object tools/opt/CMakeFiles/opt.dir/opt.cpp.o
[452/512] Building CXX object tools/sancov/CMakeFiles/sancov.dir/sancov.cpp.o
[453/512] Building CXX object tools/sancov/CMakeFiles/sancov.dir/sancov-driver.cpp.o
[454/512] Linking CXX static library lib/libLLVMAMDGPUDesc.a
[455/512] Linking CXX static library lib/libLLVMAMDGPUDisassembler.a
[456/512] Linking CXX static library lib/libLLVMAMDGPUAsmParser.a
[457/512] Building CXX object tools/clang/tools/driver/CMakeFiles/clang.dir/cc1gen_reproducer_main.cpp.o
[458/512] Building CXX object tools/clang/tools/driver/CMakeFiles/clang.dir/cc1as_main.cpp.o
[459/512] Building CXX object tools/clang/tools/driver/CMakeFiles/clang.dir/cc1_main.cpp.o
[460/512] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -MF lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o.d -o lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:6288:12: error: variable 'UsesMask' set but not used [-Werror,-Wunused-but-set-variable]
 6288 |       bool UsesMask = false;
      |            ^
1 error generated.
[461/512] Building CXX object tools/clang/tools/driver/CMakeFiles/clang.dir/driver.cpp.o
[462/512] Linking CXX executable bin/sancov
[463/512] Linking CXX executable bin/llvm-objdump
[464/512] Linking CXX executable bin/llvm-ar
[465/512] Linking CXX executable bin/llvm-nm
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 12 (build compiler-rt tsan_debug) failure: build compiler-rt tsan_debug (failure)
...
[4706/5408] Building CXX object lib/Target/RISCV/MCTargetDesc/CMakeFiles/LLVMRISCVDesc.dir/RISCVTargetStreamer.cpp.o
[4707/5408] Building CXX object lib/Target/RISCV/MCTargetDesc/CMakeFiles/LLVMRISCVDesc.dir/RISCVELFStreamer.cpp.o
[4708/5408] Building CXX object lib/Target/RISCV/MCA/CMakeFiles/LLVMRISCVTargetMCA.dir/RISCVCustomBehaviour.cpp.o
[4709/5408] Building CXX object lib/Target/RISCV/TargetInfo/CMakeFiles/LLVMRISCVInfo.dir/RISCVTargetInfo.cpp.o
[4710/5408] Building CXX object tools/llvm-exegesis/lib/RISCV/CMakeFiles/LLVMExegesisRISCV.dir/Target.cpp.o
[4711/5408] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[4712/5408] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVISelDAGToDAG.cpp.o
[4713/5408] Linking CXX executable bin/clang-installapi
[4714/5408] Linking CXX static library lib/libLLVMRISCVInfo.a
[4715/5408] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -MF lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o.d -o lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:6288:12: error: variable 'UsesMask' set but not used [-Werror,-Wunused-but-set-variable]
 6288 |       bool UsesMask = false;
      |            ^
1 error generated.
[4716/5408] Linking CXX static library lib/libLLVMRISCVDesc.a
[4717/5408] Linking CXX executable bin/clang-diff
[4718/5408] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[4719/5408] Linking CXX executable bin/clang-refactor
[4720/5408] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/GISel/RISCVInstructionSelector.cpp.o
[4721/5408] Building X86GenInstrInfo.inc...
[4722/5408] Building AMDGPUGenInstrInfo.inc...
[4723/5408] Building X86GenSubtargetInfo.inc...
[4724/5408] Building AMDGPUGenAsmMatcher.inc...
[4725/5408] Building AMDGPUGenGlobalISel.inc...
[4726/5408] Building AMDGPUGenDAGISel.inc...
[4727/5408] Building AMDGPUGenRegisterInfo.inc...
[4728/5408] Building AMDGPUGenAsmWriter.inc...
[4729/5408] Building AMDGPUGenRegisterBank.inc...
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 13 (build compiler-rt default) failure: build compiler-rt default (failure)
...
[4832/5427] Linking CXX static library lib/libclangStaticAnalyzerFrontend.a
[4833/5427] Linking CXX executable bin/diagtool
[4834/5427] Linking CXX executable bin/clang-refactor
[4835/5427] Linking CXX executable bin/clang-diff
[4836/5427] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[4837/5427] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
[4838/5427] Linking CXX executable bin/clang-installapi
[4839/5427] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[4840/5427] Building AMDGPUGenGlobalISel.inc...
[4841/5427] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -MF lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o.d -o lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:6288:12: error: variable 'UsesMask' set but not used [-Werror,-Wunused-but-set-variable]
 6288 |       bool UsesMask = false;
      |            ^
1 error generated.
[4842/5427] Building AMDGPUGenRegisterBank.inc...
[4843/5427] Building AMDGPUGenAsmWriter.inc...
[4844/5427] Building AMDGPUGenInstrInfo.inc...
[4845/5427] Building AMDGPUGenRegisterInfo.inc...
[4846/5427] Building AMDGPUGenDAGISel.inc...
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 14 (test compiler-rt default) failure: test compiler-rt default (failure)
@@@BUILD_STEP test compiler-rt default@@@
ninja: Entering directory `build_default'
[1/352] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -MF lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o.d -o lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/LoopVectorize.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:6288:12: error: variable 'UsesMask' set but not used [-Werror,-Wunused-but-set-variable]
 6288 |       bool UsesMask = false;
      |            ^
1 error generated.
[2/352] Building InstCombineTables.inc...
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 15 (build standalone compiler-rt) failure: build standalone compiler-rt (failure)
...
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:12 (include)
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:22 (project):
  The CMAKE_C_COMPILER:

    /home/b/sanitizer-aarch64-linux/build/build_default/bin/clang

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:22 (project):
  The CMAKE_CXX_COMPILER:

    /home/b/sanitizer-aarch64-linux/build/build_default/bin/clang++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:22 (project):
  No CMAKE_ASM_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
ninja: Entering directory `compiler_rt_build'
ninja: error: loading 'build.ninja': No such file or directory

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 16 (test standalone compiler-rt) failure: test standalone compiler-rt (failure)
@@@BUILD_STEP test standalone compiler-rt@@@
ninja: Entering directory `compiler_rt_build'

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
ninja: error: loading 'build.ninja': No such file or directory

```

</details>

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


More information about the llvm-commits mailing list