Skip to content

Conversation

@snehasish
Copy link

@snehasish snehasish commented May 19, 2025

Part of a larger refactoring with the following goals

  1. Reduce the size of MemProf.h
  2. Avoid including ModuleSummaryIndex just for a couple of types

@llvmbot llvmbot added PGO Profile Guided Optimizations llvm:ir llvm:analysis Includes value tracking, cost tables and constant folding llvm:transforms labels May 19, 2025
@llvmbot
Copy link
Member

llvmbot commented May 19, 2025

@llvm/pr-subscribers-pgo
@llvm/pr-subscribers-llvm-transforms

@llvm/pr-subscribers-llvm-analysis

Author: Snehasish Kumar (snehasish)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/140505.diff

4 Files Affected:

  • (modified) llvm/include/llvm/Analysis/MemoryProfileInfo.h (+2-1)
  • (modified) llvm/include/llvm/IR/ModuleSummaryIndex.h (+2-20)
  • (added) llvm/include/llvm/ProfileData/MemProfCommon.h (+44)
  • (modified) llvm/lib/Transforms/Instrumentation/MemProfiler.cpp (+1)
diff --git a/llvm/include/llvm/Analysis/MemoryProfileInfo.h b/llvm/include/llvm/Analysis/MemoryProfileInfo.h
index 1d98f86f50484..33d59efe8d77e 100644
--- a/llvm/include/llvm/Analysis/MemoryProfileInfo.h
+++ b/llvm/include/llvm/Analysis/MemoryProfileInfo.h
@@ -14,7 +14,8 @@
 #define LLVM_ANALYSIS_MEMORYPROFILEINFO_H
 
 #include "llvm/IR/Metadata.h"
