[LLVMbugs] [Bug 22351] New: [3.6] assertion failed when using -flto with undefined symbols

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 27 08:34:19 PST 2015


            Bug ID: 22351
           Summary: [3.6] assertion failed when using -flto with undefined
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: gold-plugin
          Assignee: unassignedbugs at nondot.org
          Reporter: sgvozdar at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


int foo();
int main()
    return foo();

$ clang -flto main.cpp
repo/tools/gold/gold-plugin.cpp:636: std::unique_ptr<Module>
getModuleForFile(llvm::LLVMContext &, <anonymous>::claimed_file &,
llvm::raw_fd_ostream *, StringSet<> &, StringSet<> &): Assertion
`GV->hasComdat()' failed.
clang: error: unable to execute command: Aborted (core dumped)
clang: error: linker command failed due to signal (use -v to see invocation)

$ clang -flto main.cpp
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Sergey Gvozdarev
Software Engineer
Intel Compiler Team

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/20150127/ae928b1d/attachment.html>

More information about the llvm-bugs mailing list