Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Bertik23
Copy link
Contributor

This is a second PR on this patch (first #155572), that fixes the linking problem for flang-aarch64-dylib test.

The SupportLSP library was made a component library.


This PR moves the generic Language Server Protocol (LSP) server support code that was copied from clangd into MLIR, into the LLVM tree so it can be reused by multiple subprojects.

Centralizing the generic LSP support in LLVM lowers the barrier to building new LSP servers across the LLVM ecosystem and avoids each subproject maintaining its own copy.

The code originated in clangd and was copied into MLIR for its LSP server. MLIR had this code seperate to be reused by all of their LSP server. This PR relocates the MLIR copy into LLVM as a shared component into LLVM/Support. If this is not a suitable place, please suggest a better one.

A follow up to this move could be deduplication with the original clangd implementation and converge on a single shared LSP support library used by clangd, MLIR, and future servers.
What changes

mlir/include/mlir/Tools/lsp-server-support/{Logging, Protocol, Transport}.h moved to llvm/include/llvm/Support/LSP
mlir/lib/Tools/lsp-server-support/{Logging, Protocol, Transport}.cpp moved to llvm/lib/Support/LSP

and their namespace was changed from mlir to llvm

I ran clang-tidy --fix and clang-format on the whole moved files (last two commits), as they are basically new files and should hold up to the code style used by LLVM.

MLIR LSP servers where updated to include these files from their new location and account for the namespace change.

This PR is made as part of the LLVM IR LSP project (RFC)

@Bertik23 Bertik23 marked this pull request as ready for review September 11, 2025 09:02
@Bertik23
Copy link
Contributor Author

@nikic can I ask for a review?

Copy link
Contributor

@nikic nikic left a comment

Choose a reason for hiding this comment

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

Have you confirmed this works with the dylib build?

)
target_link_libraries(LLVMSupportLSPTests
PRIVATE
LLVMSupportLSP)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should also link as component.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -12,6 +12,9 @@ llvm_add_library(TableGenLspServerLib
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Tools/tblgen-lsp-server

LINK_COMPONENTS
SupportLSP
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd add this to LLVM_LINK_COMPONENTS above to avoid mixing two styles.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, sure, missed that

@Bertik23
Copy link
Contributor Author

Yes, I checked that compiling with the same CMake settings as the dylib build linked all fine.

@Bertik23
Copy link
Contributor Author

Thanks for the approve, can you also merge this please? I don't have the permissions to do that.

@nikic nikic enabled auto-merge (squash) September 11, 2025 16:59
@nikic nikic merged commit a3a2599 into llvm:main Sep 11, 2025
9 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (compile-openmp) failure: build (failure)
...
2.868 [2338/64/2327] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/COFFImportFile.cpp.o
2.868 [2337/64/2328] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/COFFModuleDefinition.cpp.o
2.868 [2336/64/2329] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/COFFObjectFile.cpp.o
2.869 [2335/64/2330] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/Decompressor.cpp.o
2.871 [2334/64/2331] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/DXContainer.cpp.o
2.871 [2333/64/2332] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/ELF.cpp.o
2.872 [2332/64/2333] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/Error.cpp.o
2.872 [2331/64/2334] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/GOFFObjectFile.cpp.o
2.872 [2330/64/2335] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/FaultMapParser.cpp.o
2.873 [2329/64/2336] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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 -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,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::StringSet<llvm::MallocAllocator>::~StringSet()':
Protocol.cpp:(.text._ZN4llvm9StringSetINS_15MallocAllocatorEED2Ev[_ZN4llvm9StringSetINS_15MallocAllocatorEED5Ev]+0x43): undefined reference to `llvm::deallocate_buffer(void*, unsigned long, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `getSupportedSchemes() [clone .part.0]':
Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x9d): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0xad): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0xdd): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x124): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error llvm::handleErrorImpl<llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}>(std::unique_ptr<llvm::ErrorInfoBase, std::default_delete<llvm::ErrorInfoBase> >, llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}&&) [clone .isra.0]':
Protocol.cpp:(.text._ZN4llvm15handleErrorImplIZNS_12consumeErrorENS_5ErrorEEUlRKNS_13ErrorInfoBaseEE_JEEES1_St10unique_ptrIS2_St14default_deleteIS2_EEOT_DpOT0_.isra.0+0x18): undefined reference to `llvm::ErrorInfoBase::ID'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::raw_ostream::operator<<(char const*)':
Protocol.cpp:(.text._ZN4llvm11raw_ostreamlsEPKc[_ZN4llvm11raw_ostreamlsEPKc]+0x5f): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error::~Error()':
Protocol.cpp:(.text._ZN4llvm5ErrorD2Ev[_ZN4llvm5ErrorD5Ev]+0x1d): undefined reference to `llvm::Error::fatalUncheckedError() const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
Protocol.cpp:(.text._ZN4llvm4json5ValueC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN4llvm4json5ValueC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x22): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::ObjectKey::ObjectKey(char const*)':
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2EPKc[_ZN4llvm4json9ObjectKeyC5EPKc]+0x37): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::fromJSON(llvm::json::Value const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, llvm::json::Path)':
Protocol.cpp:(.text._ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE[_ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE]+0xc2): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::scheme() const':
Protocol.cpp:(.text._ZNK4llvm3lsp10URIForFile6schemeEv+0x3f): undefined reference to `llvm::StringRef::find(llvm::StringRef, unsigned long) const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef)':
Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x35): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x45): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x91): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0xe0): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::toJSON(llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsp6toJSONERKNS0_10URIForFileE+0x28): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_10URIForFileE+0x72): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]':
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x29): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x45): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x5e): undefined reference to `llvm::json::Object::getBoolean(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x7e): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x97): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xb4): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building llvm,mlir at step 5 "compile-openmp".

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

