[llvm] [NFC][MemProf] Move types shared between Analysis, ProfileData and ModuleSummary (Core) to a separate header (PR #140505)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Tue May 20 02:32:47 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `flang-aarch64-latest-gcc` running on `linaro-flang-aarch64-latest-gcc` while building `llvm` at step 5 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/130/builds/13243
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-unified-tree) failure: build (failure)
...
197.347 [3355/50/4001] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/CSKY.cpp.o
197.348 [3355/49/4002] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/Lanai.cpp.o
197.351 [3355/48/4003] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/Mips.cpp.o
197.352 [3355/47/4004] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/ARC.cpp.o
197.357 [3355/46/4005] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/DirectX.cpp.o
197.362 [3355/45/4006] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/M68k.cpp.o
197.363 [3355/44/4007] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/CodeInjector.cpp.o
197.364 [3355/43/4008] Building TestOps.cpp.inc...
197.365 [3355/42/4009] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/MSP430.cpp.o
197.366 [3355/41/4010] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git
: && /usr/local/bin/c++ -fPIC -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-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wno-unnecessary-virtual-specifier -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/./lib -Wl,--gc-sections -shared -Wl,-soname,libLLVMProfileData.so.21.0git -o lib/libLLVMProfileData.so.21.0git lib/ProfileData/CMakeFiles/LLVMProfileData.dir/DataAccessProf.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/GCOV.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/IndexedMemProfData.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProfCorrelator.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProfReader.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProfWriter.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/ItaniumManglingCanonicalizer.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProf.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProfReader.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProfRadixTree.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/PGOCtxProfReader.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/PGOCtxProfWriter.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/ProfileSummaryBuilder.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProf.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfReader.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfWriter.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SymbolRemappingReader.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib:" lib/libLLVMSymbolize.so.21.0git lib/libLLVMDebugInfoDWARF.so.21.0git lib/libLLVMObject.so.21.0git lib/libLLVMBitstreamReader.so.21.0git lib/libLLVMTargetParser.so.21.0git lib/libLLVMSupport.so.21.0git lib/libLLVMDemangle.so.21.0git -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib && :
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::lookupPGONameFromMetadata(llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL25lookupPGONameFromMetadataEPNS_6MDNodeE+0x54): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]':
InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x10): undefined reference to `llvm::GlobalValue::isDeclaration() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x30): undefined reference to `llvm::ConstantDataSequential::isCString() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x3c): undefined reference to `llvm::ConstantDataSequential::isCString() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x4c): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x58): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x90): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x9c): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]':
InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xa4): undefined reference to `llvm::MDBuilder::createString(llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xe4): undefined reference to `llvm::Type::getInt32Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xf0): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xfc): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x13c): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x148): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x154): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1d0): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1dc): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1e8): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x23c): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x248): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x254): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x294): undefined reference to `llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2a4): undefined reference to `llvm::Instruction::setMetadata(unsigned int, llvm::MDNode*)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::mayHaveValueProfileOfKind(llvm::Instruction const&, llvm::InstrProfValueKind) [clone .localalias]':
InstrProf.cpp:(.text._ZN4llvm25mayHaveValueProfileOfKindERKNS_11InstructionENS_18InstrProfValueKindE+0x1c): undefined reference to `llvm::Value::getMetadataImpl(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm25mayHaveValueProfileOfKindERKNS_11InstructionENS_18InstrProfValueKindE+0x50): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOFuncNameMetadata(llvm::Function const&)':
InstrProf.cpp:(.text._ZN4llvm22getPGOFuncNameMetadataERKNS_8FunctionE+0xc): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef)':
InstrProf.cpp:(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x38): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x64): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x9c): undefined reference to `llvm::Value::getContext() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0xac): undefined reference to `llvm::MDString::get(llvm::LLVMContext&, llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0xcc): undefined reference to `llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'
```
</details>
https://github.com/llvm/llvm-project/pull/140505
More information about the llvm-commits
mailing list