[clang] [HIP] Replace use of `llvm-mc` with `clang` (PR #112041)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 12 05:16:58 PDT 2024


llvm-ci wrote:

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

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

<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)
...
[4550/5304] Linking CXX executable bin/llvm-symbolizer
[4551/5304] Building CXX object tools/clang/tools/clang-installapi/CMakeFiles/clang-installapi.dir/ClangInstallAPI.cpp.o
[4552/5304] Generating ../../bin/llvm-addr2line
[4553/5304] Linking CXX executable bin/yaml2obj
[4554/5304] Building X86GenDAGISel.inc...
[4555/5304] Linking CXX executable bin/llvm-xray
[4556/5304] Linking CXX executable bin/sanstats
[4557/5304] Linking CXX executable bin/obj2yaml
[4558/5304] Linking CXX executable bin/verify-uselistorder
[4559/5304] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.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 -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/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp:343:20: error: unused variable 'TC' [-Werror,-Wunused-variable]
  343 |   const ToolChain &TC = T.getToolChain();
      |                    ^~
1 error generated.
[4560/5304] Building X86GenSubtargetInfo.inc...
[4561/5304] Building RISCVGenInstrInfo.inc...
[4562/5304] Building AMDGPUGenAsmWriter.inc...
[4563/5304] Building RISCVGenGlobalISel.inc...
[4564/5304] Building X86GenInstrInfo.inc...
[4565/5304] Building AMDGPUGenAsmMatcher.inc...
[4566/5304] Building AMDGPUGenGlobalISel.inc...
[4567/5304] Building RISCVGenDAGISel.inc...
[4568/5304] Building AMDGPUGenDAGISel.inc...
[4569/5304] Building AMDGPUGenInstrInfo.inc...
[4570/5304] Building AMDGPUGenRegisterBank.inc...
[4571/5304] Building AMDGPUGenRegisterInfo.inc...
[4572/5304] Building RISCVGenSubtargetInfo.inc...
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/491] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVAsmPrinter.cpp.o
[2/491] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVCallingConv.cpp.o
[3/491] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVCodeGenPrepare.cpp.o
[4/491] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVConstantPoolValue.cpp.o
[5/491] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVDeadRegisterDefinitions.cpp.o
[6/491] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVMakeCompressible.cpp.o
[7/491] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVExpandAtomicPseudoInsts.cpp.o
[8/491] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVExpandPseudoInsts.cpp.o
[9/491] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVFrameLowering.cpp.o
[10/491] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVGatherScatterLowering.cpp.o
[11/491] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVIndirectBranchTracking.cpp.o
[12/491] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVInsertVSETVLI.cpp.o
[13/491] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVInsertReadWriteCSR.cpp.o
Step 8 (build compiler-rt symbolizer) failure: build compiler-rt symbolizer (failure)
...
[4550/5304] Linking CXX executable bin/llvm-symbolizer
[4551/5304] Building CXX object tools/clang/tools/clang-installapi/CMakeFiles/clang-installapi.dir/ClangInstallAPI.cpp.o
[4552/5304] Generating ../../bin/llvm-addr2line
[4553/5304] Linking CXX executable bin/yaml2obj
[4554/5304] Building X86GenDAGISel.inc...
[4555/5304] Linking CXX executable bin/llvm-xray
[4556/5304] Linking CXX executable bin/sanstats
[4557/5304] Linking CXX executable bin/obj2yaml
[4558/5304] Linking CXX executable bin/verify-uselistorder
[4559/5304] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.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 -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/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp:343:20: error: unused variable 'TC' [-Werror,-Wunused-variable]
  343 |   const ToolChain &TC = T.getToolChain();
      |                    ^~