Here is the relevant piece of the build log for the reference
Step 5 (compile-openmp) failure: build (failure)
...
13.687 [2521/32/4850] Building arm_immcheck_types.inc...
13.689 [2520/32/4851] Building DiagnosticInstallAPIKinds.inc...
13.689 [2519/32/4852] Building arm_sme_builtins.inc...
13.700 [2518/32/4853] Linking CXX static library lib/libMLIRLinalgTransformOps.a
13.701 [2517/32/4854] Building AttrParsedAttrList.inc...
13.702 [2516/32/4855] Building arm_mve_builtin_sema.inc...
13.709 [2515/32/4856] Linking CXX static library lib/libMLIRSPIRVDialect.a
13.710 [2514/32/4857] Building arm_sme_builtin_cg.inc...
13.715 [2513/32/4858] Linking CXX static library lib/libMLIRSparseTensorTransformOps.a
13.716 [2512/32/4859] Linking CXX executable bin/tblgen-lsp-server
FAILED: bin/tblgen-lsp-server 
: && /usr/bin/c++ -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-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG -Wl,-rpath-link,/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/./lib  -Wl,--gc-sections tools/mlir/tools/tblgen-lsp-server/CMakeFiles/tblgen-lsp-server.dir/tblgen-lsp-server.cpp.o -o bin/tblgen-lsp-server  -Wl,-rpath,"\$ORIGIN/../lib:"  -lpthread  lib/libTableGenLspServerLib.a  lib/libMLIRLspServerSupportLib.a  lib/libMLIRSupport.a  lib/libLLVMTableGen.a  lib/libLLVMSupport.a  lib/libLLVMDemangle.a  -lrt  -ldl  -lpthread  -lm  /usr/lib64/libz.so  /usr/lib64/libzstd.so  lib/libLLVMSupportLSP.a && :
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: lib/libLLVMSupportLSP.a(Logging.cpp.o): in function `llvm::support::detail::provider_format_adapter<std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >&>::format(llvm::raw_ostream&, llvm::StringRef)':
Logging.cpp:(.text._ZN4llvm7support6detail23provider_format_adapterIRNSt6chrono10time_pointINS3_3_V212system_clockENS3_8durationIlSt5ratioILl1ELl1000000000EEEEEEE6formatERNS_11raw_ostreamENS_9StringRefE[_ZN4llvm7support6detail23provider_format_adapterIRNSt6chrono10time_pointINS3_3_V212system_clockENS3_8durationIlSt5ratioILl1ELl1000000000EEEEEEE6formatERNS_11raw_ostreamENS_9StringRefE]+0x5): undefined reference to `llvm::format_provider<std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >, void>::format(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&, llvm::raw_ostream&, llvm::StringRef)'
collect2: error: ld returned 1 exit status
13.723 [2512/31/4860] Linking CXX static library lib/libMLIRSPIRVToLLVMIRTranslation.a
13.724 [2512/30/4861] Building DiagnosticIndexName.inc...
13.725 [2512/29/4862] Building arm_neon.inc...
13.725 [2512/28/4863] Linking CXX static library lib/libMLIRSPIRVModuleCombiner.a
13.734 [2512/27/4864] Building riscv_vector_builtins.inc...
13.742 [2512/26/4865] Building arm_mve_builtin_cg.inc...
13.749 [2512/25/4866] Building arm_sve_sema_rangechecks.inc...
13.752 [2512/24/4867] Linking CXX static library lib/libMLIRSPIRVConversion.a
13.768 [2512/23/4868] Building arm_sve_builtin_cg.inc...
13.780 [2512/22/4869] Building arm_sve_builtins.inc...
13.783 [2512/21/4870] Building riscv_vector_builtin_cg.inc...
13.874 [2512/20/4871] Linking CXX executable bin/tblgen-to-irdl
13.907 [2512/19/4872] Linking CXX executable bin/mlir-minimal-opt
13.919 [2512/18/4873] Building CXX object tools/mlir/test/lib/Transforms/CMakeFiles/MLIRTestTransforms.dir/TestDialectConversion.cpp.o
13.938 [2512/17/4874] Building CXX object tools/mlir/lib/Tools/mlir-pdll-lsp-server/CMakeFiles/MLIRPdllLspServerLib.dir/MlirPdllLspServerMain.cpp.o
14.034 [2512/16/4875] Linking CXX executable bin/mlir-minimal-opt-canonicalize
14.107 [2512/15/4876] Linking CXX static library lib/libMLIRTestDialect.a
14.899 [2512/14/4877] Building CXX object tools/mlir/lib/Tools/mlir-pdll-lsp-server/CMakeFiles/MLIRPdllLspServerLib.dir/LSPServer.cpp.o
15.244 [2512/13/4878] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
16.293 [2512/12/4879] Building AMDGPUGenCallingConv.inc...
16.390 [2512/11/4880] Building AMDGPUGenSubtargetInfo.inc...
17.164 [2512/10/4881] Building AMDGPUGenAsmWriter.inc...
17.320 [2512/9/4882] Building AMDGPUGenSearchableTables.inc...
17.688 [2512/8/4883] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/LTO/LTO.h:24:0,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/LTO/LTO.cpp:13:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/IR/ModuleSummaryIndex.h: In member function ‘llvm::TypeIdSummary& llvm::ModuleSummaryIndex::getOrInsertTypeIdSummary(llvm::StringRef)’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/IR/ModuleSummaryIndex.h:1879:33: warning: unused variable ‘GUID’ [-Wunused-variable]
     for (auto &[GUID, TypeIdPair] : make_range(TidIter))
                                 ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/IR/ModuleSummaryIndex.h: In member function ‘const llvm::TypeIdSummary* llvm::ModuleSummaryIndex::getTypeIdSummary(llvm::StringRef) const’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/IR/ModuleSummaryIndex.h:1893:39: warning: unused variable ‘GUID’ [-Wunused-variable]
     for (const auto &[GUID, TypeIdPair] : make_range(TidIter))
                                       ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 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,mlir at step 4 "annotate".

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

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)
...
[1415/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/OptBisect.cpp.o
[1416/8063] Building X86GenRegisterInfo.inc...
[1417/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassInstrumentation.cpp.o
[1418/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassRegistry.cpp.o
[1419/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassManager.cpp.o
[1420/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PrintPasses.cpp.o
[1421/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassTimingInfo.cpp.o
[1422/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ProfDataUtils.cpp.o
[1423/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/SafepointIRVerifier.cpp.o
[1424/8063] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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 -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,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::StringSet<llvm::MallocAllocator>::~StringSet()':
Protocol.cpp:(.text._ZN4llvm9StringSetINS_15MallocAllocatorEED2Ev[_ZN4llvm9StringSetINS_15MallocAllocatorEED5Ev]+0x43): undefined reference to `llvm::deallocate_buffer(void*, unsigned long, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `getSupportedSchemes() [clone .part.0]':
Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x9d): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0xad): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0xdd): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x124): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error llvm::handleErrorImpl<llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}>(std::unique_ptr<llvm::ErrorInfoBase, std::default_delete<llvm::ErrorInfoBase> >, llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}&&) [clone .isra.0]':
Protocol.cpp:(.text._ZN4llvm15handleErrorImplIZNS_12consumeErrorENS_5ErrorEEUlRKNS_13ErrorInfoBaseEE_JEEES1_St10unique_ptrIS2_St14default_deleteIS2_EEOT_DpOT0_.isra.0+0x18): undefined reference to `llvm::ErrorInfoBase::ID'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::raw_ostream::operator<<(char const*)':
Protocol.cpp:(.text._ZN4llvm11raw_ostreamlsEPKc[_ZN4llvm11raw_ostreamlsEPKc]+0x5f): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error::~Error()':
Protocol.cpp:(.text._ZN4llvm5ErrorD2Ev[_ZN4llvm5ErrorD5Ev]+0x1d): undefined reference to `llvm::Error::fatalUncheckedError() const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
Protocol.cpp:(.text._ZN4llvm4json5ValueC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN4llvm4json5ValueC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x22): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::ObjectKey::ObjectKey(char const*)':
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2EPKc[_ZN4llvm4json9ObjectKeyC5EPKc]+0x37): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::fromJSON(llvm::json::Value const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, llvm::json::Path)':
Protocol.cpp:(.text._ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE[_ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE]+0xc2): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::scheme() const':
Protocol.cpp:(.text._ZNK4llvm3lsp10URIForFile6schemeEv+0x3f): undefined reference to `llvm::StringRef::find(llvm::StringRef, unsigned long) const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef)':
Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x35): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x45): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x91): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0xe0): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::toJSON(llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsp6toJSONERKNS0_10URIForFileE+0x28): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_10URIForFileE+0x72): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]':
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x29): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x45): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x5e): undefined reference to `llvm::json::Object::getBoolean(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x7e): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x97): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xb4): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[1415/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/OptBisect.cpp.o
[1416/8063] Building X86GenRegisterInfo.inc...
[1417/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassInstrumentation.cpp.o
[1418/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassRegistry.cpp.o
[1419/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassManager.cpp.o
[1420/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PrintPasses.cpp.o
[1421/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassTimingInfo.cpp.o
[1422/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ProfDataUtils.cpp.o
[1423/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/SafepointIRVerifier.cpp.o
[1424/8063] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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 -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,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::StringSet<llvm::MallocAllocator>::~StringSet()':
Protocol.cpp:(.text._ZN4llvm9StringSetINS_15MallocAllocatorEED2Ev[_ZN4llvm9StringSetINS_15MallocAllocatorEED5Ev]+0x43): undefined reference to `llvm::deallocate_buffer(void*, unsigned long, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `getSupportedSchemes() [clone .part.0]':
Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x9d): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0xad): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0xdd): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x124): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error llvm::handleErrorImpl<llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}>(std::unique_ptr<llvm::ErrorInfoBase, std::default_delete<llvm::ErrorInfoBase> >, llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}&&) [clone .isra.0]':
Protocol.cpp:(.text._ZN4llvm15handleErrorImplIZNS_12consumeErrorENS_5ErrorEEUlRKNS_13ErrorInfoBaseEE_JEEES1_St10unique_ptrIS2_St14default_deleteIS2_EEOT_DpOT0_.isra.0+0x18): undefined reference to `llvm::ErrorInfoBase::ID'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::raw_ostream::operator<<(char const*)':
Protocol.cpp:(.text._ZN4llvm11raw_ostreamlsEPKc[_ZN4llvm11raw_ostreamlsEPKc]+0x5f): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error::~Error()':
Protocol.cpp:(.text._ZN4llvm5ErrorD2Ev[_ZN4llvm5ErrorD5Ev]+0x1d): undefined reference to `llvm::Error::fatalUncheckedError() const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
Protocol.cpp:(.text._ZN4llvm4json5ValueC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN4llvm4json5ValueC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x22): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::ObjectKey::ObjectKey(char const*)':
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2EPKc[_ZN4llvm4json9ObjectKeyC5EPKc]+0x37): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::fromJSON(llvm::json::Value const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, llvm::json::Path)':
Protocol.cpp:(.text._ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE[_ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE]+0xc2): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::scheme() const':
Protocol.cpp:(.text._ZNK4llvm3lsp10URIForFile6schemeEv+0x3f): undefined reference to `llvm::StringRef::find(llvm::StringRef, unsigned long) const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef)':
Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x35): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x45): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x91): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0xe0): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::toJSON(llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsp6toJSONERKNS0_10URIForFileE+0x28): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_10URIForFileE+0x72): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]':
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x29): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x45): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x5e): undefined reference to `llvm::json::Object::getBoolean(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x7e): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x97): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xb4): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 2025

LLVM Buildbot has detected a new failure on builder mlir-nvidia running on mlir-nvidia while building llvm,mlir at step 6 "build-check-mlir-build-only".

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

Here is the relevant piece of the build log for the reference
Step 6 (build-check-mlir-build-only) failure: build (failure)
...
8.094 [4577/16/833] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/GlobalMerge.cpp.o
8.095 [4576/16/834] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/GlobalMergeFunctions.cpp.o
8.100 [4575/16/835] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ImplicitNullChecks.cpp.o
8.104 [4574/16/836] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/IfConversion.cpp.o
8.113 [4573/16/837] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/HardwareLoops.cpp.o
8.122 [4572/16/838] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/IndirectBrExpandPass.cpp.o
8.125 [4571/16/839] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/InlineSpiller.cpp.o
8.128 [4570/16/840] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/InitUndef.cpp.o
8.134 [4569/16/841] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/InterleavedAccessPass.cpp.o
8.149 [4568/16/842] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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 -Werror=global-constructors -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics   -Wl,--gc-sections -shared -Wl,-soname,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
ld.lld: error: undefined symbol: llvm::dbgs()
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::json::Value::dump() const)
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::json::Value::dump() const)
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::Expected<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::fatalUncheckedExpected() const)
>>> referenced 8 more times

ld.lld: error: undefined symbol: llvm::json::Value::print(llvm::raw_ostream&) const
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::json::Value::dump() const)

ld.lld: error: undefined symbol: llvm::raw_ostream::write(unsigned char)
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::json::Value::dump() const)
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Position const&))
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Range const&))
>>> referenced 5 more times

ld.lld: error: undefined symbol: llvm::inconvertibleErrorCode()
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::URIForFile::fromURI(llvm::StringRef))
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::URIForFile::fromURI(llvm::StringRef))
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::URIForFile::fromURI(llvm::StringRef))
>>> referenced 3 more times

