[lld] [CGData] LLD for MachO (PR #90166)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 14 21:01:48 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-shared` running on `bolt-worker` while building `lld` at step 6 "test-build-bolt-check-bolt".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-bolt-check-bolt) failure: test (failure)
...
16.349 [285/18/1302] Building CXX object tools/lld/MachO/CMakeFiles/lldMachO.dir/Driver.cpp.o
16.367 [284/18/1303] Building CXX object tools/clang/lib/Index/CMakeFiles/obj.clangIndex.dir/IndexingContext.cpp.o
16.387 [283/18/1304] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/Checker.cpp.o
16.444 [282/18/1305] Building CXX object tools/lld/MachO/CMakeFiles/lldMachO.dir/InputFiles.cpp.o
16.495 [281/18/1306] Building CXX object tools/clang/lib/Index/CMakeFiles/obj.clangIndex.dir/IndexingAction.cpp.o
16.507 [280/18/1307] Building CXX object tools/clang/lib/FrontendTool/CMakeFiles/obj.clangFrontendTool.dir/ExecuteCompilerInvocation.cpp.o
16.531 [279/18/1308] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CheckerRegistryData.cpp.o
16.536 [278/18/1309] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CommonBugCategories.cpp.o
16.557 [277/18/1310] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/ConstraintManager.cpp.o
16.566 [276/18/1311] Linking CXX shared library lib/liblldMachO.so.20.0git
FAILED: lib/liblldMachO.so.20.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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 -fuse-ld=lld -Wl,--color-diagnostics   -Wl,--gc-sections -shared -Wl,-soname,liblldMachO.so.20.0git -o lib/liblldMachO.so.20.0git tools/lld/MachO/CMakeFiles/lldMachO.dir/Arch/ARM64.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/Arch/ARM64Common.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/Arch/ARM64_32.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/Arch/X86_64.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/ConcatOutputSection.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/Driver.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/DriverUtils.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/Dwarf.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/EhFrame.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/ExportTrie.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/ICF.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/InputFiles.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/InputSection.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/LTO.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/MapFile.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/MarkLive.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/ObjC.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/OutputSection.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/OutputSegment.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/Relocations.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/BPSectionOrderer.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/SectionPriorities.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/Sections.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/SymbolTable.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/Symbols.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/SyntheticSections.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/Target.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/UnwindInfoSection.cpp.o tools/lld/MachO/CMakeFiles/lldMachO.dir/Writer.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/lib:"  lib/liblldCommon.so.20.0git  lib/libLLVMX86CodeGen.so.20.0git  lib/libLLVMX86AsmParser.so.20.0git  lib/libLLVMX86Desc.so.20.0git  lib/libLLVMX86Disassembler.so.20.0git  lib/libLLVMX86Info.so.20.0git  lib/libLLVMAArch64CodeGen.so.20.0git  lib/libLLVMAArch64AsmParser.so.20.0git  lib/libLLVMAArch64Disassembler.so.20.0git  lib/libLLVMRISCVCodeGen.so.20.0git  lib/libLLVMRISCVAsmParser.so.20.0git  lib/libLLVMRISCVDisassembler.so.20.0git  lib/libLLVMLTO.so.20.0git  lib/libLLVMOption.so.20.0git  lib/libLLVMPasses.so.20.0git  lib/libLLVMAArch64Desc.so.20.0git  lib/libLLVMAArch64Info.so.20.0git  lib/libLLVMAArch64Utils.so.20.0git  lib/libLLVMRISCVDesc.so.20.0git  lib/libLLVMRISCVInfo.so.20.0git  lib/libLLVMObjCARCOpts.so.20.0git  lib/libLLVMBitWriter.so.20.0git  lib/libLLVMProfileData.so.20.0git  lib/libLLVMDebugInfoDWARF.so.20.0git  lib/libLLVMObject.so.20.0git  lib/libLLVMTextAPI.so.20.0git  lib/libLLVMMC.so.20.0git  lib/libLLVMBitReader.so.20.0git  lib/libLLVMCore.so.20.0git  lib/libLLVMBinaryFormat.so.20.0git  lib/libLLVMTargetParser.so.20.0git  lib/libLLVMSupport.so.20.0git  lib/libLLVMDemangle.so.20.0git  -Wl,-rpath-link,/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/lib && :
ld.lld: error: undefined symbol: llvm::OutlinedHashTree::size(bool) const
>>> referenced by Driver.cpp
>>>               tools/lld/MachO/CMakeFiles/lldMachO.dir/Driver.cpp.o:(lld::macho::link(llvm::ArrayRef<char const*>, llvm::raw_ostream&, llvm::raw_ostream&, bool, bool))

ld.lld: error: undefined symbol: llvm::CodeGenDataWriter::addRecord(llvm::OutlinedHashTreeRecord&)
>>> referenced by Driver.cpp
>>>               tools/lld/MachO/CMakeFiles/lldMachO.dir/Driver.cpp.o:(lld::macho::link(llvm::ArrayRef<char const*>, llvm::raw_ostream&, llvm::raw_ostream&, bool, bool))

ld.lld: error: undefined symbol: llvm::CodeGenDataWriter::write(llvm::raw_fd_ostream&)
>>> referenced by Driver.cpp
>>>               tools/lld/MachO/CMakeFiles/lldMachO.dir/Driver.cpp.o:(lld::macho::link(llvm::ArrayRef<char const*>, llvm::raw_ostream&, llvm::raw_ostream&, bool, bool))

ld.lld: error: undefined symbol: llvm::OutlinedHashTreeRecord::deserialize(unsigned char const*&)
>>> referenced by Driver.cpp
>>>               tools/lld/MachO/CMakeFiles/lldMachO.dir/Driver.cpp.o:(lld::macho::link(llvm::ArrayRef<char const*>, llvm::raw_ostream&, llvm::raw_ostream&, bool, bool))

ld.lld: error: undefined symbol: llvm::OutlinedHashTree::merge(llvm::OutlinedHashTree const*)
>>> referenced by Driver.cpp
>>>               tools/lld/MachO/CMakeFiles/lldMachO.dir/Driver.cpp.o:(lld::macho::link(llvm::ArrayRef<char const*>, llvm::raw_ostream&, llvm::raw_ostream&, bool, bool))
collect2: error: ld returned 1 exit status
16.572 [276/17/1312] Building CXX object tools/clang/lib/Index/CMakeFiles/obj.clangIndex.dir/IndexBody.cpp.o
16.576 [276/16/1313] Building CXX object tools/clang/lib/Frontend/CMakeFiles/obj.clangFrontend.dir/InterfaceStubFunctionsConsumer.cpp.o
16.590 [276/15/1314] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/AnalysisManager.cpp.o
16.641 [276/14/1315] Building CXX object tools/clang/lib/Index/CMakeFiles/obj.clangIndex.dir/IndexTypeSourceInfo.cpp.o
16.739 [276/13/1316] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/BugReporter.cpp.o
16.776 [276/12/1317] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CallEvent.cpp.o
16.788 [276/11/1318] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CallDescription.cpp.o
16.803 [276/10/1319] Building CXX object tools/clang/lib/InstallAPI/CMakeFiles/obj.clangInstallAPI.dir/Frontend.cpp.o
16.809 [276/9/1320] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CheckerContext.cpp.o
16.847 [276/8/1321] Building CXX object tools/clang/lib/InstallAPI/CMakeFiles/obj.clangInstallAPI.dir/Visitor.cpp.o
16.868 [276/7/1322] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/BugReporterVisitors.cpp.o
16.898 [276/6/1323] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CheckerHelpers.cpp.o
16.908 [276/5/1324] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/BugSuppression.cpp.o
16.951 [276/4/1325] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CheckerManager.cpp.o
16.978 [276/3/1326] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CoreEngine.cpp.o
17.732 [276/2/1327] Building CXX object tools/clang/lib/Frontend/CMakeFiles/obj.clangFrontend.dir/CompilerInvocation.cpp.o
18.200 [276/1/1328] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o

```

</details>

https://github.com/llvm/llvm-project/pull/90166


More information about the llvm-commits mailing list