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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

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@std@@6B@'
or
Duplicate definition of symbol '??_7bad_array_new_length@std@@6B@'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to