ld.lld: error: undefined symbol: llvm::Twine::str[abi:cxx11]() const
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::URIForFile::fromURI(llvm::StringRef))
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::URIForFile::fromURI(llvm::StringRef))
>>> referenced by Protocol.cpp

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 4 (build stage 1) failure: 'ninja' (failure)
...
[416/6511] Linking CXX executable bin/llvm-test-mustache-spec
[417/6511] Linking CXX executable bin/clang-tidy-confusable-chars-gen
[418/6511] Generating Confusables.inc
[419/6511] Linking CXX shared library lib/libLLVMTableGen.so.22.0git
[420/6511] Linking CXX shared library lib/libLLVMFileCheck.so.22.0git
[421/6511] Creating library symlink lib/libLLVMTableGen.so
[422/6511] Creating library symlink lib/libLLVMFileCheck.so
[423/6511] Linking CXX shared library lib/libllvm_gtest.so.22.0git
[424/6511] Linking CXX shared library lib/libLLVMDebugInfoCodeView.so.22.0git
[425/6511] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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 -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,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::StringSet<llvm::MallocAllocator>::~StringSet()':
Protocol.cpp:(.text._ZN4llvm9StringSetINS_15MallocAllocatorEED2Ev[_ZN4llvm9StringSetINS_15MallocAllocatorEED5Ev]+0x74): undefined reference to `llvm::deallocate_buffer(void*, unsigned long, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::raw_ostream::operator<<(char const*)':
Protocol.cpp:(.text._ZN4llvm11raw_ostreamlsEPKc[_ZN4llvm11raw_ostreamlsEPKc]+0x5c): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::Error::~Error()':
Protocol.cpp:(.text._ZN4llvm5ErrorD2Ev[_ZN4llvm5ErrorD5Ev]+0x20): undefined reference to `llvm::Error::fatalUncheckedError() const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::json::ObjectKey::ObjectKey(char const*)':
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2EPKc[_ZN4llvm4json9ObjectKeyC5EPKc]+0x54): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2EPKc[_ZN4llvm4json9ObjectKeyC5EPKc]+0xa4): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::json::ObjectKey::ObjectKey(llvm::StringRef)':
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2ENS_9StringRefE[_ZN4llvm4json9ObjectKeyC5ENS_9StringRefE]+0x40): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::URIForFile::scheme() const':
Protocol.cpp:(.text._ZNK4llvm3lsp10URIForFile6schemeEv+0x3c): undefined reference to `llvm::StringRef::find(llvm::StringRef, unsigned long) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::toJSON(llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsp6toJSONERKNS0_10URIForFileE+0x38): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_10URIForFileE+0x9c): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias.34]':
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x60): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x98): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xc8): undefined reference to `llvm::json::Object::getBoolean(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xf8): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x128): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x168): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x19c): undefined reference to `llvm::json::Object::getBoolean(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x228): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x260): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Position const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x20): undefined reference to `llvm::raw_ostream::operator<<(long)'
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x54): undefined reference to `llvm::raw_ostream::operator<<(long)'
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x74): undefined reference to `llvm::raw_ostream::write(unsigned char)'
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x88): undefined reference to `llvm::raw_ostream::operator<<(long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Range const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_5RangeE+0x20): undefined reference to `llvm::raw_ostream::operator<<(long)'
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_5RangeE+0x54): undefined reference to `llvm::raw_ostream::operator<<(long)'
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_5RangeE+0x88): undefined reference to `llvm::raw_ostream::operator<<(long)'
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_5RangeE+0xbc): undefined reference to `llvm::raw_ostream::operator<<(long)'

@nikic
Copy link
Contributor

nikic commented Sep 11, 2025

Hopeful fix for buildbots: 299ba5d

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 2025

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

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

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)
...
[1231/8063] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o
[1232/8063] Building SPIRVGenInstrInfo.inc...
[1233/8063] Building R600GenDAGISel.inc...
[1234/8063] Building SPIRVGenSubtargetInfo.inc...
[1235/8063] Building SPIRVGenRegisterInfo.inc...
[1236/8063] Building CXX object tools/flang/lib/Decimal/CMakeFiles/FortranDecimal.dir/binary-to-decimal.cpp.o
[1237/8063] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o
[1238/8063] Building RISCVTargetParserDef.inc...
[1239/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o
[1240/8063] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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-noexcept-type -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/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::StringSet<llvm::MallocAllocator>::~StringSet()':
Protocol.cpp:(.text._ZN4llvm9StringSetINS_15MallocAllocatorEED2Ev[_ZN4llvm9StringSetINS_15MallocAllocatorEED5Ev]+0x3b): undefined reference to `llvm::deallocate_buffer(void*, unsigned long, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::raw_ostream::operator<<(char const*)':
Protocol.cpp:(.text._ZN4llvm11raw_ostreamlsEPKc[_ZN4llvm11raw_ostreamlsEPKc]+0x38): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::Error::~Error()':
Protocol.cpp:(.text._ZN4llvm5ErrorD2Ev[_ZN4llvm5ErrorD5Ev]+0x15): undefined reference to `llvm::Error::fatalUncheckedError() const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
Protocol.cpp:(.text._ZN4llvm4json5ValueC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN4llvm4json5ValueC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1e): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::json::ObjectKey::ObjectKey(char const*)':
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2EPKc[_ZN4llvm4json9ObjectKeyC5EPKc]+0x34): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::json::ObjectKey::ObjectKey(llvm::StringRef)':
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2ENS_9StringRefE[_ZN4llvm4json9ObjectKeyC5ENS_9StringRefE]+0x1f): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::URIForFile::scheme() const':
Protocol.cpp:(.text._ZNK4llvm3lsp10URIForFile6schemeEv+0x2d): undefined reference to `llvm::StringRef::find(llvm::StringRef, unsigned long) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::toJSON(llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsp6toJSONERKNS0_10URIForFileE+0x1f): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_10URIForFileE+0x5d): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias.34]':
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x35): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x5f): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x85): undefined reference to `llvm::json::Object::getBoolean(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xaf): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xd5): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xfe): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x129): undefined reference to `llvm::json::Object::getBoolean(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x172): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Position&, llvm::json::Path) [clone .localalias.28]':
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x4c): undefined reference to `llvm::json::Object::get(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x9e): undefined reference to `llvm::json::Object::get(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0xe0): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x113): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x160): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Position const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x8): undefined reference to `llvm::raw_ostream::operator<<(long)'
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x39): undefined reference to `llvm::raw_ostream::write(unsigned char)'
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x2a): undefined reference to `llvm::raw_ostream::operator<<(long)'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[1231/8063] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o
[1232/8063] Building SPIRVGenInstrInfo.inc...
[1233/8063] Building R600GenDAGISel.inc...
[1234/8063] Building SPIRVGenSubtargetInfo.inc...
[1235/8063] Building SPIRVGenRegisterInfo.inc...
[1236/8063] Building CXX object tools/flang/lib/Decimal/CMakeFiles/FortranDecimal.dir/binary-to-decimal.cpp.o
[1237/8063] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o
[1238/8063] Building RISCVTargetParserDef.inc...
[1239/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o
[1240/8063] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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-noexcept-type -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/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::StringSet<llvm::MallocAllocator>::~StringSet()':
Protocol.cpp:(.text._ZN4llvm9StringSetINS_15MallocAllocatorEED2Ev[_ZN4llvm9StringSetINS_15MallocAllocatorEED5Ev]+0x3b): undefined reference to `llvm::deallocate_buffer(void*, unsigned long, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::raw_ostream::operator<<(char const*)':
Protocol.cpp:(.text._ZN4llvm11raw_ostreamlsEPKc[_ZN4llvm11raw_ostreamlsEPKc]+0x38): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::Error::~Error()':
Protocol.cpp:(.text._ZN4llvm5ErrorD2Ev[_ZN4llvm5ErrorD5Ev]+0x15): undefined reference to `llvm::Error::fatalUncheckedError() const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
Protocol.cpp:(.text._ZN4llvm4json5ValueC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN4llvm4json5ValueC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1e): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::json::ObjectKey::ObjectKey(char const*)':
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2EPKc[_ZN4llvm4json9ObjectKeyC5EPKc]+0x34): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::json::ObjectKey::ObjectKey(llvm::StringRef)':
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2ENS_9StringRefE[_ZN4llvm4json9ObjectKeyC5ENS_9StringRefE]+0x1f): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::URIForFile::scheme() const':
Protocol.cpp:(.text._ZNK4llvm3lsp10URIForFile6schemeEv+0x2d): undefined reference to `llvm::StringRef::find(llvm::StringRef, unsigned long) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::toJSON(llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsp6toJSONERKNS0_10URIForFileE+0x1f): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_10URIForFileE+0x5d): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias.34]':
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x35): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x5f): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x85): undefined reference to `llvm::json::Object::getBoolean(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xaf): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xd5): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xfe): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x129): undefined reference to `llvm::json::Object::getBoolean(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x172): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Position&, llvm::json::Path) [clone .localalias.28]':
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x4c): undefined reference to `llvm::json::Object::get(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x9e): undefined reference to `llvm::json::Object::get(llvm::StringRef) const'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0xe0): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x113): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x160): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: In function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Position const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x8): undefined reference to `llvm::raw_ostream::operator<<(long)'
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x39): undefined reference to `llvm::raw_ostream::write(unsigned char)'
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x2a): undefined reference to `llvm::raw_ostream::operator<<(long)'

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 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,mlir at step 4 "annotate".

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

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)
...
[1258/8063] Building CXX object lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/CGProfile.cpp.o
[1259/8063] Building CXX object lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/AddressSanitizer.cpp.o
[1260/8063] Building CXX object lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/ControlHeightReduction.cpp.o
[1261/8063] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o
[1262/8063] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/InterleavedLoadCombinePass.cpp.o
[1263/8063] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/IntrinsicLowering.cpp.o
[1264/8063] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/JMCInstrumenter.cpp.o
[1265/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/AsmWriter.cpp.o
[1266/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o
[1267/8063] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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 -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,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::StringSet<llvm::MallocAllocator>::~StringSet()':
Protocol.cpp:(.text._ZN4llvm9StringSetINS_15MallocAllocatorEED2Ev[_ZN4llvm9StringSetINS_15MallocAllocatorEED5Ev]+0x43): undefined reference to `llvm::deallocate_buffer(void*, unsigned long, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `getSupportedSchemes() [clone .part.0]':
Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x9d): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0xad): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0xdd): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x124): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error llvm::handleErrorImpl<llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}>(std::unique_ptr<llvm::ErrorInfoBase, std::default_delete<llvm::ErrorInfoBase> >, llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}&&) [clone .isra.0]':
Protocol.cpp:(.text._ZN4llvm15handleErrorImplIZNS_12consumeErrorENS_5ErrorEEUlRKNS_13ErrorInfoBaseEE_JEEES1_St10unique_ptrIS2_St14default_deleteIS2_EEOT_DpOT0_.isra.0+0x18): undefined reference to `llvm::ErrorInfoBase::ID'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::raw_ostream::operator<<(char const*)':
Protocol.cpp:(.text._ZN4llvm11raw_ostreamlsEPKc[_ZN4llvm11raw_ostreamlsEPKc]+0x5f): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error::~Error()':
Protocol.cpp:(.text._ZN4llvm5ErrorD2Ev[_ZN4llvm5ErrorD5Ev]+0x1d): undefined reference to `llvm::Error::fatalUncheckedError() const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
Protocol.cpp:(.text._ZN4llvm4json5ValueC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN4llvm4json5ValueC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x22): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::ObjectKey::ObjectKey(char const*)':
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2EPKc[_ZN4llvm4json9ObjectKeyC5EPKc]+0x37): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::fromJSON(llvm::json::Value const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, llvm::json::Path)':
Protocol.cpp:(.text._ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE[_ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE]+0xc2): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::scheme() const':
Protocol.cpp:(.text._ZNK4llvm3lsp10URIForFile6schemeEv+0x3f): undefined reference to `llvm::StringRef::find(llvm::StringRef, unsigned long) const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef)':
Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x35): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x45): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x91): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0xe0): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::toJSON(llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsp6toJSONERKNS0_10URIForFileE+0x28): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_10URIForFileE+0x72): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]':
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x29): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x45): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x5e): undefined reference to `llvm::json::Object::getBoolean(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x7e): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x97): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xb4): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[1258/8063] Building CXX object lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/CGProfile.cpp.o
[1259/8063] Building CXX object lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/AddressSanitizer.cpp.o
[1260/8063] Building CXX object lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/ControlHeightReduction.cpp.o
[1261/8063] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o
[1262/8063] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/InterleavedLoadCombinePass.cpp.o
[1263/8063] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/IntrinsicLowering.cpp.o
[1264/8063] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/JMCInstrumenter.cpp.o
[1265/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/AsmWriter.cpp.o
[1266/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o
[1267/8063] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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 -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,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::StringSet<llvm::MallocAllocator>::~StringSet()':
Protocol.cpp:(.text._ZN4llvm9StringSetINS_15MallocAllocatorEED2Ev[_ZN4llvm9StringSetINS_15MallocAllocatorEED5Ev]+0x43): undefined reference to `llvm::deallocate_buffer(void*, unsigned long, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `getSupportedSchemes() [clone .part.0]':
Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x9d): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0xad): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0xdd): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x124): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error llvm::handleErrorImpl<llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}>(std::unique_ptr<llvm::ErrorInfoBase, std::default_delete<llvm::ErrorInfoBase> >, llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}&&) [clone .isra.0]':
Protocol.cpp:(.text._ZN4llvm15handleErrorImplIZNS_12consumeErrorENS_5ErrorEEUlRKNS_13ErrorInfoBaseEE_JEEES1_St10unique_ptrIS2_St14default_deleteIS2_EEOT_DpOT0_.isra.0+0x18): undefined reference to `llvm::ErrorInfoBase::ID'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::raw_ostream::operator<<(char const*)':
Protocol.cpp:(.text._ZN4llvm11raw_ostreamlsEPKc[_ZN4llvm11raw_ostreamlsEPKc]+0x5f): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error::~Error()':
Protocol.cpp:(.text._ZN4llvm5ErrorD2Ev[_ZN4llvm5ErrorD5Ev]+0x1d): undefined reference to `llvm::Error::fatalUncheckedError() const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
Protocol.cpp:(.text._ZN4llvm4json5ValueC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN4llvm4json5ValueC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x22): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::ObjectKey::ObjectKey(char const*)':
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2EPKc[_ZN4llvm4json9ObjectKeyC5EPKc]+0x37): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::fromJSON(llvm::json::Value const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, llvm::json::Path)':
Protocol.cpp:(.text._ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE[_ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE]+0xc2): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::scheme() const':
Protocol.cpp:(.text._ZNK4llvm3lsp10URIForFile6schemeEv+0x3f): undefined reference to `llvm::StringRef::find(llvm::StringRef, unsigned long) const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef)':
Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x35): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x45): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x91): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0xe0): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::toJSON(llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsp6toJSONERKNS0_10URIForFileE+0x28): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_10URIForFileE+0x72): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]':
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x29): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x45): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x5e): undefined reference to `llvm::json::Object::getBoolean(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x7e): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x97): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xb4): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 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,mlir at step 4 "annotate".

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

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)
...
[1167/8063] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/DFAJumpThreading.cpp.o
[1168/8063] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/EarlyCSE.cpp.o
[1169/8063] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/Float2Int.cpp.o
[1170/8063] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/FlattenCFGPass.cpp.o
[1171/8063] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/IntrinsicLowering.cpp.o
[1172/8063] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/InterleavedLoadCombinePass.cpp.o
[1173/8063] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/JMCInstrumenter.cpp.o
[1174/8063] Building X86GenMnemonicTables.inc...
[1175/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o
[1176/8063] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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 -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,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::StringSet<llvm::MallocAllocator>::~StringSet()':
Protocol.cpp:(.text._ZN4llvm9StringSetINS_15MallocAllocatorEED2Ev[_ZN4llvm9StringSetINS_15MallocAllocatorEED5Ev]+0x3b): undefined reference to `llvm::deallocate_buffer(void*, unsigned long, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `getSupportedSchemes() [clone .part.0]':
Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x8d): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x9d): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0xcd): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x110): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error llvm::handleErrorImpl<llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}>(std::unique_ptr<llvm::ErrorInfoBase, std::default_delete<llvm::ErrorInfoBase> >, llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}&&) [clone .isra.0]':
Protocol.cpp:(.text._ZN4llvm15handleErrorImplIZNS_12consumeErrorENS_5ErrorEEUlRKNS_13ErrorInfoBaseEE_JEEES1_St10unique_ptrIS2_St14default_deleteIS2_EEOT_DpOT0_.isra.0+0x18): undefined reference to `llvm::ErrorInfoBase::ID'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::raw_ostream::operator<<(char const*)':
Protocol.cpp:(.text._ZN4llvm11raw_ostreamlsEPKc[_ZN4llvm11raw_ostreamlsEPKc]+0x5f): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error::~Error()':
Protocol.cpp:(.text._ZN4llvm5ErrorD2Ev[_ZN4llvm5ErrorD5Ev]+0x15): undefined reference to `llvm::Error::fatalUncheckedError() const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
Protocol.cpp:(.text._ZN4llvm4json5ValueC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN4llvm4json5ValueC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1e): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::ObjectKey::ObjectKey(char const*)':
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2EPKc[_ZN4llvm4json9ObjectKeyC5EPKc]+0x33): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::fromJSON(llvm::json::Value const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, llvm::json::Path)':
Protocol.cpp:(.text._ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE[_ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE]+0xb2): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::scheme() const':
Protocol.cpp:(.text._ZNK4llvm3lsp10URIForFile6schemeEv+0x2d): undefined reference to `llvm::StringRef::find(llvm::StringRef, unsigned long) const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef)':
Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x31): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x41): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x89): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0xd8): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::toJSON(llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsp6toJSONERKNS0_10URIForFileE+0x24): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_10URIForFileE+0x6a): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]':
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x25): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x41): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x5a): undefined reference to `llvm::json::Object::getBoolean(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x7a): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x93): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xb0): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[1167/8063] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/DFAJumpThreading.cpp.o
[1168/8063] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/EarlyCSE.cpp.o
[1169/8063] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/Float2Int.cpp.o
[1170/8063] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/FlattenCFGPass.cpp.o
[1171/8063] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/IntrinsicLowering.cpp.o
[1172/8063] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/InterleavedLoadCombinePass.cpp.o
[1173/8063] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/JMCInstrumenter.cpp.o
[1174/8063] Building X86GenMnemonicTables.inc...
[1175/8063] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o
[1176/8063] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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 -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,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::StringSet<llvm::MallocAllocator>::~StringSet()':
Protocol.cpp:(.text._ZN4llvm9StringSetINS_15MallocAllocatorEED2Ev[_ZN4llvm9StringSetINS_15MallocAllocatorEED5Ev]+0x3b): undefined reference to `llvm::deallocate_buffer(void*, unsigned long, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `getSupportedSchemes() [clone .part.0]':
Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x8d): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x9d): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0xcd): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZL19getSupportedSchemesv.part.0+0x110): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error llvm::handleErrorImpl<llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}>(std::unique_ptr<llvm::ErrorInfoBase, std::default_delete<llvm::ErrorInfoBase> >, llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}&&) [clone .isra.0]':
Protocol.cpp:(.text._ZN4llvm15handleErrorImplIZNS_12consumeErrorENS_5ErrorEEUlRKNS_13ErrorInfoBaseEE_JEEES1_St10unique_ptrIS2_St14default_deleteIS2_EEOT_DpOT0_.isra.0+0x18): undefined reference to `llvm::ErrorInfoBase::ID'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::raw_ostream::operator<<(char const*)':
Protocol.cpp:(.text._ZN4llvm11raw_ostreamlsEPKc[_ZN4llvm11raw_ostreamlsEPKc]+0x5f): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::Error::~Error()':
Protocol.cpp:(.text._ZN4llvm5ErrorD2Ev[_ZN4llvm5ErrorD5Ev]+0x15): undefined reference to `llvm::Error::fatalUncheckedError() const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
Protocol.cpp:(.text._ZN4llvm4json5ValueC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN4llvm4json5ValueC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1e): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::ObjectKey::ObjectKey(char const*)':
Protocol.cpp:(.text._ZN4llvm4json9ObjectKeyC2EPKc[_ZN4llvm4json9ObjectKeyC5EPKc]+0x33): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::json::fromJSON(llvm::json::Value const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, llvm::json::Path)':
Protocol.cpp:(.text._ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE[_ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE]+0xb2): undefined reference to `llvm::json::Path::report(llvm::StringLiteral)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::scheme() const':
Protocol.cpp:(.text._ZNK4llvm3lsp10URIForFile6schemeEv+0x2d): undefined reference to `llvm::StringRef::find(llvm::StringRef, unsigned long) const'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef)':
Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x31): undefined reference to `llvm::StringMapImpl::hash(llvm::StringRef)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x41): undefined reference to `llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x89): undefined reference to `llvm::allocate_buffer(unsigned long, unsigned long)'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0xd8): undefined reference to `llvm::StringMapImpl::RehashTable(unsigned int)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::toJSON(llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsp6toJSONERKNS0_10URIForFileE+0x24): undefined reference to `llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::URIForFile const&)':
Protocol.cpp:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_10URIForFileE+0x6a): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/usr/bin/ld: lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o: in function `llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]':
Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x25): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x41): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x5a): undefined reference to `llvm::json::Object::getBoolean(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x7a): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x93): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'
/usr/bin/ld: Protocol.cpp:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xb0): undefined reference to `llvm::json::Object::getObject(llvm::StringRef) const'

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 2025

