[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 17:05:06 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `mlir-nvidia` running on `mlir-nvidia` while building `llvm` at step 6 "build-check-mlir-build-only".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/138/builds/13356
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (build-check-mlir-build-only) failure: build (failure)
...
60.974 [431/10/4780] Creating library symlink lib/libLLVMRuntimeDyld.so
60.990 [431/9/4781] Linking CXX shared library lib/libLLVMObjectYAML.so.21.0git
60.991 [430/9/4782] Linking CXX shared library lib/libLLVMDebugInfoPDB.so.21.0git
60.997 [429/9/4783] Creating library symlink lib/libLLVMDebugInfoPDB.so
60.998 [429/8/4784] Creating library symlink lib/libLLVMObjectYAML.so
61.047 [429/7/4785] Linking CXX shared library lib/libLLVMDebugInfoGSYM.so.21.0git
61.053 [428/7/4786] Creating library symlink lib/libLLVMDebugInfoGSYM.so
61.136 [427/7/4787] Linking CXX shared library lib/libLLVMSymbolize.so.21.0git
61.142 [426/7/4788] Creating library symlink lib/libLLVMSymbolize.so
61.233 [425/7/4789] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git
: && /usr/bin/clang++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -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 -fuse-ld=lld -Wl,--color-diagnostics -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:/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/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,/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/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::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::DINode::getStringOperand(unsigned int) const)
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))
```
</details>
https://github.com/llvm/llvm-project/pull/140505
More information about the llvm-commits
mailing list