1 error generated.
[4560/5304] Building X86GenSubtargetInfo.inc...
[4561/5304] Building RISCVGenInstrInfo.inc...
[4562/5304] Building AMDGPUGenAsmWriter.inc...
[4563/5304] Building RISCVGenGlobalISel.inc...
[4564/5304] Building X86GenInstrInfo.inc...
[4565/5304] Building AMDGPUGenAsmMatcher.inc...
[4566/5304] Building AMDGPUGenGlobalISel.inc...
[4567/5304] Building RISCVGenDAGISel.inc...
[4568/5304] Building AMDGPUGenDAGISel.inc...
[4569/5304] Building AMDGPUGenInstrInfo.inc...
[4570/5304] Building AMDGPUGenRegisterBank.inc...
[4571/5304] Building AMDGPUGenRegisterInfo.inc...
[4572/5304] Building RISCVGenSubtargetInfo.inc...
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)
...
[140/491] Building CXX object lib/Target/X86/TargetInfo/CMakeFiles/LLVMX86Info.dir/X86TargetInfo.cpp.o
[141/491] Linking CXX static library lib/libLLVMRISCVDesc.a
[142/491] Linking CXX static library lib/libLLVMX86Info.a
[143/491] Linking CXX static library lib/libLLVMRISCVAsmParser.a
[144/491] Linking CXX static library lib/libLLVMRISCVDisassembler.a
[145/491] Linking CXX static library lib/libLLVMRISCVCodeGen.a
[146/491] Linking CXX static library lib/libLLVMX86Disassembler.a
[147/491] Linking CXX static library lib/libLLVMX86Desc.a
[148/491] Linking CXX static library lib/libLLVMX86AsmParser.a
[149/491] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.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 -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/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp:343:20: error: unused variable 'TC' [-Werror,-Wunused-variable]
  343 |   const ToolChain &TC = T.getToolChain();
      |                    ^~
1 error generated.
[150/491] Building InstCombineTables.inc...
[151/491] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelLowering.cpp.o
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)
...
[4550/5304] Generating ../../bin/llvm-strip
[4551/5304] Linking CXX executable bin/verify-uselistorder
[4552/5304] Linking CXX executable bin/obj2yaml
[4553/5304] Generating ../../bin/llvm-readelf
[4554/5304] Linking CXX executable bin/llvm-symbolizer
[4555/5304] Generating ../../bin/llvm-addr2line
[4556/5304] Linking CXX executable bin/sanstats
[4557/5304] Linking CXX executable bin/llvm-xray
[4558/5304] Building X86GenDAGISel.inc...
[4559/5304] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.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 -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/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp:343:20: error: unused variable 'TC' [-Werror,-Wunused-variable]
  343 |   const ToolChain &TC = T.getToolChain();
      |                    ^~
1 error generated.
[4560/5304] Building X86GenSubtargetInfo.inc...
[4561/5304] Building AMDGPUGenAsmWriter.inc...
[4562/5304] Building X86GenInstrInfo.inc...
[4563/5304] Building RISCVGenInstrInfo.inc...
[4564/5304] Building AMDGPUGenGlobalISel.inc...
[4565/5304] Building AMDGPUGenDAGISel.inc...
[4566/5304] Building AMDGPUGenAsmMatcher.inc...
[4567/5304] Building RISCVGenGlobalISel.inc...
[4568/5304] Building RISCVGenDAGISel.inc...
[4569/5304] Building AMDGPUGenInstrInfo.inc...
[4570/5304] Building AMDGPUGenRegisterBank.inc...
[4571/5304] Building RISCVGenSubtargetInfo.inc...
[4572/5304] 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)
...
[142/491] Linking CXX static library lib/libLLVMRISCVDesc.a
[143/491] Linking CXX static library lib/libLLVMX86Info.a
[144/491] Linking CXX static library lib/libLLVMRISCVAsmParser.a
[145/491] Linking CXX static library lib/libLLVMRISCVDisassembler.a
[146/491] Linking CXX static library lib/libLLVMX86Desc.a
[147/491] Linking CXX static library lib/libLLVMX86Disassembler.a
[148/491] Linking CXX static library lib/libLLVMRISCVCodeGen.a
[149/491] Linking CXX static library lib/libLLVMX86AsmParser.a
[150/491] Linking CXX static library lib/libLLVMX86CodeGen.a
[151/491] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.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 -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/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp:343:20: error: unused variable 'TC' [-Werror,-Wunused-variable]
  343 |   const ToolChain &TC = T.getToolChain();
      |                    ^~
