[llvm-bugs] [Bug 49302] New: ORC JIT Duplicate definition of symbol

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Feb 21 14:26:08 PST 2021


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

            Bug ID: 49302
           Summary: ORC JIT Duplicate definition of symbol
           Product: new-bugs
           Version: 11.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: fenir50 at web.de
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

I used Clang-Cl to compile two simple source files to the LLVM BC language:

First file:
#include <stdio.h>
#include <string>

int test()
{
    std::string("Planschi").substr(1000);
    return printf("Planschi\n");
}

And second file:
#include <stdio.h>
#include <string>

int test2()
{
    std::string("Planschi").substr(1000);
    return printf("Planschi\n");
}

---
Merging the resuling two BC files with LLVM-Link works fine with no issue.
However, when I use the ORC JIT to load those two files to the same DyLib, it
will fail with the message:
Duplicate definition of symbol '??_7exception at std@@6B@'
or
Duplicate definition of symbol '??_7bad_array_new_length at std@@6B@'

-- 
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/20210221/beaf914f/attachment.html>


More information about the llvm-bugs mailing list