<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Kevin,</p>
<p>Sounds like you have run into this bug: <a
href="https://bugs.llvm.org/show_bug.cgi?id=40074">https://bugs.llvm.org/show_bug.cgi?id=40074</a></p>
<p>A workaround is to build LLVM with HasCOFFComdatConstants set to
false in MCAsmInfoCOFF.cpp.</p>
<p>Regards,</p>
<p> Machiel van Hooren</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 07-Jan-20 12:42, Kevin Tew via
llvm-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAM8r3gE1OXkwb8DGVn8Hj4VRnLd05KCVD8xxZ1-+hA80td1BYw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">I've been using ORC jit based off the
Kaleidoscope tutorials successfully on Linux and OS X.
However when I tried to move to windows I'm having troubles.<br>
<br>
<div>Following the advice here, <a
href="http://lists.llvm.org/pipermail/llvm-dev/2019-January/128812.html"
moz-do-not-send="true">http://lists.llvm.org/pipermail/llvm-dev/2019-January/128812.html</a>,
I added:</div>
<div>ObjectLayer.setAutoClaimResponsibilityForObjectSymbols(
true );<br>
</div>
<div>
ObjectLayer.setOverrideObjectFlagsWithResponsibilityFlags(
true );<br>
</div>
<div><br>
</div>
<div>I'm JITTing multiple functions in a loop.</div>
<div>I create the Module and lookup the first function just
fine using the following code from the tutorial.</div>
<div dir="ltr"><br>
</div>
llvm::cantFail( jit->addModule(std::move(mModule)));<br>
<div>auto ExprSymbol = jit->lookup( func_name.c_str( ));</div>
<div><br>
</div>
<div>When I go to lookup the second function I'm jitting, I
get the following error:<br>
</div>
<div>JIT session error: Duplicate definition of symbol
'__real@3ff0000000000000'<br>
</div>
<div><br>
</div>
<div>Any pointers or help would be appreciated,</div>
<div><br>
</div>
<div>Kevin</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
</body>
</html>