1 error generated.
[152/491] Building InstCombineTables.inc...
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)
...
[4531/5285] Generating ../../bin/llvm-addr2line
[4532/5285] Linking CXX executable bin/llvm-xray
[4533/5285] Linking CXX executable bin/llvm-objcopy
[4534/5285] Generating ../../bin/llvm-bitcode-strip
[4535/5285] Generating ../../bin/llvm-install-name-tool
[4536/5285] Generating ../../bin/llvm-strip
[4537/5285] Linking CXX executable bin/verify-uselistorder
[4538/5285] Linking CXX executable bin/sanstats
[4539/5285] Linking CXX executable bin/obj2yaml
[4540/5285] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.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 -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/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp:343:20: error: unused variable 'TC' [-Werror,-Wunused-variable]
  343 |   const ToolChain &TC = T.getToolChain();
      |                    ^~
1 error generated.
[4541/5285] Building X86GenSubtargetInfo.inc...
[4542/5285] Building RISCVGenDAGISel.inc...
[4543/5285] Building X86GenInstrInfo.inc...
[4544/5285] Building RISCVGenGlobalISel.inc...
[4545/5285] Building AMDGPUGenAsmWriter.inc...
[4546/5285] Building RISCVGenInstrInfo.inc...
[4547/5285] Building AMDGPUGenGlobalISel.inc...
[4548/5285] Building AMDGPUGenAsmMatcher.inc...
[4549/5285] Building AMDGPUGenDAGISel.inc...
[4550/5285] Building AMDGPUGenInstrInfo.inc...
[4551/5285] Building AMDGPUGenRegisterBank.inc...
[4552/5285] Building RISCVGenSubtargetInfo.inc...
[4553/5285] Building AMDGPUGenRegisterInfo.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)
...
[4550/5304] Generating ../../bin/llvm-addr2line
[4551/5304] Linking CXX executable bin/llvm-tli-checker
[4552/5304] Generating ../../bin/llvm-bitcode-strip
[4553/5304] Linking CXX executable bin/sanstats
[4554/5304] Generating ../../bin/llvm-install-name-tool
[4555/5304] Generating ../../bin/llvm-strip
[4556/5304] Generating ../../bin/llvm-readelf
[4557/5304] Linking CXX executable bin/verify-uselistorder
[4558/5304] Linking CXX executable bin/obj2yaml
[4559/5304] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.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 -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/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp:343:20: error: unused variable 'TC' [-Werror,-Wunused-variable]
  343 |   const ToolChain &TC = T.getToolChain();
      |                    ^~
1 error generated.
[4560/5304] Building X86GenSubtargetInfo.inc...
[4561/5304] Building RISCVGenInstrInfo.inc...
[4562/5304] Building X86GenInstrInfo.inc...
[4563/5304] Building AMDGPUGenAsmWriter.inc...
[4564/5304] Building RISCVGenGlobalISel.inc...
[4565/5304] Building AMDGPUGenGlobalISel.inc...
[4566/5304] Building AMDGPUGenAsmMatcher.inc...
[4567/5304] Building RISCVGenDAGISel.inc...
[4568/5304] Building AMDGPUGenDAGISel.inc...
[4569/5304] Building AMDGPUGenInstrInfo.inc...
[4570/5304] Building AMDGPUGenRegisterBank.inc...
[4571/5304] Building RISCVGenSubtargetInfo.inc...
[4572/5304] Building AMDGPUGenRegisterInfo.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)
...
[142/491] Linking CXX static library lib/libLLVMRISCVDesc.a
[143/491] Linking CXX static library lib/libLLVMX86Info.a
[144/491] Linking CXX static library lib/libLLVMRISCVDisassembler.a
[145/491] Linking CXX static library lib/libLLVMRISCVAsmParser.a
[146/491] Linking CXX static library lib/libLLVMRISCVCodeGen.a
[147/491] Linking CXX static library lib/libLLVMX86Disassembler.a
[148/491] Linking CXX static library lib/libLLVMX86Desc.a
[149/491] Linking CXX static library lib/libLLVMX86AsmParser.a
[150/491] Linking CXX static library lib/libLLVMX86CodeGen.a
[151/491] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
FAILED: tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.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 -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/tools/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -MF tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o.d -o tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/lib/Driver/ToolChains/HIPUtility.cpp:343:20: error: unused variable 'TC' [-Werror,-Wunused-variable]
  343 |   const ToolChain &TC = T.getToolChain();
      |                    ^~
1 error generated.
[152/491] 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:17 (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:17 (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:17 (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'
ninja: error: loading 'build.ninja': No such file or directory

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

```

</details>

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


More information about the cfe-commits mailing list