[llvm-bugs] [Bug 48853] New: Build failure: lld.exe fails to link

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 22 15:16:54 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=48853

            Bug ID: 48853
           Summary: Build failure: lld.exe fails to link
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MachO
          Assignee: unassignedbugs at nondot.org
          Reporter: mizvekov at gmail.com
                CC: gkm at fb.com, jezreel at gmail.com,
                    llvm-bugs at lists.llvm.org, smeenai at fb.com

Compiling current main LLD under MSVC, I get the following error:
´´´
LINK : fatal error LNK1104: cannot open file 'LLVMObjCARC.lib'
´´´

Reverting this recent commit fixes it:

´´´
commit 34e8fcf63f823ebc5a36166c12c01c3a49deea0b
Author: Jez Ng <jezng at fb.com>
Date:   Wed Jan 20 20:41:24 2021 -0500

    [lld-macho] Add dependency on ObjCARC to fix shared build

diff --git a/lld/MachO/CMakeLists.txt b/lld/MachO/CMakeLists.txt
index b76c120802a1..0279b2edcc3a 100644
--- a/lld/MachO/CMakeLists.txt
+++ b/lld/MachO/CMakeLists.txt
@@ -31,6 +31,7 @@ add_lld_library(lldMachO2
   DebugInfoDWARF
   LTO
   MC
+  ObjCARC
   Object
   Option
   Passes
´´´

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210122/f5ac4aa0/attachment.html>


More information about the llvm-bugs mailing list