LLVM Buildbot has detected a new failure on builder clang-ppc64le-rhel running on ppc64le-clang-rhel-test while building llvm,mlir at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
22.159 [4347/192/2111] Building CXX object lib/BinaryFormat/CMakeFiles/LLVMBinaryFormat.dir/MsgPackDocument.cpp.o
22.162 [4346/192/2112] Building CXX object lib/BinaryFormat/CMakeFiles/LLVMBinaryFormat.dir/MsgPackReader.cpp.o
22.167 [4345/192/2113] Building CXX object lib/BinaryFormat/CMakeFiles/LLVMBinaryFormat.dir/MsgPackWriter.cpp.o
22.170 [4344/192/2114] Building CXX object lib/BinaryFormat/CMakeFiles/LLVMBinaryFormat.dir/SFrame.cpp.o
22.174 [4343/192/2115] Building CXX object lib/BinaryFormat/CMakeFiles/LLVMBinaryFormat.dir/Wasm.cpp.o
22.177 [4342/192/2116] Building CXX object lib/BinaryFormat/CMakeFiles/LLVMBinaryFormat.dir/XCOFF.cpp.o
22.180 [4341/192/2117] Building CXX object lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/BitcodeAnalyzer.cpp.o
22.187 [4340/192/2118] Building RISCVGenExegesis.inc...
22.192 [4339/192/2119] Building SystemZGenInstrInfo.inc...
22.195 [4338/192/2120] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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 -Werror=global-constructors -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete -Wl,--color-diagnostics   -Wl,--gc-sections  -Xlinker --dependency-file=lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/link.d -shared -Wl,-soname,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
ld.lld: error: undefined symbol: llvm::dbgs()
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::json::Value::dump() const)
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::json::Value::dump() const)
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::Expected<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::fatalUncheckedExpected() const)
>>> referenced 8 more times

