[5969/6152] SOLINK clang_arm64_v8_x64/libvk_swiftshader.dylib clang_arm64_v8_x64/libvk_swiftshader.dylib.TOC
FAILED: clang_arm64_v8_x64/libvk_swiftshader.dylib clang_arm64_v8_x64/libvk_swiftshader.dylib.TOC
if [ ! -e "clang_arm64_v8_x64/libvk_swiftshader.dylib" -o ! -e "clang_arm64_v8_x64/libvk_swiftshader.dylib.TOC" ] || ../../build/mac_files/xcode_binaries/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool -l "clang_arm64_v8_x64/libvk_swiftshader.dylib" | grep -q LC_REEXPORT_DYLIB ; then TOOL_VERSION=1705517069 ../../build/toolchain/apple/linker_driver.py -Wcrl,driver,../../third_party/llvm-build/Release+Asserts/bin/clang++ -Wcrl,strippath,../../build/mac_files/xcode_binaries/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -Wcrl,installnametoolpath,../../build/mac_files/xcode_binaries/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool -shared -Wl,-install_name,@rpath/libvk_swiftshader.dylib -Wl,-exported_symbols_list,../../third_party/swiftshader/src/Vulkan/vk_swiftshader.exports -fuse-ld=lld -Wl,-fatal_warnings -Wl,--color-diagnostics -Wl,--strict-auto-link -Wl,--no-call-graph-profile-sort --target=arm64-apple-macos -Wl,-mllvm,-enable-machine-outliner=never -no-canonical-prefixes -Wl,-dead_strip -nostdlib++ -isysroot ../../build/mac_files/xcode_binaries/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -mmacos-version-min=10.15 -fprofile-instr-generate -Wl,-ObjC -Werror -weak_framework Metal -o "clang_arm64_v8_x64/libvk_swiftshader.dylib" "@clang_arm64_v8_x64/libvk_swiftshader.dylib.rsp" && { ../../build/mac_files/xcode_binaries/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool -l "clang_arm64_v8_x64/libvk_swiftshader.dylib" | grep LC_ID_DYLIB -A 5; ../../build/mac_files/xcode_binaries/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm -gPp "clang_arm64_v8_x64/libvk_swiftshader.dylib" | cut -f1-2 -d' ' | grep -v U$$; true; } > "clang_arm64_v8_x64/libvk_swiftshader.dylib.TOC"; else TOOL_VERSION=1705517069 ../../build/toolchain/apple/linker_driver.py -Wcrl,driver,../../third_party/llvm-build/Release+Asserts/bin/clang++ -Wcrl,strippath,../../build/mac_files/xcode_binaries/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -Wcrl,installnametoolpath,../../build/mac_files/xcode_binaries/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool -shared -Wl,-install_name,@rpath/libvk_swiftshader.dylib -Wl,-exported_symbols_list,../../third_party/swiftshader/src/Vulkan/vk_swiftshader.exports -fuse-ld=lld -Wl,-fatal_warnings -Wl,--color-diagnostics -Wl,--strict-auto-link -Wl,--no-call-graph-profile-sort --target=arm64-apple-macos -Wl,-mllvm,-enable-machine-outliner=never -no-canonical-prefixes -Wl,-dead_strip -nostdlib++ -isysroot ../../build/mac_files/xcode_binaries/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -mmacos-version-min=10.15 -fprofile-instr-generate -Wl,-ObjC -Werror -weak_framework Metal -o "clang_arm64_v8_x64/libvk_swiftshader.dylib" "@clang_arm64_v8_x64/libvk_swiftshader.dylib.rsp" && { ../../build/mac_files/xcode_binaries/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool -l "clang_arm64_v8_x64/libvk_swiftshader.dylib" | grep LC_ID_DYLIB -A 5; ../../build/mac_files/xcode_binaries/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm -gPp "clang_arm64_v8_x64/libvk_swiftshader.dylib" | cut -f1-2 -d' ' | grep -v U$$; true; } > "clang_arm64_v8_x64/libvk_swiftshader.dylib.tmp" && if ! cmp -s "clang_arm64_v8_x64/libvk_swiftshader.dylib.tmp" "clang_arm64_v8_x64/libvk_swiftshader.dylib.TOC"; then mv "clang_arm64_v8_x64/libvk_swiftshader.dylib.tmp" "clang_arm64_v8_x64/libvk_swiftshader.dylib.TOC" ; fi; fi
ld64.lld: error: undefined symbol: llvm::DwarfCompileUnit::constructAbstractSubprogramScopeDIE(llvm::LexicalScope*)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::constructAbstractSubprogramScopeDIE(llvm::DwarfCompileUnit&, llvm::LexicalScope*)+0xe8)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::constructAbstractSubprogramScopeDIE(llvm::DwarfCompileUnit&, llvm::LexicalScope*)+0x9c)
ld64.lld: error: undefined symbol: llvm::DwarfCompileUnit::DwarfCompileUnit(unsigned int, llvm::DICompileUnit const*, llvm::AsmPrinter*, llvm::DwarfDebug*, llvm::DwarfFile*, llvm::UnitKind)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::getOrCreateDwarfCompileUnit(llvm::DICompileUnit const*)+0xcc)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::constructSkeletonCU(llvm::DwarfCompileUnit const&)+0x40)
ld64.lld: error: undefined symbol: llvm::DwarfCompileUnit::constructCallSiteParmEntryDIEs(llvm::DIE&, llvm::SmallVector<llvm::DbgCallSiteParam, 4u>&)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::constructCallSiteEntryDIEs(llvm::DISubprogram const&, llvm::DwarfCompileUnit&, llvm::DIE&, llvm::MachineFunction const&)+0x578)
ld64.lld: error: undefined symbol: llvm::DwarfCompileUnit::constructCallSiteEntryDIE(llvm::DIE&, llvm::DISubprogram const*, bool, llvm::MCSymbol const*, llvm::MCSymbol const*, unsigned int)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::constructCallSiteEntryDIEs(llvm::DISubprogram const&, llvm::DwarfCompileUnit&, llvm::DIE&, llvm::MachineFunction const&)+0x260)
ld64.lld: error: undefined symbol: llvm::DwarfCompileUnit::useGNUAnalogForDwarf5Feature() const
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::constructCallSiteEntryDIEs(llvm::DISubprogram const&, llvm::DwarfCompileUnit&, llvm::DIE&, llvm::MachineFunction const&)+0x1f8)
ld64.lld: error: undefined symbol: llvm::DwarfUnit::addFlag(llvm::DIE&, llvm::dwarf::Attribute)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::constructCallSiteEntryDIEs(llvm::DISubprogram const&, llvm::DwarfCompileUnit&, llvm::DIE&, llvm::MachineFunction const&)+0x74)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishUnitAttributes(llvm::DICompileUnit const*, llvm::DwarfCompileUnit&)+0x1cc)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishUnitAttributes(llvm::DICompileUnit const*, llvm::DwarfCompileUnit&)+0x1ac)
>>> referenced 1 more times
ld64.lld: error: undefined symbol: llvm::DwarfCompileUnit::getDwarf5OrGNUAttr(llvm::dwarf::Attribute) const
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::constructCallSiteEntryDIEs(llvm::DISubprogram const&, llvm::DwarfCompileUnit&, llvm::DIE&, llvm::MachineFunction const&)+0x64)
ld64.lld: error: undefined symbol: llvm::DwarfUnit::addString(llvm::DIE&, llvm::dwarf::Attribute, llvm::StringRef)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishUnitAttributes(llvm::DICompileUnit const*, llvm::DwarfCompileUnit&)+0x3c4)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishUnitAttributes(llvm::DICompileUnit const*, llvm::DwarfCompileUnit&)+0x27c)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishUnitAttributes(llvm::DICompileUnit const*, llvm::DwarfCompileUnit&)+0x1f4)
>>> referenced 8 more times
ld64.lld: error: undefined symbol: llvm::DwarfUnit::addUInt(llvm::DIEValueList&, llvm::dwarf::Attribute, std::__Cr::optional<llvm::dwarf::Form>, unsigned long long)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishUnitAttributes(llvm::DICompileUnit const*, llvm::DwarfCompileUnit&)+0x22c)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishUnitAttributes(llvm::DICompileUnit const*, llvm::DwarfCompileUnit&)+0x210)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishUnitAttributes(llvm::DICompileUnit const*, llvm::DwarfCompileUnit&)+0xe4)
>>> referenced 3 more times
ld64.lld: error: undefined symbol: llvm::DwarfCompileUnit::hasDwarfPubSections() const
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishUnitAttributes(llvm::DICompileUnit const*, llvm::DwarfCompileUnit&)+0x198)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::emitDebugPubSections()+0x48)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::initSkeletonUnit(llvm::DwarfUnit const&, llvm::DIE&, std::__Cr::unique_ptr<llvm::DwarfCompileUnit, std::__Cr::default_delete<llvm::DwarfCompileUnit>>)+0x3c)
ld64.lld: error: undefined symbol: llvm::DwarfCompileUnit::initStmtList()
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishUnitAttributes(llvm::DICompileUnit const*, llvm::DwarfCompileUnit&)+0x174)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::constructSkeletonCU(llvm::DwarfCompileUnit const&)+0x58)
ld64.lld: error: undefined symbol: llvm::DwarfUnit::addStringOffsetsStart()
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishUnitAttributes(llvm::DICompileUnit const*, llvm::DwarfCompileUnit&)+0x164)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::constructSkeletonCU(llvm::DwarfCompileUnit const&)+0x68)
ld64.lld: error: undefined symbol: llvm::DwarfCompileUnit::constructImportedEntityDIE(llvm::DIImportedEntity const*)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::constructAndAddImportedEntityDIE(llvm::DwarfCompileUnit&, llvm::DIImportedEntity const*)+0x60)
ld64.lld: error: undefined symbol: llvm::DwarfUnit::getOrCreateContextDIE(llvm::DIScope const*)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::constructAndAddImportedEntityDIE(llvm::DwarfCompileUnit&, llvm::DIImportedEntity const*)+0x4c)
ld64.lld: error: undefined symbol: llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::beginModule(llvm::Module*)+0x7bc)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::beginModule(llvm::Module*)+0x73c)
ld64.lld: error: undefined symbol: llvm::DwarfCompileUnit::getOrCreateGlobalVariableDIE(llvm::DIGlobalVariable const*, llvm::ArrayRef<llvm::DwarfCompileUnit::GlobalExpr>)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::beginModule(llvm::Module*)+0x6d0)
ld64.lld: error: undefined symbol: llvm::DwarfCompileUnit::finishEntityDefinition(llvm::DbgEntity const*)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishEntityDefinitions()+0x64)
ld64.lld: error: undefined symbol: llvm::DwarfCompileUnit::finishSubprogramDefinition(llvm::DISubprogram const*)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishSubprogramDefinitions()+0x78)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finishSubprogramDefinitions()+0x5c)
ld64.lld: error: undefined symbol: llvm::DwarfUnit::addSectionLabel(llvm::DIE&, llvm::dwarf::Attribute, llvm::MCSymbol const*, llvm::MCSymbol const*)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finalizeModuleInfo()+0x484)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finalizeModuleInfo()+0x3bc)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finalizeModuleInfo()+0x2a8)
ld64.lld: error: undefined symbol: llvm::DwarfUnit::addSectionDelta(llvm::DIE&, llvm::dwarf::Attribute, llvm::MCSymbol const*, llvm::MCSymbol const*)
>>> referenced by clang_arm64_v8_x64/obj/third_party/swiftshader/third_party/llvm-16.0/swiftshader_llvm_source_set_0/DwarfDebug.o:(symbol llvm::DwarfDebug::finalizeModuleInfo()+0x430)
ld64.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Traceback (most recent call last):
File "../../build/toolchain/apple/linker_driver.py", line 389, in <module>
LinkerDriver(sys.argv).run()
File "../../build/toolchain/apple/linker_driver.py", line 172, in run
subprocess.check_call([self._driver_path] + compiler_driver_args,
File "/Volumes/Work/s/w/ir/cipd_bin_packages/cpython3/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['../../third_party/llvm-build/Release+Asserts/bin/clang++', '-shared', '-Wl,-install_name,@rpath/libvk_swiftshader.dylib', '-Wl,-exported_symbols_list,../../third_party/swiftshader/src/Vulkan/vk_swiftshader.exports', '-fuse-ld=lld', '-Wl,-fatal_warnings', '-Wl,--color-diagnostics', '-Wl,--strict-auto-link', '-Wl,--no-call-graph-profile-sort', '--target=arm64-apple-macos', '-Wl,-mllvm,-enable-machine-outliner=never', '-no-canonical-prefixes', '-Wl,-dead_strip', '-nostdlib++', '-isysroot', '../../build/mac_files/xcode_binaries/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk', '-mmacos-version-min=10.15', '-fprofile-instr-generate', '-Wl,-ObjC', '-Werror', '-weak_framework', 'Metal', '-o', 'clang_arm64_v8_x64/libvk_swiftshader.dylib', '@clang_arm64_v8_x64/libvk_swiftshader.dylib.rsp']' returned non-zero exit status 1.