<div dir="ltr"><div dir="ltr">Hi All,<div><br></div><div>> I am tuning in to this thread several months late, because I am just now trying to port our ORC-based application to Windows, and I am running into all the same problems that Emmanuel ran into.</div><div><br></div><div>At first glance it does look like a COMDAT issue. Unfortunately I'm too busy to dig in and verify that at the moment. Assuming it is a COMDAT issue it might be either easy to fix (if it's just a failure to map correctly to ORC's Weak linkage), or hard (if the COMDAT kind doesn't map neatly to Weak).</div><div><br></div><div>I would love to see better Windows support, and I don't actually think we're too far off having it. Unfortunately I don't have time (or a Windows license) to dedicate to the cause at the moment. If any of you know anyone who would be interested in spearheading that please let me know -- I'll be very happy to consult and provide backup. Otherwise it will have to wait until I find time, which won't happen during LLVM 13 development.</div><div><br></div><div>-- Lang.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 14, 2021 at 4:05 AM Stefan Gränitz <<a href="mailto:stefan.graenitz@gmail.com">stefan.graenitz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">FYI Not sure there were specific questions open after<br>
<a href="https://lists.llvm.org/pipermail/llvm-dev/2021-April/149584.html" rel="noreferrer" target="_blank">https://lists.llvm.org/pipermail/llvm-dev/2021-April/149584.html</a><br>
<br>
On 12/04/2021 22:31, David Blaikie via llvm-dev wrote:<br>
> +Lang Hames<br>
><br>
> On Thu, Apr 1, 2021 at 1:10 AM Emmanuel Roche via llvm-dev<br>
> <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
>> Hi Geoff!<br>
>><br>
>> It's nice to see that other people are following this "adventurous path" ;-) But unfortunately, I'm afraid, I don't have anything new to submit on this topic: I basically stopped working on those LLVM tests shortly after that last discussion, since I shifted my focus to different tasks/concerns... :-( Eventually I would like to get back to it, but realistically this is not going to happen anytime soon.Now, last thing I see from the notes I took (but you probably already noticed that) was that I seemed to have reached a point where my tests were working as expected despite this limitation, using the code I took from llvm-link (as described in that section <a href="https://wiki.nervtech.org/doku.php?id=blog:2020:0425_jit_compiler_part5_improvements#jit_modules_linking_process" rel="noreferrer" target="_blank">https://wiki.nervtech.org/doku.php?id=blog:2020:0425_jit_compiler_part5_improvements#jit_modules_linking_process</a> ): so I'd say that was a working workaround in my case... but not sure it could apply in your situation depending on your whole "sources/bytecode/module processing path"...<br>
>><br>
>> => But anyway, I wish you good luck if you decide to get your hands dirty on that!<br>
>><br>
>> Cheers,<br>
>> Manu.<br>
>><br>
>><br>
>> Le mer. 31 mars 2021 à 15:09, Geoff Levner <<a href="mailto:glevner@gmail.com" target="_blank">glevner@gmail.com</a>> a écrit :<br>
>>> Hi Emmanuel and Lang,<br>
>>><br>
>>> I am tuning in to this thread several months late, because I am just now trying to port our ORC-based application to Windows, and I am running into all the same problems that Emmanuel ran into. To avoid unresolved symbols I have had to compile JIT modules with -D_DLL; I have had to export RTTI-related symbols explicitly with the same trick that Emmanuel found; and now I have multiple definitions of ??_7exception@std@@6B@, like Emmanuel.<br>
>>><br>
>>> I see this bug has not been fixed, so my question is mostly for Emmanuel: have you found a workaround? I don't know exactly when this symbol is generated, but I have C++ modules that cannot be JIT compiled as a result...<br>
>>><br>
>>> Geoff<br>
>>><br>
>> _______________________________________________<br>
>> LLVM Developers mailing list<br>
>> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
>> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br>
-- <br>
<a href="https://flowcrypt.com/pub/stefan.graenitz@gmail.com" rel="noreferrer" target="_blank">https://flowcrypt.com/pub/stefan.graenitz@gmail.com</a><br>
<br>
</blockquote></div>