ld.lld: error: undefined symbol: llvm::json::Value::print(llvm::raw_ostream&) const
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::json::Value::dump() const)

ld.lld: error: undefined symbol: llvm::raw_ostream::write(unsigned char)
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::json::Value::dump() const)
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Position const&))
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Range const&))
>>> referenced 5 more times

ld.lld: error: undefined symbol: llvm::inconvertibleErrorCode()
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::URIForFile::fromURI(llvm::StringRef))
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::URIForFile::fromURI(llvm::StringRef))
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::URIForFile::fromURI(llvm::StringRef))
>>> referenced 3 more times

ld.lld: error: undefined symbol: llvm::Twine::str[abi:cxx11]() const
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::URIForFile::fromURI(llvm::StringRef))
>>> referenced by Protocol.cpp
>>>               lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:(llvm::lsp::URIForFile::fromURI(llvm::StringRef))
>>> referenced by Protocol.cpp

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 2025

LLVM Buildbot has detected a new failure on builder lldb-arm-ubuntu running on linaro-lldb-arm-ubuntu while building llvm,mlir at step 6 "test".

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

Here is the relevant piece of the build log for the reference
Step 6 (test) failure: build (failure)
...
PASS: lldb-api :: tools/lldb-dap/exception/cpp/TestDAP_exception_cpp.py (1214 of 3667)
PASS: lldb-api :: tools/lldb-dap/instruction-breakpoint/TestDAP_instruction_breakpoint.py (1215 of 3667)
PASS: lldb-api :: tools/lldb-dap/io/TestDAP_io.py (1216 of 3667)
PASS: lldb-api :: tools/lldb-dap/locations/TestDAP_locations.py (1217 of 3667)
PASS: lldb-api :: tools/lldb-dap/module-event/TestDAP_module_event.py (1218 of 3667)
PASS: lldb-api :: tools/lldb-dap/launch/TestDAP_launch.py (1219 of 3667)
PASS: lldb-api :: tools/lldb-dap/memory/TestDAP_memory.py (1220 of 3667)
PASS: lldb-api :: tools/lldb-dap/module/TestDAP_module.py (1221 of 3667)
PASS: lldb-api :: tools/lldb-dap/evaluate/TestDAP_evaluate.py (1222 of 3667)
PASS: lldb-api :: tools/lldb-dap/moduleSymbols/TestDAP_moduleSymbols.py (1223 of 3667)
FAIL: lldb-api :: tools/lldb-dap/output/TestDAP_output.py (1224 of 3667)
******************** TEST 'lldb-api :: tools/lldb-dap/output/TestDAP_output.py' FAILED ********************
Script:
--
/usr/bin/python3.10 /home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./lib --env LLVM_INCLUDE_DIR=/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/include --env LLVM_TOOLS_DIR=/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin --arch armv8l --build-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex --lldb-module-cache-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin/lldb --compiler /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin/clang --dsymutil /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./bin --lldb-obj-root /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/tools/lldb --lldb-libs-dir /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/./lib --cmake-build-type Release /home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/test/API/tools/lldb-dap/output -p TestDAP_output.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 22.0.0git (https://github.com/llvm/llvm-project.git revision a3a25996b11401f7589d1429225dc048d8720da9)
  clang revision a3a25996b11401f7589d1429225dc048d8720da9
  llvm revision a3a25996b11401f7589d1429225dc048d8720da9
Skipping the following test categories: ['libc++', 'msvcstl', 'dsym', 'gmodules', 'debugserver', 'objc']

--
Command Output (stderr):
--
========= DEBUG ADAPTER PROTOCOL LOGS =========
1757614633.342040062 (stdio) --> {"command":"initialize","type":"request","arguments":{"adapterID":"lldb-native","clientID":"vscode","columnsStartAt1":true,"linesStartAt1":true,"locale":"en-us","pathFormat":"path","supportsRunInTerminalRequest":true,"supportsVariablePaging":true,"supportsVariableType":true,"supportsStartDebuggingRequest":true,"supportsProgressReporting":true,"$__lldb_sourceInitFile":false},"seq":1}
1757614633.342203140 (stdio) queued (command=initialize seq=1)
1757614633.348041058 (stdio) <-- {"body":{"$__lldb_version":"lldb version 22.0.0git (https://github.com/llvm/llvm-project.git revision a3a25996b11401f7589d1429225dc048d8720da9)\n  clang revision a3a25996b11401f7589d1429225dc048d8720da9\n  llvm revision a3a25996b11401f7589d1429225dc048d8720da9","completionTriggerCharacters":["."," ","\t"],"exceptionBreakpointFilters":[{"description":"C++ Catch","filter":"cpp_catch","label":"C++ Catch","supportsCondition":true},{"description":"C++ Throw","filter":"cpp_throw","label":"C++ Throw","supportsCondition":true},{"description":"Objective-C Catch","filter":"objc_catch","label":"Objective-C Catch","supportsCondition":true},{"description":"Objective-C Throw","filter":"objc_throw","label":"Objective-C Throw","supportsCondition":true}],"supportTerminateDebuggee":true,"supportsBreakpointLocationsRequest":true,"supportsCancelRequest":true,"supportsCompletionsRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsDataBreakpoints":true,"supportsDelayedStackTraceLoading":true,"supportsDisassembleRequest":true,"supportsEvaluateForHovers":true,"supportsExceptionFilterOptions":true,"supportsExceptionInfoRequest":true,"supportsFunctionBreakpoints":true,"supportsHitConditionalBreakpoints":true,"supportsInstructionBreakpoints":true,"supportsLogPoints":true,"supportsModuleSymbolsRequest":true,"supportsModulesRequest":true,"supportsReadMemoryRequest":true,"supportsSetVariable":true,"supportsSteppingGranularity":true,"supportsValueFormattingOptions":true,"supportsWriteMemoryRequest":true},"command":"initialize","request_seq":1,"seq":0,"success":true,"type":"response"}
1757614633.349562407 (stdio) --> {"command":"launch","type":"request","arguments":{"program":"/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/tools/lldb-dap/output/TestDAP_output.test_output/a.out","initCommands":["settings clear --all","settings set symbols.enable-external-lookup false","settings set target.inherit-tcc true","settings set target.disable-aslr false","settings set target.detach-on-error false","settings set target.auto-apply-fixits false","settings set plugin.process.gdb-remote.packet-timeout 60","settings set symbols.clang-modules-cache-path \"/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/module-cache-lldb/lldb-api\"","settings set use-color false","settings set show-statusline false"],"exitCommands":["?script print('out\\0\\0', end='\\r\\n', file=sys.stdout)","?script print('err\\0\\0', end='\\r\\n', file=sys.stderr)"],"disableASLR":false,"enableAutoVariableSummaries":false,"enableSyntheticChildDebugging":false,"displayExtendedBacktrace":false},"seq":2}
1757614633.349667072 (stdio) queued (command=launch seq=2)
1757614633.350387573 (stdio) <-- {"body":{"category":"console","output":"Running initCommands:\n"},"event":"output","seq":0,"type":"event"}
1757614633.350471497 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings clear --all\n"},"event":"output","seq":0,"type":"event"}
1757614633.350486755 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set symbols.enable-external-lookup false\n"},"event":"output","seq":0,"type":"event"}
1757614633.350500584 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set target.inherit-tcc true\n"},"event":"output","seq":0,"type":"event"}
1757614633.350514412 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set target.disable-aslr false\n"},"event":"output","seq":0,"type":"event"}
1757614633.350526571 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set target.detach-on-error false\n"},"event":"output","seq":0,"type":"event"}
1757614633.350563526 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set target.auto-apply-fixits false\n"},"event":"output","seq":0,"type":"event"}
1757614633.350577354 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set plugin.process.gdb-remote.packet-timeout 60\n"},"event":"output","seq":0,"type":"event"}
1757614633.350591183 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set symbols.clang-modules-cache-path \"/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/module-cache-lldb/lldb-api\"\n"},"event":"output","seq":0,"type":"event"}
1757614633.350605965 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set use-color false\n"},"event":"output","seq":0,"type":"event"}
1757614633.350618362 (stdio) <-- {"body":{"category":"console","output":"(lldb) settings set show-statusline false\n"},"event":"output","seq":0,"type":"event"}
1757614634.175440788 (stdio) <-- {"command":"launch","request_seq":2,"seq":0,"success":true,"type":"response"}
1757614634.177353144 (stdio) <-- {"body":{"module":{"addressRange":"0xeacec000","debugInfoSize":"983.3KB","id":"253BA35E-436C-EC85-2949-CBD09E38AFEE-11B460BF","name":"ld-linux-armhf.so.3","path":"/usr/lib/arm-linux-gnueabihf/ld-linux-armhf.so.3","symbolFilePath":"/usr/lib/arm-linux-gnueabihf/ld-linux-armhf.so.3","symbolStatus":"Symbols loaded."},"reason":"new"},"event":"module","seq":0,"type":"event"}
1757614634.177620173 (stdio) <-- {"event":"initialized","seq":0,"type":"event"}
1757614634.178343058 (stdio) <-- {"body":{"module":{"addressRange":"0xe210000","debugInfoSize":"1.2KB","id":"29D6766A","name":"a.out","path":"/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/tools/lldb-dap/output/TestDAP_output.test_output/a.out","symbolFilePath":"/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/tools/lldb-dap/output/TestDAP_output.test_output/a.out","symbolStatus":"Symbols loaded."},"reason":"new"},"event":"module","seq":0,"type":"event"}

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-asan running on sanitizer-buildbot8 while building llvm,mlir at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 90535 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 
FAIL: LLVM :: ExecutionEngine/JITLink/x86-64/MachO_weak_references.s (54948 of 90535)
******************** TEST 'LLVM :: ExecutionEngine/JITLink/x86-64/MachO_weak_references.s' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
rm -rf /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp && mkdir -p /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp # RUN: at line 1
+ rm -rf /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp
+ mkdir -p /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp/macho_weak_refs.o /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/MachO_weak_references.s # RUN: at line 2
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp/macho_weak_refs.o /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/MachO_weak_references.s
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-jitlink -noexec -check-name=jitlink-check-bar-present -abs bar=0x1 -check=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/MachO_weak_references.s /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp/macho_weak_refs.o # RUN: at line 3
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-jitlink -noexec -check-name=jitlink-check-bar-present -abs bar=0x1 -check=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/MachO_weak_references.s /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp/macho_weak_refs.o
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-jitlink -noexec -check-name=jitlink-check-bar-absent -check=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/MachO_weak_references.s /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp/macho_weak_refs.o # RUN: at line 4
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-jitlink -noexec -check-name=jitlink-check-bar-absent -check=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/MachO_weak_references.s /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp/macho_weak_refs.o

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
220.94s: Clang :: Driver/fsanitize.c
153.68s: Clang :: Preprocessor/riscv-target-features.c
136.95s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
135.44s: Clang :: OpenMP/target_update_codegen.cpp
135.01s: Clang :: Driver/arm-cortex-cpus-2.c
132.08s: Clang :: Driver/arm-cortex-cpus-1.c
123.12s: Clang :: Preprocessor/arm-target-features.c
121.83s: Clang :: Preprocessor/aarch64-target-features.c
105.09s: LLVM :: CodeGen/RISCV/attributes.ll
104.92s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
103.79s: Clang :: Preprocessor/predefined-arch-macros.c
89.59s: Clang :: Driver/linux-ld.c
87.75s: Clang :: Analysis/a_flaky_crash.cpp
82.79s: Clang :: Driver/clang_f_opts.c
80.21s: Clang :: Driver/cl-options.c
74.03s: Clang :: Driver/x86-target-features.c
72.06s: LLVM :: CodeGen/ARM/build-attributes.ll
Step 11 (stage2/asan check) failure: stage2/asan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:527: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 90535 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 
FAIL: LLVM :: ExecutionEngine/JITLink/x86-64/MachO_weak_references.s (54948 of 90535)
******************** TEST 'LLVM :: ExecutionEngine/JITLink/x86-64/MachO_weak_references.s' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
rm -rf /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp && mkdir -p /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp # RUN: at line 1
+ rm -rf /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp
+ mkdir -p /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp/macho_weak_refs.o /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/MachO_weak_references.s # RUN: at line 2
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp/macho_weak_refs.o /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/MachO_weak_references.s
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-jitlink -noexec -check-name=jitlink-check-bar-present -abs bar=0x1 -check=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/MachO_weak_references.s /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp/macho_weak_refs.o # RUN: at line 3
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-jitlink -noexec -check-name=jitlink-check-bar-present -abs bar=0x1 -check=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/MachO_weak_references.s /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp/macho_weak_refs.o
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-jitlink -noexec -check-name=jitlink-check-bar-absent -check=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/MachO_weak_references.s /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp/macho_weak_refs.o # RUN: at line 4
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llvm-jitlink -noexec -check-name=jitlink-check-bar-absent -check=/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/MachO_weak_references.s /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/test/ExecutionEngine/JITLink/x86-64/Output/MachO_weak_references.s.tmp/macho_weak_refs.o

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
220.94s: Clang :: Driver/fsanitize.c
153.68s: Clang :: Preprocessor/riscv-target-features.c
136.95s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
135.44s: Clang :: OpenMP/target_update_codegen.cpp
135.01s: Clang :: Driver/arm-cortex-cpus-2.c
132.08s: Clang :: Driver/arm-cortex-cpus-1.c
123.12s: Clang :: Preprocessor/arm-target-features.c
121.83s: Clang :: Preprocessor/aarch64-target-features.c
105.09s: LLVM :: CodeGen/RISCV/attributes.ll
104.92s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
103.79s: Clang :: Preprocessor/predefined-arch-macros.c
89.59s: Clang :: Driver/linux-ld.c
87.75s: Clang :: Analysis/a_flaky_crash.cpp
82.79s: Clang :: Driver/clang_f_opts.c
80.21s: Clang :: Driver/cl-options.c
74.03s: Clang :: Driver/x86-target-features.c
72.06s: LLVM :: CodeGen/ARM/build-attributes.ll

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
1.650 [2457/8/355] Linking CXX executable bin/FileCheck
1.681 [2457/7/356] Linking CXX shared library lib/libllvm_gtest_main.so.22.0git
1.687 [2456/7/357] Linking CXX executable bin/llvm-min-tblgen
1.689 [2456/6/358] Linking CXX shared library lib/libLLVMTableGenBasic.so.22.0git
1.705 [2455/6/359] Creating library symlink lib/libllvm_gtest_main.so
1.712 [2455/5/360] Creating library symlink lib/libLLVMTableGenBasic.so
2.935 [2455/4/361] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o
5.140 [2455/3/362] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o
6.610 [2455/2/363] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o
6.746 [2454/2/364] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -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,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::StringSet<llvm::MallocAllocator>::~StringSet():(.text._ZN4llvm9StringSetINS_15MallocAllocatorEED2Ev+0x43): error: undefined reference to 'llvm::deallocate_buffer(void*, unsigned long, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::Error llvm::handleErrorImpl<llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}>(std::unique_ptr<llvm::ErrorInfoBase, std::default_delete<llvm::ErrorInfoBase> >, llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}&&) [clone .isra.0]:(.text._ZN4llvm15handleErrorImplIZNS_12consumeErrorENS_5ErrorEEUlRKNS_13ErrorInfoBaseEE_JEEES1_St10unique_ptrIS2_St14default_deleteIS2_EEOT_DpOT0_.isra.0+0x18): error: undefined reference to 'llvm::ErrorInfoBase::ID'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::Error llvm::handleErrorImpl<llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}>(std::unique_ptr<llvm::ErrorInfoBase, std::default_delete<llvm::ErrorInfoBase> >, llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}&&) [clone .isra.0]:(.text._ZN4llvm15handleErrorImplIZNS_12consumeErrorENS_5ErrorEEUlRKNS_13ErrorInfoBaseEE_JEEES1_St10unique_ptrIS2_St14default_deleteIS2_EEOT_DpOT0_.isra.0+0x56): error: undefined reference to 'llvm::ErrorInfoBase::ID'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function getSupportedSchemes() [clone .part.0]:(.text._ZL19getSupportedSchemesv.part.0+0xa0): error: undefined reference to 'llvm::StringMapImpl::hash(llvm::StringRef)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function getSupportedSchemes() [clone .part.0]:(.text._ZL19getSupportedSchemesv.part.0+0xb0): error: undefined reference to 'llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function getSupportedSchemes() [clone .part.0]:(.text._ZL19getSupportedSchemesv.part.0+0xe0): error: undefined reference to 'llvm::allocate_buffer(unsigned long, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function getSupportedSchemes() [clone .part.0]:(.text._ZL19getSupportedSchemesv.part.0+0x127): error: undefined reference to 'llvm::StringMapImpl::RehashTable(unsigned int)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::raw_ostream::operator<<(char const*):(.text._ZN4llvm11raw_ostreamlsEPKc+0x3c): error: undefined reference to 'llvm::raw_ostream::write(char const*, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >):(.text._ZN4llvm4json5ValueC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x22): error: undefined reference to 'llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::json::ObjectKey::ObjectKey(char const*):(.text._ZN4llvm4json9ObjectKeyC2EPKc+0x38): error: undefined reference to 'llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::json::fromJSON(llvm::json::Value const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, llvm::json::Path):(.text._ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE+0xda): error: undefined reference to 'llvm::json::Path::report(llvm::StringLiteral)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::URIForFile::scheme() const:(.text._ZNK4llvm3lsp10URIForFile6schemeEv+0x3f): error: undefined reference to 'llvm::StringRef::find(llvm::StringRef, unsigned long) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef):(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x35): error: undefined reference to 'llvm::StringMapImpl::hash(llvm::StringRef)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef):(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x45): error: undefined reference to 'llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef):(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x91): error: undefined reference to 'llvm::allocate_buffer(unsigned long, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef):(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0xdf): error: undefined reference to 'llvm::StringMapImpl::RehashTable(unsigned int)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::toJSON(llvm::lsp::URIForFile const&):(.text._ZN4llvm3lsp6toJSONERKNS0_10URIForFileE+0x23): error: undefined reference to 'llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::URIForFile const&):(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_10URIForFileE+0x68): error: undefined reference to 'llvm::raw_ostream::write(char const*, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x29): error: undefined reference to 'llvm::json::Object::getObject(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x45): error: undefined reference to 'llvm::json::Object::getObject(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x5e): error: undefined reference to 'llvm::json::Object::getBoolean(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x7e): error: undefined reference to 'llvm::json::Object::getObject(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x97): error: undefined reference to 'llvm::json::Object::getObject(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xcf): error: undefined reference to 'llvm::json::Object::getBoolean(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x112): error: undefined reference to 'llvm::json::Path::report(llvm::StringLiteral)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Position&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x67): error: undefined reference to 'llvm::json::Object::get(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Position&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0xc7): error: undefined reference to 'llvm::json::Object::get(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Position&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x11a): error: undefined reference to 'llvm::json::Path::report(llvm::StringLiteral)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Position&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x169): error: undefined reference to 'llvm::json::Path::report(llvm::StringLiteral)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Position const&):(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0xc): error: undefined reference to 'llvm::raw_ostream::operator<<(long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Position const&):(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x3e): error: undefined reference to 'llvm::raw_ostream::write(unsigned char)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Position const&):(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x2e): error: undefined reference to 'llvm::raw_ostream::operator<<(long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Position const&):(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x4b): error: undefined reference to 'llvm::raw_ostream::operator<<(long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Range&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_5RangeENS1_4PathE+0x67): error: undefined reference to 'llvm::json::Object::get(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Range&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_5RangeENS1_4PathE+0xd8): error: undefined reference to 'llvm::json::Object::get(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Range const&) [clone .localalias]:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_5RangeE+0xc): error: undefined reference to 'llvm::raw_ostream::operator<<(long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Range const&) [clone .localalias]:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_5RangeE+0x7e): error: undefined reference to 'llvm::raw_ostream::write(unsigned char)'

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
1.645 [2457/8/355] Linking CXX executable bin/FileCheck
1.677 [2457/7/356] Linking CXX shared library lib/libllvm_gtest_main.so.22.0git
1.685 [2456/7/357] Linking CXX executable bin/llvm-min-tblgen
1.688 [2456/6/358] Linking CXX shared library lib/libLLVMTableGenBasic.so.22.0git
1.701 [2455/6/359] Creating library symlink lib/libllvm_gtest_main.so
1.711 [2455/5/360] Creating library symlink lib/libLLVMTableGenBasic.so
2.964 [2455/4/361] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o
5.249 [2455/3/362] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o
6.579 [2455/2/363] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o
6.717 [2454/2/364] Linking CXX shared library lib/libLLVMSupportLSP.so.22.0git
FAILED: lib/libLLVMSupportLSP.so.22.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-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -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,libLLVMSupportLSP.so.22.0git -o lib/libLLVMSupportLSP.so.22.0git lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:" && :
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::StringSet<llvm::MallocAllocator>::~StringSet():(.text._ZN4llvm9StringSetINS_15MallocAllocatorEED2Ev+0x43): error: undefined reference to 'llvm::deallocate_buffer(void*, unsigned long, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::Error llvm::handleErrorImpl<llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}>(std::unique_ptr<llvm::ErrorInfoBase, std::default_delete<llvm::ErrorInfoBase> >, llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}&&) [clone .isra.0]:(.text._ZN4llvm15handleErrorImplIZNS_12consumeErrorENS_5ErrorEEUlRKNS_13ErrorInfoBaseEE_JEEES1_St10unique_ptrIS2_St14default_deleteIS2_EEOT_DpOT0_.isra.0+0x18): error: undefined reference to 'llvm::ErrorInfoBase::ID'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::Error llvm::handleErrorImpl<llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}>(std::unique_ptr<llvm::ErrorInfoBase, std::default_delete<llvm::ErrorInfoBase> >, llvm::consumeError(llvm::Error)::{lambda(llvm::ErrorInfoBase const&)#1}&&) [clone .isra.0]:(.text._ZN4llvm15handleErrorImplIZNS_12consumeErrorENS_5ErrorEEUlRKNS_13ErrorInfoBaseEE_JEEES1_St10unique_ptrIS2_St14default_deleteIS2_EEOT_DpOT0_.isra.0+0x56): error: undefined reference to 'llvm::ErrorInfoBase::ID'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function getSupportedSchemes() [clone .part.0]:(.text._ZL19getSupportedSchemesv.part.0+0xa0): error: undefined reference to 'llvm::StringMapImpl::hash(llvm::StringRef)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function getSupportedSchemes() [clone .part.0]:(.text._ZL19getSupportedSchemesv.part.0+0xb0): error: undefined reference to 'llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function getSupportedSchemes() [clone .part.0]:(.text._ZL19getSupportedSchemesv.part.0+0xe0): error: undefined reference to 'llvm::allocate_buffer(unsigned long, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function getSupportedSchemes() [clone .part.0]:(.text._ZL19getSupportedSchemesv.part.0+0x127): error: undefined reference to 'llvm::StringMapImpl::RehashTable(unsigned int)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::raw_ostream::operator<<(char const*):(.text._ZN4llvm11raw_ostreamlsEPKc+0x3c): error: undefined reference to 'llvm::raw_ostream::write(char const*, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >):(.text._ZN4llvm4json5ValueC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x22): error: undefined reference to 'llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::json::ObjectKey::ObjectKey(char const*):(.text._ZN4llvm4json9ObjectKeyC2EPKc+0x38): error: undefined reference to 'llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::json::fromJSON(llvm::json::Value const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, llvm::json::Path):(.text._ZN4llvm4json8fromJSONERKNS0_5ValueERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4PathE+0xda): error: undefined reference to 'llvm::json::Path::report(llvm::StringLiteral)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::URIForFile::scheme() const:(.text._ZNK4llvm3lsp10URIForFile6schemeEv+0x3f): error: undefined reference to 'llvm::StringRef::find(llvm::StringRef, unsigned long) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef):(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x35): error: undefined reference to 'llvm::StringMapImpl::hash(llvm::StringRef)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef):(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x45): error: undefined reference to 'llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef):(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0x91): error: undefined reference to 'llvm::allocate_buffer(unsigned long, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::URIForFile::registerSupportedScheme(llvm::StringRef):(.text._ZN4llvm3lsp10URIForFile23registerSupportedSchemeENS_9StringRefE+0xdf): error: undefined reference to 'llvm::StringMapImpl::RehashTable(unsigned int)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::toJSON(llvm::lsp::URIForFile const&):(.text._ZN4llvm3lsp6toJSONERKNS0_10URIForFileE+0x23): error: undefined reference to 'llvm::json::isUTF8(llvm::StringRef, unsigned long*)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::URIForFile const&):(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_10URIForFileE+0x68): error: undefined reference to 'llvm::raw_ostream::write(char const*, unsigned long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x29): error: undefined reference to 'llvm::json::Object::getObject(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x45): error: undefined reference to 'llvm::json::Object::getObject(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x5e): error: undefined reference to 'llvm::json::Object::getBoolean(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x7e): error: undefined reference to 'llvm::json::Object::getObject(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x97): error: undefined reference to 'llvm::json::Object::getObject(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0xcf): error: undefined reference to 'llvm::json::Object::getBoolean(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::ClientCapabilities&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_18ClientCapabilitiesENS1_4PathE+0x112): error: undefined reference to 'llvm::json::Path::report(llvm::StringLiteral)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Position&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x67): error: undefined reference to 'llvm::json::Object::get(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Position&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0xc7): error: undefined reference to 'llvm::json::Object::get(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Position&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x11a): error: undefined reference to 'llvm::json::Path::report(llvm::StringLiteral)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Position&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_8PositionENS1_4PathE+0x169): error: undefined reference to 'llvm::json::Path::report(llvm::StringLiteral)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Position const&):(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0xc): error: undefined reference to 'llvm::raw_ostream::operator<<(long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Position const&):(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x3e): error: undefined reference to 'llvm::raw_ostream::write(unsigned char)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Position const&):(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x2e): error: undefined reference to 'llvm::raw_ostream::operator<<(long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Position const&):(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_8PositionE+0x4b): error: undefined reference to 'llvm::raw_ostream::operator<<(long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Range&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_5RangeENS1_4PathE+0x67): error: undefined reference to 'llvm::json::Object::get(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::fromJSON(llvm::json::Value const&, llvm::lsp::Range&, llvm::json::Path) [clone .localalias]:(.text._ZN4llvm3lsp8fromJSONERKNS_4json5ValueERNS0_5RangeENS1_4PathE+0xd8): error: undefined reference to 'llvm::json::Object::get(llvm::StringRef) const'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Range const&) [clone .localalias]:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_5RangeE+0xc): error: undefined reference to 'llvm::raw_ostream::operator<<(long)'
lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o:Protocol.cpp:function llvm::lsp::operator<<(llvm::raw_ostream&, llvm::lsp::Range const&) [clone .localalias]:(.text._ZN4llvm3lsplsERNS_11raw_ostreamERKNS0_5RangeE+0x7e): error: undefined reference to 'llvm::raw_ostream::write(unsigned char)'

