[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
Mon May 19 22:54:19 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-ppc64le-rhel` running on `ppc64le-clang-rhel-test` while building `llvm` at step 5 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/145/builds/7114
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-unified-tree) failure: build (failure)
...
74.310 [1026/25/5487] Linking CXX shared library lib/libLLVMSymbolize.so.21.0git
74.318 [1025/25/5488] Creating library symlink lib/libLLVMSymbolize.so
74.337 [1019/30/5489] Linking CXX static library lib/libLLVMCFIVerify_static.a
74.365 [1019/29/5490] Linking CXX executable bin/sanstats
74.369 [1019/28/5491] Linking CXX shared library lib/libLLVMCFIVerify.so.21.0git
74.372 [1018/28/5492] Linking CXX executable bin/llvm-xray
74.373 [1018/27/5493] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
74.378 [1017/27/5494] Creating library symlink lib/libLLVMCFIVerify.so
74.382 [1017/26/5495] Creating library symlink lib/libLLVMDebuginfod.so
74.385 [1014/28/5496] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git
: && /home/buildbots/llvm-external-buildbots/clang.19.1.7/bin/clang++ --gcc-toolchain=/gcc-toolchain/usr -fPIC -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 -Wl,-z,defs -Wl,-z,nodelete -Wl,--color-diagnostics -Wl,--gc-sections -Xlinker --dependency-file=lib/ProfileData/CMakeFiles/LLVMProfileData.dir/link.d -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/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/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/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/lib && :
ld.lld: error: undefined symbol: llvm::Value::getMetadata(llvm::StringRef) const
>>> referenced by InstrProf.cpp
>>> lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getIRPGOFuncName[abi:cxx11](llvm::Function const&, bool))
>>> referenced by InstrProf.cpp
>>> lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getPGOFuncNameMetadata(llvm::Function const&))
>>> referenced by InstrProf.cpp
>>> lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getPGOFuncName[abi:cxx11](llvm::Function const&, bool, unsigned long))
>>> referenced 5 more times
ld.lld: error: undefined symbol: llvm::Value::getName() const
>>> referenced by InstrProf.cpp
>>> lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getIRPGOObjectName[abi:cxx11](llvm::GlobalObject const&, bool, llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>> lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getIRPGOObjectName[abi:cxx11](llvm::GlobalObject const&, bool, llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>> lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getPGOFuncName[abi:cxx11](llvm::Function const&, bool, unsigned long))
>>> referenced 5 more times
ld.lld: error: undefined symbol: llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)
>>> referenced by InstrProf.cpp
>>> lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getIRPGOObjectName[abi:cxx11](llvm::GlobalObject const&, bool, llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>> lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::collectVTableStrings(llvm::ArrayRef<llvm::GlobalVariable*>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool))
ld.lld: error: undefined symbol: llvm::MDString::getString() const
>>> referenced by InstrProf.cpp
>>> lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::lookupPGONameFromMetadata[abi:cxx11](llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>> lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::mayHaveValueProfileOfKind(llvm::Instruction const&, llvm::InstrProfValueKind))
>>> referenced by SampleProf.cpp
>>> lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProf.cpp.o:(llvm::sampleprof::FunctionSamples::findFunctionSamples(llvm::DILocation const*, llvm::sampleprof::SampleProfileReaderItaniumRemapper*, llvm::sampleprof::HashKeyMap<std::unordered_map, llvm::sampleprof::FunctionId, llvm::sampleprof::FunctionId> const*) const)
>>> referenced 1 more times
ld.lld: error: undefined symbol: llvm::ConstantDataArray::getString(llvm::LLVMContext&, llvm::StringRef, bool)
>>> referenced by InstrProf.cpp
>>> lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::createPGOFuncNameVar(llvm::Module&, llvm::GlobalValue::LinkageTypes, llvm::StringRef))
>>> referenced by InstrProf.cpp
```
</details>
https://github.com/llvm/llvm-project/pull/140505
More information about the llvm-commits
mailing list