-#include "llvm/IR/ModuleSummaryIndex.h"
+#include "llvm/ProfileData/MemProfCommon.h"
+#include "llvm/IR/InstrTypes.h"
 #include <map>
 
 namespace llvm {
diff --git a/llvm/include/llvm/IR/ModuleSummaryIndex.h b/llvm/include/llvm/IR/ModuleSummaryIndex.h
index 65e428a3adea7..77430c5cb5ea1 100644
--- a/llvm/include/llvm/IR/ModuleSummaryIndex.h
+++ b/llvm/include/llvm/IR/ModuleSummaryIndex.h
@@ -27,6 +27,7 @@
 #include "llvm/IR/ConstantRange.h"
 #include "llvm/IR/GlobalValue.h"
 #include "llvm/IR/Module.h"
+#include "llvm/ProfileData/MemProfCommon.h"
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/InterleavedRange.h"
@@ -306,13 +307,7 @@ template <> struct DenseMapInfo<ValueInfo> {
   static unsigned getHashValue(ValueInfo I) { return hash_value(I.getRef()); }
 };
 
-// For optional hinted size reporting, holds a pair of the full stack id
-// (pre-trimming, from the full context in the profile), and the associated
-// total profiled size.
-struct ContextTotalSize {
-  uint64_t FullStackId;
-  uint64_t TotalSize;
-};
+
 
 /// Summary of memprof callsite metadata.
 struct CallsiteInfo {
@@ -350,19 +345,6 @@ inline raw_ostream &operator<<(raw_ostream &OS, const CallsiteInfo &SNI) {
   return OS;
 }
 
-// Allocation type assigned to an allocation reached by a given context.
-// More can be added, now this is cold, notcold and hot.
-// Values should be powers of two so that they can be ORed, in particular to
-// track allocations that have different behavior with different calling
-// contexts.
-enum class AllocationType : uint8_t {
-  None = 0,
-  NotCold = 1,
-  Cold = 2,
-  Hot = 4,
-  All = 7 // This should always be set to the OR of all values.
-};
-
 /// Summary of a single MIB in a memprof metadata on allocations.
 struct MIBInfo {
   // The allocation type for this profiled context.
diff --git a/llvm/include/llvm/ProfileData/MemProfCommon.h b/llvm/include/llvm/ProfileData/MemProfCommon.h
new file mode 100644
index 0000000000000..4097ccb651188
--- /dev/null
+++ b/llvm/include/llvm/ProfileData/MemProfCommon.h
@@ -0,0 +1,44 @@
+//===- MemProfCommon.h - MemProf support ----------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file contains common types used by different parts of the MemProf code.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_PROFILEDATA_MEMPROFCOMMON_H
+#define LLVM_PROFILEDATA_MEMPROFCOMMON_H
+
+#include <cstdint>
+
+namespace llvm {
+
+// For optional hinted size reporting, holds a pair of the full stack id
+// (pre-trimming, from the full context in the profile), and the associated
+// total profiled size.
+struct ContextTotalSize {
+  uint64_t FullStackId;
+  uint64_t TotalSize;
+};
+
+// Allocation type assigned to an allocation reached by a given context.
+// More can be added, now this is cold, notcold and hot.
+// Values should be powers of two so that they can be ORed, in particular to
+// track allocations that have different behavior with different calling
+// contexts.
+enum class AllocationType : uint8_t {
+  None = 0,
+  NotCold = 1,
+  Cold = 2,
+  Hot = 4,
+  All = 7 // This should always be set to the OR of all values.
+};
+
+} // namespace llvm
+ 
+#endif // LLVM_PROFILEDATA_MEMPROFCOMMON_H
+
diff --git a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
index 5982476f3994e..6538311571529 100644
--- a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
@@ -46,6 +46,7 @@
 #include "llvm/Transforms/Utils/ModuleUtils.h"
 #include <map>
 #include <set>
+#include <unordered_set>
 
 using namespace llvm;
 using namespace llvm::memprof;

@llvmbot
Copy link
Member

llvmbot commented May 19, 2025

@llvm/pr-subscribers-llvm-ir

Author: Snehasish Kumar (snehasish)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/140505.diff

4 Files Affected:

  • (modified) llvm/include/llvm/Analysis/MemoryProfileInfo.h (+2-1)
  • (modified) llvm/include/llvm/IR/ModuleSummaryIndex.h (+2-20)
  • (added) llvm/include/llvm/ProfileData/MemProfCommon.h (+44)
  • (modified) llvm/lib/Transforms/Instrumentation/MemProfiler.cpp (+1)
diff --git a/llvm/include/llvm/Analysis/MemoryProfileInfo.h b/llvm/include/llvm/Analysis/MemoryProfileInfo.h
index 1d98f86f50484..33d59efe8d77e 100644
--- a/llvm/include/llvm/Analysis/MemoryProfileInfo.h
+++ b/llvm/include/llvm/Analysis/MemoryProfileInfo.h
@@ -14,7 +14,8 @@
 #define LLVM_ANALYSIS_MEMORYPROFILEINFO_H
 
 #include "llvm/IR/Metadata.h"
-#include "llvm/IR/ModuleSummaryIndex.h"
+#include "llvm/ProfileData/MemProfCommon.h"
+#include "llvm/IR/InstrTypes.h"
 #include <map>
 
 namespace llvm {
diff --git a/llvm/include/llvm/IR/ModuleSummaryIndex.h b/llvm/include/llvm/IR/ModuleSummaryIndex.h
index 65e428a3adea7..77430c5cb5ea1 100644
--- a/llvm/include/llvm/IR/ModuleSummaryIndex.h
+++ b/llvm/include/llvm/IR/ModuleSummaryIndex.h
@@ -27,6 +27,7 @@
 #include "llvm/IR/ConstantRange.h"
 #include "llvm/IR/GlobalValue.h"
 #include "llvm/IR/Module.h"
+#include "llvm/ProfileData/MemProfCommon.h"
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/InterleavedRange.h"
@@ -306,13 +307,7 @@ template <> struct DenseMapInfo<ValueInfo> {
   static unsigned getHashValue(ValueInfo I) { return hash_value(I.getRef()); }
 };
 
-// For optional hinted size reporting, holds a pair of the full stack id
-// (pre-trimming, from the full context in the profile), and the associated
-// total profiled size.
-struct ContextTotalSize {
-  uint64_t FullStackId;
-  uint64_t TotalSize;
-};
+
 
 /// Summary of memprof callsite metadata.
 struct CallsiteInfo {
@@ -350,19 +345,6 @@ inline raw_ostream &operator<<(raw_ostream &OS, const CallsiteInfo &SNI) {
   return OS;
 }
 
-// Allocation type assigned to an allocation reached by a given context.
-// More can be added, now this is cold, notcold and hot.
-// Values should be powers of two so that they can be ORed, in particular to
-// track allocations that have different behavior with different calling
-// contexts.
-enum class AllocationType : uint8_t {
-  None = 0,
-  NotCold = 1,
-  Cold = 2,
-  Hot = 4,
-  All = 7 // This should always be set to the OR of all values.
-};
-
 /// Summary of a single MIB in a memprof metadata on allocations.
 struct MIBInfo {
   // The allocation type for this profiled context.
diff --git a/llvm/include/llvm/ProfileData/MemProfCommon.h b/llvm/include/llvm/ProfileData/MemProfCommon.h
new file mode 100644
index 0000000000000..4097ccb651188
--- /dev/null
+++ b/llvm/include/llvm/ProfileData/MemProfCommon.h
@@ -0,0 +1,44 @@
+//===- MemProfCommon.h - MemProf support ----------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file contains common types used by different parts of the MemProf code.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_PROFILEDATA_MEMPROFCOMMON_H
+#define LLVM_PROFILEDATA_MEMPROFCOMMON_H
+
+#include <cstdint>
+
+namespace llvm {
+
+// For optional hinted size reporting, holds a pair of the full stack id
+// (pre-trimming, from the full context in the profile), and the associated
+// total profiled size.
+struct ContextTotalSize {
+  uint64_t FullStackId;
+  uint64_t TotalSize;
+};
+
+// Allocation type assigned to an allocation reached by a given context.
+// More can be added, now this is cold, notcold and hot.
+// Values should be powers of two so that they can be ORed, in particular to
+// track allocations that have different behavior with different calling
+// contexts.
+enum class AllocationType : uint8_t {
+  None = 0,
+  NotCold = 1,
+  Cold = 2,
+  Hot = 4,
+  All = 7 // This should always be set to the OR of all values.
+};
+
+} // namespace llvm
+ 
+#endif // LLVM_PROFILEDATA_MEMPROFCOMMON_H
+
diff --git a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
index 5982476f3994e..6538311571529 100644
--- a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
@@ -46,6 +46,7 @@
 #include "llvm/Transforms/Utils/ModuleUtils.h"
 #include <map>
 #include <set>
+#include <unordered_set>
 
 using namespace llvm;
 using namespace llvm::memprof;

@github-actions
Copy link

github-actions bot commented May 19, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@snehasish snehasish force-pushed the users/snehasish/05-19-_nfc_memprof_move_types_shared_between_analysis_profiledata_and_modulesummary_core_to_a_separate_header branch from d4413c6 to 8751ae1 Compare May 19, 2025 07:36
Copy link
Contributor

@teresajohnson teresajohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with one question

@snehasish snehasish force-pushed the users/snehasish/05-16-_nfc_memprof_add_the_llvm_license_text_and_minor_clean_up branch from 532d85a to 36aeb3a Compare May 19, 2025 22:15
@snehasish snehasish force-pushed the users/snehasish/05-19-_nfc_memprof_move_types_shared_between_analysis_profiledata_and_modulesummary_core_to_a_separate_header branch from 8751ae1 to 305e2bd Compare May 19, 2025 22:15
Copy link
Author

snehasish commented May 19, 2025

Merge activity

  • May 19, 7:09 PM EDT: A user started a stack merge that includes this pull request via Graphite.
  • May 19, 7:25 PM EDT: Graphite rebased this pull request as part of a merge.
  • May 19, 7:27 PM EDT: @snehasish merged this pull request with Graphite.

@snehasish snehasish force-pushed the users/snehasish/05-16-_nfc_memprof_add_the_llvm_license_text_and_minor_clean_up branch from 36aeb3a to 1b82b50 Compare May 19, 2025 23:22
Base automatically changed from users/snehasish/05-16-_nfc_memprof_add_the_llvm_license_text_and_minor_clean_up to main May 19, 2025 23:24
@snehasish snehasish force-pushed the users/snehasish/05-19-_nfc_memprof_move_types_shared_between_analysis_profiledata_and_modulesummary_core_to_a_separate_header branch from 305e2bd to f8b6b3c Compare May 19, 2025 23:24
@snehasish snehasish merged commit 4cfbe55 into main May 19, 2025
6 of 9 checks passed
@snehasish snehasish deleted the users/snehasish/05-19-_nfc_memprof_move_types_shared_between_analysis_profiledata_and_modulesummary_core_to_a_separate_header branch May 19, 2025 23:27
@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-amdgpu-runtime-2 running on rocm-worker-hw-02 while building llvm at step 5 "compile-openmp".

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

Here is the relevant piece of the build log for the reference
Step 5 (compile-openmp) failure: build (failure)
...
14.974 [794/11/3825] Linking CXX shared library lib/libLLVMSymbolize.so.21.0git
14.982 [793/11/3826] Creating library symlink lib/libLLVMSymbolize.so
14.996 [787/16/3827] Linking CXX static library lib/libLLVMCFIVerify_static.a
15.038 [787/15/3828] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
15.045 [786/15/3829] Linking CXX shared library lib/libLLVMCFIVerify.so.21.0git
15.045 [785/15/3830] Linking CXX executable bin/sanstats
15.047 [785/14/3831] Creating library symlink lib/libLLVMDebuginfod.so
15.053 [782/16/3832] Creating library symlink lib/libLLVMCFIVerify.so
15.071 [782/15/3833] Linking CXX executable bin/llvm-xray
15.101 [782/14/3834] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /usr/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-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/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.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/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.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/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.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::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x3e): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x56): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xe4): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xfb): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOFuncName[abi:cxx11](llvm::Function const&, bool)':
InstrProf.cpp:(.text._ZN4llvm16getIRPGOFuncNameB5cxx11ERKNS_8FunctionEb+0x34): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOName[abi:cxx11](llvm::GlobalVariable const&, bool)':
InstrProf.cpp:(.text._ZN4llvm10getPGONameB5cxx11ERKNS_14GlobalVariableEb+0x34): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) 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+0x9): 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+0x51): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x5d): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x79): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x85): 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+0xa2): undefined reference to `llvm::MDBuilder::createString(llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xe7): undefined reference to `llvm::Type::getInt32Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xf4): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xff): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x144): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x151): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x15c): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1f8): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x205): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x210): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x266): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x273): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x27e): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2d1): 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+0x2e3): 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+0x20): undefined reference to `llvm::Value::getMetadataImpl(unsigned int) const'

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

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

Here is the relevant piece of the build log for the reference
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))

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-rhel-9-cmake-build-only running on rocm-docker-rhel-9 while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[5930/7799] Creating library symlink lib/libLLVMSymbolize.so
[5931/7799] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.21.0git
[5932/7799] Creating library symlink lib/libLLVMDebugInfoLogicalView.so
[5933/7799] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
[5934/7799] Creating library symlink lib/libLLVMDebuginfod.so
[5935/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/SimpleStreamChecker.cpp.o
[5936/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/SmartPtrChecker.cpp.o
[5937/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/SmartPtrModeling.cpp.o
[5938/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/StackAddrEscapeChecker.cpp.o
[5939/7799] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /usr/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-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/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/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/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/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/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::lookupPGONameFromMetadata(llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL25lookupPGONameFromMetadataEPNS_6MDNodeE+0x44): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x2e): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x46): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xc4): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xdb): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOFuncName[abi:cxx11](llvm::Function const&, bool)':
InstrProf.cpp:(.text._ZN4llvm16getIRPGOFuncNameB5cxx11ERKNS_8FunctionEb+0x1c): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOName[abi:cxx11](llvm::GlobalVariable const&, bool)':
InstrProf.cpp:(.text._ZN4llvm10getPGONameB5cxx11ERKNS_14GlobalVariableEb+0x1c): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) 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+0x5): undefined reference to `llvm::GlobalValue::isDeclaration() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x2c): undefined reference to `llvm::ConstantDataSequential::isCString() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x38): undefined reference to `llvm::ConstantDataSequential::isCString() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x4d): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x59): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x79): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x85): 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+0x7d): undefined reference to `llvm::MDBuilder::createString(llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xc2): undefined reference to `llvm::Type::getInt32Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xcf): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xda): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x11f): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x12c): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x137): 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+0x1dd): 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+0x23e): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x24b): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x256): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2b1): 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+0x2c3): 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'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[5930/7799] Creating library symlink lib/libLLVMSymbolize.so
[5931/7799] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.21.0git
[5932/7799] Creating library symlink lib/libLLVMDebugInfoLogicalView.so
[5933/7799] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
[5934/7799] Creating library symlink lib/libLLVMDebuginfod.so
[5935/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/SimpleStreamChecker.cpp.o
[5936/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/SmartPtrChecker.cpp.o
[5937/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/SmartPtrModeling.cpp.o
[5938/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/StackAddrEscapeChecker.cpp.o
[5939/7799] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /usr/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-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/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/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/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/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/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::lookupPGONameFromMetadata(llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL25lookupPGONameFromMetadataEPNS_6MDNodeE+0x44): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x2e): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x46): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xc4): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xdb): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOFuncName[abi:cxx11](llvm::Function const&, bool)':
InstrProf.cpp:(.text._ZN4llvm16getIRPGOFuncNameB5cxx11ERKNS_8FunctionEb+0x1c): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOName[abi:cxx11](llvm::GlobalVariable const&, bool)':
InstrProf.cpp:(.text._ZN4llvm10getPGONameB5cxx11ERKNS_14GlobalVariableEb+0x1c): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) 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+0x5): undefined reference to `llvm::GlobalValue::isDeclaration() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x2c): undefined reference to `llvm::ConstantDataSequential::isCString() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x38): undefined reference to `llvm::ConstantDataSequential::isCString() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x4d): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x59): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x79): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x85): 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+0x7d): undefined reference to `llvm::MDBuilder::createString(llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xc2): undefined reference to `llvm::Type::getInt32Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xcf): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xda): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x11f): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x12c): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x137): 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+0x1dd): 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+0x23e): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x24b): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x256): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2b1): 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+0x2c3): 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'

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-ubuntu-22-cmake-build-only running on rocm-docker-ubu-22 while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[6033/7799] Creating library symlink lib/libLLVMDebugInfoLogicalView.so
[6034/7799] Linking CXX executable tools/flang/unittests/Decimal/quick-sanity-test.test
[6035/7799] Linking CXX executable bin/llvm-bcanalyzer
[6036/7799] Building CXX object tools/clang/tools/clang-installapi/CMakeFiles/clang-installapi.dir/Options.cpp.o
[6037/7799] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
[6038/7799] Creating library symlink lib/libLLVMDebuginfod.so
[6039/7799] Building CXX object tools/flang/tools/f18-parse-demo/CMakeFiles/f18-parse-demo.dir/stub-evaluate.cpp.o
[6040/7799] Linking CXX executable bin/llvm-debuginfod
[6041/7799] Linking CXX executable bin/llvm-debuginfod-find
[6042/7799] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /usr/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-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/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/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/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/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/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/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::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x3e): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x56): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xe4): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xfb): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOFuncName[abi:cxx11](llvm::Function const&, bool)':
InstrProf.cpp:(.text._ZN4llvm16getIRPGOFuncNameB5cxx11ERKNS_8FunctionEb+0x34): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOName[abi:cxx11](llvm::GlobalVariable const&, bool)':
InstrProf.cpp:(.text._ZN4llvm10getPGONameB5cxx11ERKNS_14GlobalVariableEb+0x34): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) 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+0x9): 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+0x51): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x5d): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x79): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x85): 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+0xa2): undefined reference to `llvm::MDBuilder::createString(llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xe7): undefined reference to `llvm::Type::getInt32Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xf4): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xff): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x144): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x151): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x15c): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1f8): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x205): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x210): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x266): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x273): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x27e): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2d1): 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+0x2e3): 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+0x20): undefined reference to `llvm::Value::getMetadataImpl(unsigned int) const'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[6033/7799] Creating library symlink lib/libLLVMDebugInfoLogicalView.so
[6034/7799] Linking CXX executable tools/flang/unittests/Decimal/quick-sanity-test.test
[6035/7799] Linking CXX executable bin/llvm-bcanalyzer
[6036/7799] Building CXX object tools/clang/tools/clang-installapi/CMakeFiles/clang-installapi.dir/Options.cpp.o
[6037/7799] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
[6038/7799] Creating library symlink lib/libLLVMDebuginfod.so
[6039/7799] Building CXX object tools/flang/tools/f18-parse-demo/CMakeFiles/f18-parse-demo.dir/stub-evaluate.cpp.o
[6040/7799] Linking CXX executable bin/llvm-debuginfod
[6041/7799] Linking CXX executable bin/llvm-debuginfod-find
[6042/7799] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /usr/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-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/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/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/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/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/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/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::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x3e): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x56): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xe4): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xfb): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOFuncName[abi:cxx11](llvm::Function const&, bool)':
InstrProf.cpp:(.text._ZN4llvm16getIRPGOFuncNameB5cxx11ERKNS_8FunctionEb+0x34): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOName[abi:cxx11](llvm::GlobalVariable const&, bool)':
InstrProf.cpp:(.text._ZN4llvm10getPGONameB5cxx11ERKNS_14GlobalVariableEb+0x34): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) 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+0x9): 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+0x51): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x5d): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x79): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x85): 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+0xa2): undefined reference to `llvm::MDBuilder::createString(llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xe7): undefined reference to `llvm::Type::getInt32Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xf4): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xff): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x144): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x151): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x15c): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1f8): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x205): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x210): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x266): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x273): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x27e): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2d1): 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+0x2e3): 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+0x20): undefined reference to `llvm::Value::getMetadataImpl(unsigned int) const'

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

LLVM Buildbot has detected a new failure on builder hip-third-party-libs-test running on ext_buildbot_hw_05-hip-docker while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py --jobs=32' (failure)
...
[6259/7799] Linking CXX executable bin/llvm-pdbutil
[6260/7799] Creating library symlink lib/libLLVMSymbolize.so
[6261/7799] Linking CXX static library lib/libLLVMCFIVerify_static.a
[6262/7799] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
[6263/7799] Linking CXX shared library lib/libLLVMCFIVerify.so.21.0git
[6264/7799] Linking CXX executable bin/sanstats
[6265/7799] Creating library symlink lib/libLLVMDebuginfod.so
[6266/7799] Creating library symlink lib/libLLVMCFIVerify.so
[6267/7799] Linking CXX executable bin/llvm-xray
[6268/7799] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /usr/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-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/botworker/bbot/hip-third-party-libs-test/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/botworker/bbot/hip-third-party-libs-test/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/botworker/bbot/hip-third-party-libs-test/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::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x3e): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x56): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xe4): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xfb): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOFuncName[abi:cxx11](llvm::Function const&, bool)':
InstrProf.cpp:(.text._ZN4llvm16getIRPGOFuncNameB5cxx11ERKNS_8FunctionEb+0x34): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOName[abi:cxx11](llvm::GlobalVariable const&, bool)':
InstrProf.cpp:(.text._ZN4llvm10getPGONameB5cxx11ERKNS_14GlobalVariableEb+0x34): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) 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+0x9): 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+0x51): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x5d): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x79): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x85): 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+0xa2): undefined reference to `llvm::MDBuilder::createString(llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xe7): undefined reference to `llvm::Type::getInt32Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xf4): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xff): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x144): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x151): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x15c): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1f8): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x205): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x210): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x266): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x273): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x27e): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2d1): 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+0x2e3): 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+0x20): undefined reference to `llvm::Value::getMetadataImpl(unsigned int) const'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[6259/7799] Linking CXX executable bin/llvm-pdbutil
[6260/7799] Creating library symlink lib/libLLVMSymbolize.so
[6261/7799] Linking CXX static library lib/libLLVMCFIVerify_static.a
[6262/7799] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
[6263/7799] Linking CXX shared library lib/libLLVMCFIVerify.so.21.0git
[6264/7799] Linking CXX executable bin/sanstats
[6265/7799] Creating library symlink lib/libLLVMDebuginfod.so
[6266/7799] Creating library symlink lib/libLLVMCFIVerify.so
[6267/7799] Linking CXX executable bin/llvm-xray
[6268/7799] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /usr/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-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/botworker/bbot/hip-third-party-libs-test/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/botworker/bbot/hip-third-party-libs-test/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/botworker/bbot/hip-third-party-libs-test/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::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x3e): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x56): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xe4): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xfb): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOFuncName[abi:cxx11](llvm::Function const&, bool)':
InstrProf.cpp:(.text._ZN4llvm16getIRPGOFuncNameB5cxx11ERKNS_8FunctionEb+0x34): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOName[abi:cxx11](llvm::GlobalVariable const&, bool)':
InstrProf.cpp:(.text._ZN4llvm10getPGONameB5cxx11ERKNS_14GlobalVariableEb+0x34): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) 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+0x9): 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+0x51): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x5d): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x79): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x85): 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+0xa2): undefined reference to `llvm::MDBuilder::createString(llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xe7): undefined reference to `llvm::Type::getInt32Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xf4): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xff): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x144): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x151): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x15c): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1f8): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x205): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x210): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x266): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x273): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x27e): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2d1): 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+0x2e3): 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+0x20): undefined reference to `llvm::Value::getMetadataImpl(unsigned int) const'

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

LLVM Buildbot has detected a new failure on builder bolt-aarch64-ubuntu-clang-shared running on bolt-worker-aarch64 while building llvm at step 7 "build-bolt".

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

Here is the relevant piece of the build log for the reference
Step 7 (build-bolt) failure: build (failure)
...
161.673 [80/4/2098] Creating library symlink lib/libLLVMJITLink.so
161.674 [80/3/2099] Linking CXX shared library lib/libLLVMDebugInfoPDB.so.21.0git
161.674 [79/3/2100] Linking CXX shared library lib/libLLVMObjectYAML.so.21.0git
161.683 [78/3/2101] Creating library symlink lib/libLLVMDebugInfoPDB.so
161.683 [78/2/2102] Creating library symlink lib/libLLVMObjectYAML.so
161.711 [78/1/2103] Linking CXX shared library lib/libLLVMDebugInfoGSYM.so.21.0git
161.720 [77/1/2104] Creating library symlink lib/libLLVMDebugInfoGSYM.so
161.757 [76/1/2105] Linking CXX shared library lib/libLLVMSymbolize.so.21.0git
161.766 [75/1/2106] Creating library symlink lib/libLLVMSymbolize.so
161.807 [74/1/2107] 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=mold -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:/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang-shared/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/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang-shared/build/lib && :
mold: error: undefined symbol: llvm::ConstantDataSequential::getRawDataValues() const
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*))>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::ConstantDataSequential::getAsCString() const)
mold: error: undefined symbol: llvm::LLVMContext::diagnose(llvm::DiagnosticInfo const&)
>>> referenced by SampleProfReader.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfReader.cpp.o:(llvm::sampleprof::SampleProfileReaderText::readImpl())>>> referenced by SampleProfReader.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfReader.cpp.o:(llvm::sampleprof::SampleProfileReaderText::readImpl())>>> referenced by SampleProfReader.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfReader.cpp.o:(llvm::sampleprof::SampleProfileReaderText::readImpl())>>> referenced 11 more times

mold: 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

mold: error: undefined symbol: llvm::Value::getContext() const
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef, llvm::StringRef))
mold: error: undefined symbol: llvm::Instruction::setMetadata(unsigned int, llvm::MDNode*)
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int))
mold: error: undefined symbol: llvm::GlobalVariable::GlobalVariable(llvm::Module&, llvm::Type*, bool, llvm::GlobalValue::LinkageTypes, llvm::Constant*, llvm::Twine const&, llvm::GlobalVariable*, llvm::GlobalValue::ThreadLocalMode, std::optional<unsigned int>, 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
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::createProfileFileNameVar(llvm::Module&, llvm::StringRef))
mold: error: undefined symbol: llvm::GlobalValue::getGUIDAssumingExternalLinkage(llvm::StringRef)
>>> referenced by MemProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProf.cpp.o:(llvm::memprof::getGUID(llvm::StringRef))>>> referenced by SampleProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProf.cpp.o:(llvm::sampleprof::FunctionSamples::findFunctionSamplesAt(llvm::sampleprof::LineLocation const&, llvm::StringRef, llvm::sampleprof::SampleProfileReaderItaniumRemapper*, llvm::sampleprof::HashKeyMap<std::unordered_map, llvm::sampleprof::FunctionId, llvm::sampleprof::FunctionId> const*) const)>>> referenced by SampleProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProf.cpp.o:(llvm::sampleprof::FunctionSamples::findFunctionSamplesAt(llvm::sampleprof::LineLocation const&, llvm::StringRef, llvm::sampleprof::SampleProfileReaderItaniumRemapper*, llvm::sampleprof::HashKeyMap<std::unordered_map, llvm::sampleprof::FunctionId, llvm::sampleprof::FunctionId> const*) const)>>> referenced 5 more times

mold: error: undefined symbol: llvm::ConstantDataSequential::isCString() const
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*))>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::ConstantDataSequential::getAsCString() const)
mold: error: undefined symbol: llvm::Function::getFnAttribute(llvm::StringRef) const

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

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/9719

Here is the relevant piece of the build log for the reference
Step 4 (build stage 1) failure: 'ninja' (failure)
...
[5477/6401] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
[5478/6401] Creating library symlink lib/libLLVMDebuginfod.so
[5479/6401] Linking CXX shared library lib/libLLVMCFIVerify.so.21.0git
[5480/6401] Creating library symlink lib/libLLVMCFIVerify.so
[5481/6401] Linking CXX executable bin/llvm-xray
[5482/6401] Linking CXX executable bin/llvm-symbolizer
[5483/6401] Linking CXX executable bin/llvm-debuginfod-find
[5484/6401] Generating ../../bin/llvm-addr2line
[5485/6401] Linking CXX executable bin/llvm-debuginfod
[5486/6401] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /usr/lib64/ccache/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-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-noexcept-type -Wno-unnecessary-virtual-specifier -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -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,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-multistage-test/clang-ppc64le-multistage/stage1/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-multistage-test/clang-ppc64le-multistage/stage1/lib && :
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: In function `llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef, llvm::StringRef)':
InstrProf.cpp:(.text._ZN4llvmL21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefES2_+0x3c): undefined reference to `llvm::Value::getName() const'
InstrProf.cpp:(.text._ZN4llvmL21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefES2_+0x78): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
InstrProf.cpp:(.text._ZN4llvmL21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefES2_+0xb8): undefined reference to `llvm::Value::getContext() const'
InstrProf.cpp:(.text._ZN4llvmL21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefES2_+0xcc): undefined reference to `llvm::MDString::get(llvm::LLVMContext&, llvm::StringRef)'
InstrProf.cpp:(.text._ZN4llvmL21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefES2_+0xec): undefined reference to `llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'
InstrProf.cpp:(.text._ZN4llvmL21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefES2_+0x104): undefined reference to `llvm::Value::setMetadata(llvm::StringRef, llvm::MDNode*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: In function `llvm::lookupPGONameFromMetadata(llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL25lookupPGONameFromMetadataEPNS_6MDNodeE+0x50): undefined reference to `llvm::MDString::getString() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: In function `llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x50): undefined reference to `llvm::Value::getName() const'
InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x70): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x124): undefined reference to `llvm::Value::getName() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: In function `llvm::getIRPGOFuncName[abi:cxx11](llvm::Function const&, bool)':
InstrProf.cpp:(.text._ZN4llvm16getIRPGOFuncNameB5cxx11ERKNS_8FunctionEb+0x50): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: In function `llvm::getPGOName[abi:cxx11](llvm::GlobalVariable const&, bool)':
InstrProf.cpp:(.text._ZN4llvm10getPGONameB5cxx11ERKNS_14GlobalVariableEb+0x50): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: In function `llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias.22]':
InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x1c): undefined reference to `llvm::GlobalValue::isDeclaration() const'
InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x48): undefined reference to `llvm::ConstantDataSequential::isCString() const'
InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x5c): undefined reference to `llvm::ConstantDataSequential::isCString() const'
InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x74): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x88): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0xc8): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0xdc): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: In function `llvm::getPGOFuncNameMetadata(llvm::Function const&) [clone .localalias.3]':
InstrProf.cpp:(.text._ZN4llvm22getPGOFuncNameMetadataERKNS_8FunctionE+0x40): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: In function `llvm::isIRPGOFlagSet(llvm::Module const*)':
InstrProf.cpp:(.text._ZN4llvm14isIRPGOFlagSetEPKNS_6ModuleE+0x44): undefined reference to `llvm::Module::getGlobalVariable(llvm::StringRef, bool) const'
InstrProf.cpp:(.text._ZN4llvm14isIRPGOFlagSetEPKNS_6ModuleE+0x68): undefined reference to `llvm::GlobalValue::isDeclaration() const'
InstrProf.cpp:(.text._ZN4llvm14isIRPGOFlagSetEPKNS_6ModuleE+0x94): undefined reference to `llvm::GlobalValue::isDeclaration() const'
InstrProf.cpp:(.text._ZN4llvm14isIRPGOFlagSetEPKNS_6ModuleE+0xa8): undefined reference to `llvm::GlobalValue::isDeclaration() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: In function `llvm::canRenameComdatFunc(llvm::Function const&, bool)':
InstrProf.cpp:(.text._ZN4llvm19canRenameComdatFuncERKNS_8FunctionEb+0x24): undefined reference to `llvm::Value::getName() const'
InstrProf.cpp:(.text._ZN4llvm19canRenameComdatFuncERKNS_8FunctionEb+0x14c): undefined reference to `llvm::Function::hasAddressTaken(llvm::User const**, bool, bool, bool, bool, bool) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: In function `llvm::createProfileFileNameVar(llvm::Module&, llvm::StringRef)':
InstrProf.cpp:(.text._ZN4llvm24createProfileFileNameVarERNS_6ModuleENS_9StringRefE+0x3c): undefined reference to `llvm::ConstantDataArray::getString(llvm::LLVMContext&, llvm::StringRef, bool)'

Copy link
Contributor

@chapuni chapuni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you introduced weird deps. I suggest reverting.


LINK_COMPONENTS
BitstreamReader
Core
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like ProfileData still depends on Core.

@snehasish
Copy link
Author

Looks like you introduced weird deps. I suggest reverting.

Fixed in #140650

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

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

Here is the relevant piece of the build log for the reference
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

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-ubuntu running on as-builder-7 while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
61.503 [157/19/2563] Linking CXX shared library lib/libLLVMX86Disassembler.so.21.0git
61.517 [156/19/2564] Linking CXX static library lib/libLLVMCFIVerify_static.a
61.525 [156/18/2565] Creating library symlink lib/libLLVMX86Disassembler.so
61.554 [156/17/2566] Linking CXX executable bin/sanstats
61.561 [156/16/2567] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
61.564 [155/16/2568] Linking CXX shared library lib/libLLVMCFIVerify.so.21.0git
61.584 [154/16/2569] Creating library symlink lib/libLLVMDebuginfod.so
61.586 [151/18/2570] Linking CXX executable bin/llvm-xray
61.587 [151/17/2571] Creating library symlink lib/libLLVMCFIVerify.so
61.651 [151/16/2572] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /usr/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 -fuse-ld=gold   -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/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/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/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib && :
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::lookupPGONameFromMetadata(llvm::MDNode*):(.text._ZN4llvmL25lookupPGONameFromMetadataEPNS_6MDNodeE+0x59): error: undefined reference to 'llvm::MDString::getString() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x9): error: undefined reference to 'llvm::GlobalValue::isDeclaration() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x2f): error: undefined reference to 'llvm::ConstantDataSequential::isCString() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x3b): error: undefined reference to 'llvm::ConstantDataSequential::isCString() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x50): error: undefined reference to 'llvm::ConstantDataSequential::isString(unsigned int) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x5c): error: undefined reference to 'llvm::ConstantDataSequential::getRawDataValues() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x79): error: undefined reference to 'llvm::ConstantDataSequential::isString(unsigned int) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x85): error: undefined reference to 'llvm::ConstantDataSequential::getRawDataValues() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xa2): error: undefined reference to 'llvm::MDBuilder::createString(llvm::StringRef)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xe7): error: undefined reference to 'llvm::Type::getInt32Ty(llvm::LLVMContext&)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xf4): error: undefined reference to 'llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xff): error: undefined reference to 'llvm::MDBuilder::createConstant(llvm::Constant*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x147): error: undefined reference to 'llvm::Type::getInt64Ty(llvm::LLVMContext&)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x154): error: undefined reference to 'llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x15f): error: undefined reference to 'llvm::MDBuilder::createConstant(llvm::Constant*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x200): error: undefined reference to 'llvm::Type::getInt64Ty(llvm::LLVMContext&)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x20d): error: undefined reference to 'llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x218): error: undefined reference to 'llvm::MDBuilder::createConstant(llvm::Constant*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x26e): error: undefined reference to 'llvm::Type::getInt64Ty(llvm::LLVMContext&)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x27b): error: undefined reference to 'llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x286): error: undefined reference to 'llvm::MDBuilder::createConstant(llvm::Constant*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2e1): error: undefined reference to 'llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2f3): error: undefined reference to 'llvm::Instruction::setMetadata(unsigned int, llvm::MDNode*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::mayHaveValueProfileOfKind(llvm::Instruction const&, llvm::InstrProfValueKind) [clone .localalias]:(.text._ZN4llvm25mayHaveValueProfileOfKindERKNS_11InstructionENS_18InstrProfValueKindE+0x20): error: undefined reference to 'llvm::Value::getMetadataImpl(unsigned int) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::mayHaveValueProfileOfKind(llvm::Instruction const&, llvm::InstrProfValueKind) [clone .localalias]:(.text._ZN4llvm25mayHaveValueProfileOfKindERKNS_11InstructionENS_18InstrProfValueKindE+0x60): error: undefined reference to 'llvm::MDString::getString() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameMetadata(llvm::Function const&):(.text._ZN4llvm22getPGOFuncNameMetadataERKNS_8FunctionE+0x11): error: undefined reference to 'llvm::Value::getMetadata(llvm::StringRef) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x31): error: undefined reference to 'llvm::Value::getName() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x5d): error: undefined reference to 'llvm::Value::getMetadata(llvm::StringRef) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x8c): error: undefined reference to 'llvm::Value::getContext() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x9d): error: undefined reference to 'llvm::MDString::get(llvm::LLVMContext&, llvm::StringRef)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0xb9): error: undefined reference to 'llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0xe8): error: undefined reference to 'llvm::Value::setMetadata(llvm::StringRef, llvm::MDNode*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0x31): error: undefined reference to 'llvm::Value::getName() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0x5d): error: undefined reference to 'llvm::Value::getMetadata(llvm::StringRef) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0x8c): error: undefined reference to 'llvm::Value::getContext() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0x9d): error: undefined reference to 'llvm::MDString::get(llvm::LLVMContext&, llvm::StringRef)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0xb9): error: undefined reference to 'llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx-nvidia-ubuntu running on as-builder-7 while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
57.081 [275/128/2336] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86LowerAMXIntrinsics.cpp.o
57.084 [274/128/2337] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86InsertPrefetch.cpp.o
57.086 [273/128/2338] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86MachineFunctionInfo.cpp.o
57.087 [272/128/2339] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ShuffleDecodeConstantPool.cpp.o
57.089 [271/128/2340] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86TargetObjectFile.cpp.o
57.091 [270/128/2341] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86WinEHState.cpp.o
57.093 [269/128/2342] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86ShuffleDecode.cpp.o
57.094 [268/128/2343] Building CXX object lib/Target/X86/MCTargetDesc/CMakeFiles/LLVMX86Desc.dir/X86MCAsmInfo.cpp.o
57.095 [267/128/2344] Building CXX object tools/lto/CMakeFiles/LTO.dir/LTODisassembler.cpp.o
57.097 [266/128/2345] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /usr/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 -fuse-ld=gold   -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/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/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/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/lib && :
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::lookupPGONameFromMetadata(llvm::MDNode*):(.text._ZN4llvmL25lookupPGONameFromMetadataEPNS_6MDNodeE+0x59): error: undefined reference to 'llvm::MDString::getString() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x9): error: undefined reference to 'llvm::GlobalValue::isDeclaration() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x2f): error: undefined reference to 'llvm::ConstantDataSequential::isCString() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x3b): error: undefined reference to 'llvm::ConstantDataSequential::isCString() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x50): error: undefined reference to 'llvm::ConstantDataSequential::isString(unsigned int) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x5c): error: undefined reference to 'llvm::ConstantDataSequential::getRawDataValues() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x79): error: undefined reference to 'llvm::ConstantDataSequential::isString(unsigned int) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x85): error: undefined reference to 'llvm::ConstantDataSequential::getRawDataValues() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xa2): error: undefined reference to 'llvm::MDBuilder::createString(llvm::StringRef)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xe7): error: undefined reference to 'llvm::Type::getInt32Ty(llvm::LLVMContext&)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xf4): error: undefined reference to 'llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xff): error: undefined reference to 'llvm::MDBuilder::createConstant(llvm::Constant*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x147): error: undefined reference to 'llvm::Type::getInt64Ty(llvm::LLVMContext&)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x154): error: undefined reference to 'llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x15f): error: undefined reference to 'llvm::MDBuilder::createConstant(llvm::Constant*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x200): error: undefined reference to 'llvm::Type::getInt64Ty(llvm::LLVMContext&)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x20d): error: undefined reference to 'llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x218): error: undefined reference to 'llvm::MDBuilder::createConstant(llvm::Constant*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x26e): error: undefined reference to 'llvm::Type::getInt64Ty(llvm::LLVMContext&)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x27b): error: undefined reference to 'llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x286): error: undefined reference to 'llvm::MDBuilder::createConstant(llvm::Constant*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2e1): error: undefined reference to 'llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2f3): error: undefined reference to 'llvm::Instruction::setMetadata(unsigned int, llvm::MDNode*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::mayHaveValueProfileOfKind(llvm::Instruction const&, llvm::InstrProfValueKind) [clone .localalias]:(.text._ZN4llvm25mayHaveValueProfileOfKindERKNS_11InstructionENS_18InstrProfValueKindE+0x20): error: undefined reference to 'llvm::Value::getMetadataImpl(unsigned int) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::mayHaveValueProfileOfKind(llvm::Instruction const&, llvm::InstrProfValueKind) [clone .localalias]:(.text._ZN4llvm25mayHaveValueProfileOfKindERKNS_11InstructionENS_18InstrProfValueKindE+0x60): error: undefined reference to 'llvm::MDString::getString() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameMetadata(llvm::Function const&):(.text._ZN4llvm22getPGOFuncNameMetadataERKNS_8FunctionE+0x11): error: undefined reference to 'llvm::Value::getMetadata(llvm::StringRef) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x31): error: undefined reference to 'llvm::Value::getName() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x5d): error: undefined reference to 'llvm::Value::getMetadata(llvm::StringRef) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x8c): error: undefined reference to 'llvm::Value::getContext() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x9d): error: undefined reference to 'llvm::MDString::get(llvm::LLVMContext&, llvm::StringRef)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0xb9): error: undefined reference to 'llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0xe8): error: undefined reference to 'llvm::Value::setMetadata(llvm::StringRef, llvm::MDNode*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0x31): error: undefined reference to 'llvm::Value::getName() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0x5d): error: undefined reference to 'llvm::Value::getMetadata(llvm::StringRef) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0x8c): error: undefined reference to 'llvm::Value::getContext() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0x9d): error: undefined reference to 'llvm::MDString::get(llvm::LLVMContext&, llvm::StringRef)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0xb9): error: undefined reference to 'llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

LLVM Buildbot has detected a new failure on builder bolt-x86_64-ubuntu-shared running on bolt-worker while building llvm at step 5 "build-bolt".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-bolt) failure: build (failure)
...
41.455 [80/5/2101] Linking CXX shared library lib/libLLVMObjectYAML.so.21.0git
41.457 [79/5/2102] Creating library symlink lib/libLLVMDebugInfoDWARF.so
41.459 [78/5/2103] Creating library symlink lib/libLLVMDebugInfoPDB.so
41.461 [78/4/2104] Creating library symlink lib/libLLVMJITLink.so
41.461 [78/3/2105] Creating library symlink lib/libLLVMObjectYAML.so
41.483 [78/2/2106] Linking CXX shared library lib/libLLVMDebugInfoGSYM.so.21.0git
41.489 [77/2/2107] Creating library symlink lib/libLLVMDebugInfoGSYM.so
41.515 [76/2/2108] Linking CXX shared library lib/libLLVMSymbolize.so.21.0git
41.521 [75/2/2109] Creating library symlink lib/libLLVMSymbolize.so
41.558 [74/2/2110] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /usr/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-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 -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:/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/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/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/lib && :
ld.lld: error: undefined symbol: llvm::GlobalValue::getGUIDAssumingExternalLinkage(llvm::StringRef)
>>> referenced by MemProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProf.cpp.o:(llvm::memprof::getGUID(llvm::StringRef))
>>> referenced by SampleProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProf.cpp.o:(llvm::sampleprof::FunctionSamples::findFunctionSamplesAt(llvm::sampleprof::LineLocation const&, llvm::StringRef, llvm::sampleprof::SampleProfileReaderItaniumRemapper*, llvm::sampleprof::HashKeyMap<std::unordered_map, llvm::sampleprof::FunctionId, llvm::sampleprof::FunctionId> const*) const (.localalias))
>>> referenced by SampleProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProf.cpp.o:(llvm::sampleprof::FunctionSamples::findFunctionSamplesAt(llvm::sampleprof::LineLocation const&, llvm::StringRef, llvm::sampleprof::SampleProfileReaderItaniumRemapper*, llvm::sampleprof::HashKeyMap<std::unordered_map, llvm::sampleprof::FunctionId, llvm::sampleprof::FunctionId> const*) const (.localalias))
>>> referenced 5 more times

ld.lld: error: undefined symbol: llvm::MDString::getString() const
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::lookupPGONameFromMetadata(llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::mayHaveValueProfileOfKind(llvm::Instruction const&, llvm::InstrProfValueKind) (.localalias))
>>> 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::Value::getName() const
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef))
>>> 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(llvm::GlobalObject const&, bool, llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*))

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

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

LLVM Buildbot has detected a new failure on builder polly-x86_64-linux-shared running on polly-x86_64-gce2 while building llvm at step 5 "build".

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

Here is the relevant piece of the build log for the reference
Step 5 (build) failure: 'ninja' (failure)
...
[2083/4401] Creating library symlink lib/libLLVMJITLink.so
[2084/4401] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
[2085/4401] Creating library symlink lib/libLLVMDebuginfod.so
[2086/4401] Linking CXX shared library lib/libLLVMRuntimeDyld.so.21.0git
[2087/4401] Creating library symlink lib/libLLVMRuntimeDyld.so
[2088/4401] Linking CXX shared library lib/libLLVMTextAPIBinaryReader.so.21.0git
[2089/4401] Creating library symlink lib/libLLVMTextAPIBinaryReader.so
[2090/4401] Creating library symlink lib/libLLVMTelemetry.so
[2091/4401] Building Options.inc...
[2092/4401] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /usr/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-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 -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:/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/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,/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/lib && :
ld.lld: error: undefined symbol: llvm::MDString::getString() const
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::lookupPGONameFromMetadata(llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::mayHaveValueProfileOfKind(llvm::Instruction const&, llvm::InstrProfValueKind) (.localalias))
>>> 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::Value::getName() const
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef))
>>> 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(llvm::GlobalObject const&, bool, llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*))

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::getPGOName[abi:cxx11](llvm::GlobalVariable const&, bool))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getPGOFuncNameMetadata(llvm::Function const&))
>>> referenced 6 more times

ld.lld: error: undefined symbol: llvm::GlobalValue::isDeclaration() const
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) (.localalias))
>>> referenced by InstrProf.cpp

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

LLVM Buildbot has detected a new failure on builder flang-aarch64-sharedlibs running on linaro-flang-aarch64-sharedlibs while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
209.184 [4390/1/3209] Creating library symlink lib/libLLVMSymbolize.so
209.431 [4389/1/3210] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
209.453 [4388/1/3211] Creating library symlink lib/libLLVMDebuginfod.so
209.682 [4387/1/3212] Linking CXX shared library lib/libLLVMDWP.so.21.0git
209.855 [4386/1/3213] Creating library symlink lib/libLLVMDWP.so
210.177 [4385/1/3214] Linking CXX shared library lib/libLLVMJITLink.so.21.0git
210.207 [4384/1/3215] Creating library symlink lib/libLLVMJITLink.so
210.501 [4383/1/3216] Linking CXX shared library lib/libLLVMRuntimeDyld.so.21.0git
210.520 [4382/1/3217] Creating library symlink lib/libLLVMRuntimeDyld.so
210.825 [4381/1/3218] 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 -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,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/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-sharedlibs/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-sharedlibs/build/lib && :
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOFuncName[abi:cxx11](llvm::Function const&, bool)':
InstrProf.cpp:(.text._ZN4llvm16getIRPGOFuncNameB5cxx11ERKNS_8FunctionEb+0x28): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOObjectName[abi:cxx11](llvm::GlobalObject const&, bool, llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameB5cxx11ERKNS_12GlobalObjectEbPNS_6MDNodeE+0x138): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameB5cxx11ERKNS_12GlobalObjectEbPNS_6MDNodeE+0x168): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameB5cxx11ERKNS_12GlobalObjectEbPNS_6MDNodeE+0x1b8): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameB5cxx11ERKNS_12GlobalObjectEbPNS_6MDNodeE+0x1d0): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/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::getPGOFuncName[abi:cxx11](llvm::Function const&, bool, unsigned long)':
InstrProf.cpp:(.text._ZN4llvm14getPGOFuncNameB5cxx11ERKNS_8FunctionEbm+0x3c): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm14getPGOFuncNameB5cxx11ERKNS_8FunctionEbm+0x148): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm14getPGOFuncNameB5cxx11ERKNS_8FunctionEbm+0x1cc): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::lookupPGONameFromMetadata[abi:cxx11](llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL25lookupPGONameFromMetadataB5cxx11EPNS_6MDNodeE+0x70): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOName[abi:cxx11](llvm::GlobalVariable const&, bool)':
InstrProf.cpp:(.text._ZN4llvm10getPGONameB5cxx11ERKNS_14GlobalVariableEb+0x28): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::createPGOFuncNameVar(llvm::Module&, llvm::GlobalValue::LinkageTypes, llvm::StringRef)':
InstrProf.cpp:(.text._ZN4llvm20createPGOFuncNameVarERNS_6ModuleENS_11GlobalValue12LinkageTypesENS_9StringRefE+0xac): undefined reference to `llvm::ConstantDataArray::getString(llvm::LLVMContext&, llvm::StringRef, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm20createPGOFuncNameVarERNS_6ModuleENS_11GlobalValue12LinkageTypesENS_9StringRefE+0xbc): undefined reference to `llvm::User::operator new(unsigned long, llvm::User::IntrusiveOperandsAllocMarker)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm20createPGOFuncNameVarERNS_6ModuleENS_11GlobalValue12LinkageTypesENS_9StringRefE+0x118): undefined reference to `llvm::GlobalVariable::GlobalVariable(llvm::Module&, llvm::Type*, bool, llvm::GlobalValue::LinkageTypes, llvm::Constant*, llvm::Twine const&, llvm::GlobalVariable*, llvm::GlobalValue::ThreadLocalMode, std::optional<unsigned int>, bool)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::InstrProfSymtab::create(llvm::Module&, bool, bool)':
InstrProf.cpp:(.text._ZN4llvm15InstrProfSymtab6createERNS_6ModuleEbb+0x84): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm15InstrProfSymtab6createERNS_6ModuleEbb+0x1bc): undefined reference to `llvm::Value::getMetadataImpl(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm15InstrProfSymtab6createERNS_6ModuleEbb+0x1d0): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::InstrProfSymtab::addVTableWithName(llvm::GlobalVariable&, llvm::StringRef)::$_0::operator()(llvm::StringRef) const':
InstrProf.cpp:(.text._ZZN4llvm15InstrProfSymtab17addVTableWithNameERNS_14GlobalVariableENS_9StringRefEENK3$_0clES3_+0x84): undefined reference to `llvm::GlobalValue::getGUIDAssumingExternalLinkage(llvm::StringRef)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::InstrProfSymtab::addFuncWithName(llvm::Function&, llvm::StringRef, bool)::$_0::operator()(llvm::StringRef) const':
InstrProf.cpp:(.text._ZZN4llvm15InstrProfSymtab15addFuncWithNameERNS_8FunctionENS_9StringRefEbENK3$_0clES3_+0x78): undefined reference to `llvm::GlobalValue::getGUIDAssumingExternalLinkage(llvm::StringRef)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*)':
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+0x50): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x64): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::ConstantDataSequential::getAsCString() const':
InstrProf.cpp:(.text._ZNK4llvm22ConstantDataSequential12getAsCStringEv[_ZNK4llvm22ConstantDataSequential12getAsCStringEv]+0x10): undefined reference to `llvm::ConstantDataSequential::isCString() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZNK4llvm22ConstantDataSequential12getAsCStringEv[_ZNK4llvm22ConstantDataSequential12getAsCStringEv]+0x20): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

LLVM Buildbot has detected a new failure on builder polly-x86_64-linux-shared-plugin running on polly-x86_64-gce2 while building llvm at step 5 "build".

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

Here is the relevant piece of the build log for the reference
Step 5 (build) failure: 'ninja' (failure)
...
[2092/4401] Linking CXX shared library lib/libLLVMTextAPIBinaryReader.so.21.0git
[2093/4401] Linking CXX shared library lib/libLLVMSymbolize.so.21.0git
[2094/4401] Creating library symlink lib/libLLVMTextAPIBinaryReader.so
[2095/4401] Creating library symlink lib/libLLVMSymbolize.so
[2096/4401] Linking CXX shared library lib/libLLVMDlltoolDriver.so.21.0git
[2097/4401] Building Options.inc...
[2098/4401] Creating library symlink lib/libLLVMDlltoolDriver.so
[2099/4401] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
[2100/4401] Creating library symlink lib/libLLVMDebuginfod.so
[2101/4401] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /usr/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-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 -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:/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/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,/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/lib && :
ld.lld: error: undefined symbol: llvm::MDString::getString() const
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::lookupPGONameFromMetadata(llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::mayHaveValueProfileOfKind(llvm::Instruction const&, llvm::InstrProfValueKind) (.localalias))
>>> 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::Value::getName() const
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef))
>>> 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(llvm::GlobalObject const&, bool, llvm::MDNode*))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*))

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::getPGOName[abi:cxx11](llvm::GlobalVariable const&, bool))
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getPGOFuncNameMetadata(llvm::Function const&))
>>> referenced 6 more times

ld.lld: error: undefined symbol: llvm::GlobalValue::isDeclaration() const
>>> referenced by InstrProf.cpp
>>>               lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:(llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) (.localalias))
>>> referenced by InstrProf.cpp

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

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

Here is the relevant piece of the build log for the reference
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)'

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 20, 2025

LLVM Buildbot has detected a new failure on builder clang-ppc64-aix running on aix-ppc64 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'lit :: timeout-hang.py' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 13
not env -u FILECHECK_OPTS "/home/llvm/llvm-external-buildbots/workers/env/bin/python3.11" /home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/utils/lit/lit.py -j1 --order=lexical Inputs/timeout-hang/run-nonexistent.txt  --timeout=1 --param external=0 | "/home/llvm/llvm-external-buildbots/workers/env/bin/python3.11" /home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/build/utils/lit/tests/timeout-hang.py 1
# executed command: not env -u FILECHECK_OPTS /home/llvm/llvm-external-buildbots/workers/env/bin/python3.11 /home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/utils/lit/lit.py -j1 --order=lexical Inputs/timeout-hang/run-nonexistent.txt --timeout=1 --param external=0
# .---command stderr------------
# | lit.py: /home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 1 seconds was requested on the command line. Forcing timeout to be 1 seconds.
# `-----------------------------
# executed command: /home/llvm/llvm-external-buildbots/workers/env/bin/python3.11 /home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/build/utils/lit/tests/timeout-hang.py 1
# .---command stdout------------
# | Testing took as long or longer than timeout
# `-----------------------------
# error: command failed with exit status: 1

--

********************


@ayermolo
Copy link
Contributor

This is breaking our internal builds. Please revert.

@snehasish
Copy link
Author

This is breaking our internal builds. Please revert.

@ayermolo #140650 should fix it. Please let me know if it does not.

@ayermolo
Copy link
Contributor

ayermolo commented May 21, 2025

I think the issue is when modules are turned on:
-DLLVM_ENABLE_MODULES=ON
-DLLVM_ENABLE_PROJECTS="clang;lld;llvm" \

fatal error: cyclic dependency in module 'LLVM_Object': LLVM_Object -> LLVM_IR -> LLVM_ProfileData -> LLVM_Object

So the fix doesn't address this.

@snehasish
Copy link
Author

I think the issue is when modules are turned on: -DLLVM_ENABLE_MODULES=ON -DLLVM_ENABLE_PROJECTS="clang;lld;llvm" \

fatal error: cyclic dependency in module 'LLVM_Object': LLVM_Object -> LLVM_IR -> LLVM_ProfileData -> LLVM_Object

So the fix doesn't address this.

Thanks, I was able to reproduce this. Taking a look now.

snehasish pushed a commit that referenced this pull request May 22, 2025
This reverts commit 90daed3 and
4cfbe55.
These changes exposed cyclic dependencies when LLVM is configured with
modules `-DLLVM_ENABLE_MODULES=ON`.
snehasish pushed a commit that referenced this pull request May 22, 2025
This reverts commit 90daed3 and 4cfbe55.
These changes exposed cyclic dependencies when LLVM is configured with
modules `-DLLVM_ENABLE_MODULES=ON`.
@chapuni
Copy link
Contributor

chapuni commented May 22, 2025

@snehasish Thanks for the revert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

llvm:analysis Includes value tracking, cost tables and constant folding llvm:ir llvm:transforms PGO Profile Guided Optimizations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants