[llvm] Move DroppedVariableStats to CodeGen lib (PR #120650)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 19:22:44 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-multistage` running on `ppc64le-clang-multistage-test` while building `llvm` at step 4 "build stage 1".

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

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

```
Step 4 (build stage 1) failure: 'ninja' (failure)
...
[5500/6204] Linking CXX executable bin/clang-apply-replacements
[5501/6204] Linking CXX shared library lib/libclangTransformer.so.20.0git
[5502/6204] Linking CXX executable bin/clang-include-fixer
[5503/6204] Creating library symlink lib/libclangTransformer.so
[5504/6204] Linking CXX shared library lib/libclangStaticAnalyzerCore.so.20.0git
[5505/6204] Creating library symlink lib/libclangStaticAnalyzerCore.so
[5506/6204] Linking CXX shared library lib/libclangARCMigrate.so.20.0git
[5507/6204] Creating library symlink lib/libclangARCMigrate.so
[5508/6204] Linking CXX executable bin/arcmt-test
[5509/6204] Linking CXX shared library lib/libclangCodeGen.so.20.0git
FAILED: lib/libclangCodeGen.so.20.0git 
: && /usr/lib64/ccache/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/./lib  -Wl,--gc-sections -shared -Wl,-soname,libclangCodeGen.so.20.0git -o lib/libclangCodeGen.so.20.0git tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/ABIInfo.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/ABIInfoImpl.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/BackendUtil.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGAtomic.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBlocks.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBuiltin.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCUDANV.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCUDARuntime.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCXX.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCXXABI.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCall.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGClass.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCleanup.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCoroutine.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGDebugInfo.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGDecl.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGDeclCXX.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGException.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGExpr.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGExprAgg.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGExprCXX.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGExprComplex.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGExprConstant.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGExprScalar.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGGPUBuiltin.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGHLSLRuntime.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGLoopInfo.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGNonTrivialStruct.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGObjC.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGObjCGNU.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGObjCMac.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGObjCRuntime.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGOpenCLRuntime.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGOpenMPRuntime.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGOpenMPRuntimeGPU.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGPointerAuth.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGRecordLayoutBuilder.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGStmt.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGStmtOpenMP.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGVTT.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGVTables.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CodeGenABITypes.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CodeGenAction.cpp.o tools/clang/lib/CodeGen
/CodeGenModule.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CodeGenPGO.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CodeGenTBAA.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CodeGenTypes.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/ConstantInitBuilder.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CoverageMappingGen.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/ItaniumCXXABI.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/LinkInModulesPass.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/MacroPPCallbacks.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/MicrosoftCXXABI.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/ModuleBuilder.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/ObjectFilePCHContainerWriter.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/PatternInit.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/SanitizerMetadata.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/SwiftCallingConv.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/TargetInfo.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/AArch64.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/AMDGPU.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/ARC.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/ARM.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/AVR.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/BPF.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/CSKY.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/DirectX.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/Hexagon.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/Lanai.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/LoongArch.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/M68k.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/MSP430.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/Mips.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/NVPTX.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/PNaCl.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/PPC.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/RISCV.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/SPIR.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/Sparc.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/SystemZ.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/TCE.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/VE.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/WebAssembly.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/X86.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/XCore.cpp.o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/VarBypassDetector.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/lib:"  lib/libclangFrontend.so.20.0git  lib/libclangSerialization.so.20.0git  lib/libLLVMCoverage.so.20.0git  lib/libLLVMFrontendDriver.so.20.0git  lib/libLLVMLTO.so.20.0git  lib/libLLVMPasses.so.20.0git  lib/libclangAnalysis.so.20.0git  lib/libLLVMFrontendHLSL.so.20.0git  lib/libclangAST.so.20.0git  lib/libclangLex.so.20.0git  lib/libclangBasic.so.20.0git  lib/libLLVMExtensions.so.20.0git  lib/libLLVMCoroutines.so.20.0git  lib/libLLVMHipStdPar.so.20.0git  lib/libLLVMipo.so.20.0git  lib/libLLVMFrontendOpenMP.so.20.0git  lib/libLLVMFrontendOffloading.so.20.0git  lib/libLLVMLinker.so.20.0git  lib/libLLVMIRPrinter.so.20.0git  lib/libLLVMInstrumentation.so.20.0git  lib/libLLVMCodeGenTypes.so.20.0git  lib
libLLVMObjCARCOpts.so.20.0git  lib/libLLVMScalarOpts.so.20.0git  lib/libLLVMAggressiveInstCombine.so.20.0git  lib/libLLVMInstCombine.so.20.0git  lib/libLLVMTarget.so.20.0git  lib/libLLVMTransformUtils.so.20.0git  lib/libLLVMBitWriter.so.20.0git  lib/libLLVMAnalysis.so.20.0git  lib/libLLVMProfileData.so.20.0git  lib/libLLVMObject.so.20.0git  lib/libLLVMIRReader.so.20.0git  lib/libLLVMBitReader.so.20.0git  lib/libLLVMCore.so.20.0git  lib/libLLVMMC.so.20.0git  lib/libLLVMTargetParser.so.20.0git  lib/libLLVMSupport.so.20.0git  lib/libLLVMDemangle.so.20.0git  -Wl,-rpath-link,/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/lib && :
tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/BackendUtil.cpp.o: In function `llvm::DroppedVariableStatsIR::visitEveryDebugRecord(llvm::DenseSet<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DenseMapInfo<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, void> >&, llvm::DenseMap<llvm::StringRef, llvm::DenseMap<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*, llvm::DenseMapInfo<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, void>, llvm::detail::DenseMapPair<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*> >, llvm::DenseMapInfo<llvm::StringRef, void>, llvm::detail::DenseMapPair<llvm::StringRef, llvm::DenseMap<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*, llvm::DenseMapInfo<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, void>, llvm::detail::DenseMapPair<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*> > > >&, llvm::StringRef, bool)':
BackendUtil.cpp:(.text._ZN4llvm22DroppedVariableStatsIR21visitEveryDebugRecordERNS_8DenseSetISt5tupleIJPKNS_7DIScopeES5_PKNS_15DILocalVariableEEENS_12DenseMapInfoIS9_vEEEERNS_8DenseMapINS_9StringRefENSE_IS9_PNS_10DILocationESB_NS_6detail12DenseMapPairIS9_SH_EEEENSA_ISF_vEENSJ_ISF_SL_EEEESF_b[_ZN4llvm22DroppedVariableStatsIR21visitEveryDebugRecordERNS_8DenseSetISt5tupleIJPKNS_7DIScopeES5_PKNS_15DILocalVariableEEENS_12DenseMapInfoIS9_vEEEERNS_8DenseMapINS_9StringRefENSE_IS9_PNS_10DILocationESB_NS_6detail12DenseMapPairIS9_SH_EEEENSA_ISF_vEENSJ_ISF_SL_EEEESF_b]+0x140): undefined reference to `llvm::DroppedVariableStats::populateVarIDSetAndInlinedMap(llvm::DILocalVariable const*, llvm::DebugLoc, llvm::DenseSet<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DenseMapInfo<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, void> >&, llvm::DenseMap<llvm::StringRef, llvm::DenseMap<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*, llvm::DenseMapInfo<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, void>, llvm::detail::DenseMapPair<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*> >, llvm::DenseMapInfo<llvm::StringRef, void>, llvm::detail::DenseMapPair<llvm::StringRef, llvm::DenseMap<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*, llvm::DenseMapInfo<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, void>, llvm::detail::DenseMapPair<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*> > > >&, llvm::StringRef, bool)'
tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/BackendUtil.cpp.o: In function `llvm::DroppedVariableStatsIR::visitEveryInstruction(unsigned int&, llvm::DenseMap<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*, llvm::DenseMapInfo<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, void>, llvm::detail::DenseMapPair<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*> >&, std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>)':
BackendUtil.cpp:(.text._ZN4llvm22DroppedVariableStatsIR21visitEveryInstructionERjRNS_8DenseMapISt5tupleIJPKNS_7DIScopeES6_PKNS_15DILocalVariableEEEPNS_10DILocationENS_12DenseMapInfoISA_vEENS_6detail12DenseMapPairISA_SC_EEEESA_[_ZN4llvm22DroppedVariableStatsIR21visitEveryInstructionERjRNS_8DenseMapISt5tupleIJPKNS_7DIScopeES6_PKNS_15DILocalVariableEEEPNS_10DILocationENS_12DenseMapInfoISA_vEENS_6detail12DenseMapPairISA_SC_EEEESA_]+0x15c): undefined reference to `llvm::DroppedVariableStats::updateDroppedCount(llvm::DILocation*, llvm::DIScope const*, llvm::DIScope const*, llvm::DenseMap<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*, llvm::DenseMapInfo<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, void>, llvm::detail::DenseMapPair<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*> >&, std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, unsigned int&)'
collect2: error: ld returned 1 exit status
[5510/6204] Linking CXX shared library lib/libclangStaticAnalyzerCheckers.so.20.0git
[5511/6204] Building AMDGPUGenInstrInfo.inc...
[5512/6204] Building AMDGPUGenRegisterBank.inc...
[5513/6204] Building RISCVGenSubtargetInfo.inc...
[5514/6204] Building AMDGPUGenRegisterInfo.inc...
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the llvm-commits mailing list