[llvm-bugs] [Bug 35661] New: lldCommon linking error on Linux
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Thu Dec 14 07:55:34 PST 2017
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=35661
            Bug ID: 35661
           Summary: lldCommon linking error on Linux
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: chen.pang.he at jdh8.org
                CC: llvm-bugs at lists.llvm.org
Created attachment 19550
  --> https://bugs.llvm.org/attachment.cgi?id=19550&action=edit
Proposed patch
I tried to build latest lld on Linux.  It ended with linking
errors, that were undefined reference to
llvm::Function::getContext() const
llvm::AttrBuilder::addAttribute(llvm::StringRef, llvm::StringRef)
llvm::AttrBuilder::addAttribute(llvm::StringRef, llvm::StringRef)
llvm::AttrBuilder::addAttribute(llvm::StringRef, llvm::StringRef)
llvm::AttrBuilder::addAttribute(llvm::StringRef, llvm::StringRef)
llvm::AttrBuilder::addAttribute(llvm::StringRef, llvm::StringRef)
llvm::Attribute::get(llvm::LLVMContext&, llvm::StringRef, llvm::StringRef)
llvm::CallInst::addAttribute(unsigned int, llvm::Attribute)
llvm::AttributeList::addAttributes(llvm::LLVMContext&, unsigned int,
llvm::AttrBuilder const&) const
I found these function belonging to Core, and hence I wrote this
proposed patch.  This patch works for me.
-- 
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/20171214/e5cc4f94/attachment.html>
    
    
More information about the llvm-bugs
mailing list