<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - ORC JIT Duplicate definition of symbol"
href="https://bugs.llvm.org/show_bug.cgi?id=49302">49302</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ORC JIT Duplicate definition of symbol
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>fenir50@web.de
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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@'</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>