alanzhao1 pushed a commit to alanzhao1/llvm-project that referenced this pull request Sep 11, 2025
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Sep 11, 2025
@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 11, 2025

LLVM Buildbot has detected a new failure on builder flang-aarch64-out-of-tree running on linaro-flang-aarch64-out-of-tree while building llvm,mlir at step 6 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 6 (build-unified-tree) failure: build (failure)
...
996.440 [1445/3/5210] Linking CXX static library lib/libMLIRTestTransforms.a
996.483 [1445/2/5211] Building CXX object tools/mlir/tools/mlir-opt/CMakeFiles/MLIRMlirOptMain.dir/mlir-opt.cpp.o
996.494 [1444/2/5212] Building CXX object tools/mlir/tools/mlir-opt/CMakeFiles/mlir-opt.dir/mlir-opt.cpp.o
996.726 [1441/4/5213] Linking CXX static library lib/libMLIRMlirOptMain.a
997.249 [1441/3/5214] Linking CXX executable bin/mlir-bytecode-parser-fuzzer
998.017 [1438/5/5215] Linking CXX executable bin/mlir-text-parser-fuzzer
998.231 [1433/9/5216] Building CXX object tools/mlir/tools/tblgen-lsp-server/CMakeFiles/tblgen-lsp-server.dir/tblgen-lsp-server.cpp.o
998.234 [1433/8/5217] Building CXX object tools/mlir/tools/mlir-translate/CMakeFiles/mlir-translate.dir/mlir-translate.cpp.o
998.253 [1433/7/5218] Building CXX object tools/mlir/tools/tblgen-to-irdl/CMakeFiles/tblgen-to-irdl.dir/tblgen-to-irdl.cpp.o
998.306 [1433/6/5219] Linking CXX executable bin/mlir-pdll-lsp-server
FAILED: bin/mlir-pdll-lsp-server 
: && /usr/local/bin/c++ -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 -Wundef -Werror=mismatched-tags -O3 -DNDEBUG -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/./lib  -Wl,--gc-sections tools/mlir/tools/mlir-pdll-lsp-server/CMakeFiles/mlir-pdll-lsp-server.dir/mlir-pdll-lsp-server.cpp.o -o bin/mlir-pdll-lsp-server  -Wl,-rpath,"\$ORIGIN/../lib:"  lib/libMLIRPdllLspServerLib.a  lib/libMLIRPDLLCodeGen.a  lib/libMLIRParser.a  lib/libMLIRBytecodeReader.a  lib/libMLIRAsmParser.a  lib/libMLIRPDLDialect.a  lib/libMLIRInferTypeOpInterface.a  lib/libMLIRSideEffectInterfaces.a  lib/libMLIRIR.a  lib/libMLIRPDLLParser.a  lib/libMLIRPDLLAST.a  lib/libMLIRPDLLODS.a  lib/libMLIRTableGen.a  lib/libLLVMTableGen.a  lib/libMLIRLspServerSupportLib.a  lib/libMLIRSupport.a  lib/libLLVMSupport.a  -lrt  -ldl  -lm  /usr/lib/aarch64-linux-gnu/libz.so  lib/libLLVMDemangle.a  lib/libLLVMSupportLSP.a && :
/usr/bin/ld: lib/libLLVMSupportLSP.a(Logging.cpp.o): in function `llvm::support::detail::provider_format_adapter<std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >&>::format(llvm::raw_ostream&, llvm::StringRef)':
Logging.cpp:(.text._ZN4llvm7support6detail23provider_format_adapterIRNSt6chrono10time_pointINS3_3_V212system_clockENS3_8durationIlSt5ratioILl1ELl1000000000EEEEEEE6formatERNS_11raw_ostreamENS_9StringRefE[_ZN4llvm7support6detail23provider_format_adapterIRNSt6chrono10time_pointINS3_3_V212system_clockENS3_8durationIlSt5ratioILl1ELl1000000000EEEEEEE6formatERNS_11raw_ostreamENS_9StringRefE]+0x4): undefined reference to `llvm::format_provider<std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >, void>::format(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&, llvm::raw_ostream&, llvm::StringRef)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
1019.072 [1433/5/5220] Linking CXX executable bin/mlir-rewrite
1019.285 [1433/4/5221] Linking CXX executable bin/mlir-query
1021.386 [1433/3/5222] Linking CXX executable bin/mlir-lsp-server
1023.207 [1433/2/5223] Linking CXX executable bin/mlir-reduce
1024.989 [1433/1/5224] Linking CXX executable bin/mlir-opt
ninja: build stopped: subcommand failed.

@mgorny

This comment was marked as resolved.

@mgorny

This comment was marked as resolved.

@mgorny
Copy link
Member

mgorny commented Sep 13, 2025

Unfortunately, according to git bisect, this change is also responsible for the following test regression:

FAIL: MLIR :: mlir-pdll-lsp-server/view-output.test (2448 of 3394)
******************** TEST 'MLIR :: mlir-pdll-lsp-server/view-output.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
mlir-pdll-lsp-server -lit-test < /var/tmp/portage/llvm-core/mlir-22.0.0.9999/work/mlir/test/mlir-pdll-lsp-server/view-output.test | /usr/lib/llvm/22/bin/FileCheck -strict-whitespace /var/tmp/portage/llvm-core/mlir-22.0.0.9999/work/mlir/test/mlir-pdll-lsp-server/view-output.test
# executed command: mlir-pdll-lsp-server -lit-test
# .---command stderr------------
# | I[10:15:47.338] --> initialize(0)
# | I[10:15:47.339] --> reply:initialize(0)
# | D[10:15:47.339] >>> {
# |   "id": 0,
# |   "jsonrpc": "2.0",
# |   "result": {
# |     "capabilities": {
# |       "completionProvider": {
# |         "allCommitCharacters": [
# |           "\t",
# |           "(",
# |           ")",
# |           "[",
# |           "]",
# |           "{",
# |           "}",
# |           "<",
# |           ">",
# |           ":",
# |           ";",
# |           ",",
# |           "+",
# |           "-",
# |           "/",
# |           "*",
# |           "%",
# |           "^",
# |           "&",
# |           "#",
# |           "?",
# |           ".",
# |           "=",
# |           "\"",
# |           "'",
# |           "|"
# |         ],
# |         "resolveProvider": false,
# |         "triggerCharacters": [
# |           ".",
# |           ">",
# |           "(",
# |           "{",
# |           ",",
# |           "<",
# |           ":",
# |           "[",
# |           " ",
# |           "\"",
# |           "/"
# |         ]
# |       },
# |       "definitionProvider": true,
# |       "documentLinkProvider": {
# |         "resolveProvider": false
# |       },
# |       "documentSymbolProvider": true,
# |       "hoverProvider": true,
# |       "inlayHintProvider": true,
# |       "referencesProvider": true,
# |       "signatureHelpProvider": {
# |         "triggerCharacters": [
# |           "(",
# |           ","
# |         ]
# |       },
# |       "textDocumentSync": {
# |         "change": 2,
# |         "openClose": true,
# |         "save": true
# |       }
# |     },
# |     "serverInfo": {
# |       "name": "mlir-pdll-lsp-server",
# |       "version": "0.0.1"
# |     }
# |   }
# | }
# | 
# | 
# | I[10:15:47.339] --> textDocument/didOpen
# | I[10:15:47.339] --> textDocument/publishDiagnostics
# | D[10:15:47.339] >>> {
# |   "jsonrpc": "2.0",
# |   "method": "textDocument/publishDiagnostics",
# |   "params": {
# |     "diagnostics": [],
# |     "uri": "test:///foo.pdll",
# |     "version": 1
# |   }
# | }
# | 
# | 
# | I[10:15:47.339] --> pdll/viewOutput(1)
# | I[10:15:47.339] --> reply:pdll/viewOutput(1): -32602: failed to decode pdll/viewOutput request: missing value at (root).uri
# | D[10:15:47.339] >>> {
# |   "error": {
# |     "code": -32602,
# |     "message": "failed to decode pdll/viewOutput request: missing value at (root).uri"
# |   },
# |   "id": 1,
# |   "jsonrpc": "2.0"
# | }
# | 
# | 
# | I[10:15:47.339] --> pdll/viewOutput(2)
# | I[10:15:47.339] --> reply:pdll/viewOutput(2): -32602: failed to decode pdll/viewOutput request: missing value at (root).uri
# | D[10:15:47.339] >>> {
# |   "error": {
# |     "code": -32602,
# |     "message": "failed to decode pdll/viewOutput request: missing value at (root).uri"
# |   },
# |   "id": 2,
# |   "jsonrpc": "2.0"
# | }
# | 
# | 
# | I[10:15:47.339] --> pdll/viewOutput(3)
# | I[10:15:47.339] --> reply:pdll/viewOutput(3): -32602: failed to decode pdll/viewOutput request: missing value at (root).uri
# | D[10:15:47.339] >>> {
# |   "error": {
# |     "code": -32602,
# |     "message": "failed to decode pdll/viewOutput request: missing value at (root).uri"
# |   },
# |   "id": 3,
# |   "jsonrpc": "2.0"
# | }
# | 
# | 
# | I[10:15:47.339] --> shutdown(3)
# | I[10:15:47.339] --> reply:shutdown(3)
# | D[10:15:47.339] >>> {
# |   "id": 3,
# |   "jsonrpc": "2.0",
# |   "result": null
# | }
# | 
# | 
# | I[10:15:47.339] --> exit
# `-----------------------------
# executed command: /usr/lib/llvm/22/bin/FileCheck -strict-whitespace /var/tmp/portage/llvm-core/mlir-22.0.0.9999/work/mlir/test/mlir-pdll-lsp-server/view-output.test
# .---command stderr------------
# | /var/tmp/portage/llvm-core/mlir-22.0.0.9999/work/mlir/test/mlir-pdll-lsp-server/view-output.test:16:17: error: CHECK-NEXT: is not on the line after the previous match
# | // CHECK-NEXT:  "jsonrpc": "2.0",
# |                 ^
# | <stdin>:123:3: note: 'next' match was here
# |   "jsonrpc": "2.0",
# |   ^
# | <stdin>:96:10: note: previous match ended here
# |   "id": 1,
# |          ^
# | <stdin>:97:1: note: non-matching line after previous match is here
# |   "jsonrpc": "2.0"
# | ^
# | 
# | Input file: <stdin>
# | Check file: /var/tmp/portage/llvm-core/mlir-22.0.0.9999/work/mlir/test/mlir-pdll-lsp-server/view-output.test
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          .
# |          .
# |          .
# |        118: } 
# |        119: Content-Length: 52 
# |        120:  
# |        121: { 
# |        122:   "id": 3, 
# |        123:   "jsonrpc": "2.0", 
# | next:16       !~~~~~~~~~~~~~~~~  error: match on wrong line
# |        124:   "result": null 
# |        125: } 
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

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

Full logs (with CMake invocations, etc.):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants