<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi Geoff<br>
    <br>
    <blockquote type="cite">LLVM ERROR: Associative COMDAT symbol
      'GVName' is not a key for its COMDAT.</blockquote>
    This is in CodeGen TargetLoweringObjectFileCOFF so this isn't
    necessarily JIT specific. Maybe a backtrace would be helpful?<br>
    <br>
    <blockquote type="cite">lli --jit-end=orc-lazy hello.bc</blockquote>
    Greedy Orc mode recently landed in lli:
    <a class="moz-txt-link-freetext" href="https://reviews.llvm.org/rGe1579894d2051db8">https://reviews.llvm.org/rGe1579894d2051db8</a><br>
    You might want to retry with that in order to rule out the
    lazy-JIT-infrastructure as a cause for the error.<br>
    <br>
    <blockquote type="cite">should I just give up now on porting our
      Orc-based application to Windows?</blockquote>
    I am not aware of anyone actively working on improved Orc Windows
    support right now.<br>
    <br>
    <div class="moz-cite-prefix">On 02/04/2021 12:40, Geoff Levner via
      llvm-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHMBa1udZBdZ596QVxi+6tT53G1XHcaOB95=Z-Fh1s_hmwTFPw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Sorry, there is a typo in my previous message: read
        "jit-kind" where I typed "jit-end".<br>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, Apr 2, 2021 at 12:37
          PM Geoff Levner <<a href="mailto:glevner@gmail.com"
            moz-do-not-send="true">glevner@gmail.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div>Given this C++ code (hello.cpp):</div>
            <div><br>
            </div>
            <div><span style="font-family:monospace">    #include
                <iostream><br>
                    int main()<br>
                    {<br>
                        std::cout << "Hi, mom." <<
                std::endl;<br>
                        return 0;<br>
                    }</span></div>
            <div><br>
            </div>
            <div>On Linux (CentOS 7), no problem:</div>
            <div><br>
            </div>
            <div><span style="font-family:monospace">    > clang++ -c
                -emit-llvm hello.cpp</span></div>
            <div><span style="font-family:monospace">    > lli
                --jit-end=orc-lazy hello.bc</span></div>
            <div><span style="font-family:monospace">    Hi, mom.</span></div>
            <div><span style="font-family:monospace">    ></span></div>
            <div><br>
            </div>
            <div>But on Windows (7):</div>
            <div>
              <div><br>
              </div>
              <div><span style="font-family:monospace">    > clang++
                  -c -emit-llvm hello.cpp</span></div>
              <div><span style="font-family:monospace">    > lli
                  --jit-end=orc-lazy hello.bc</span></div>
            </div>
            <div><span style="font-family:monospace">    LLVM ERROR:
                Associative COMDAT symbol
                '??_7_Iostream_error_category2@std@@6B@' is not a key
                for its COMDAT.<br>
                PLEASE submit a bug report to <a
                  href="https://bugs.llvm.org/" target="_blank"
                  moz-do-not-send="true">https://bugs.llvm.org/</a> and
                include the crash backtrace.</span></div>
            <div><br>
            </div>
            <div>I know Orc JIT lacks COMDAT support, but I thought that
              just caused duplicate symbols sometimes. Am I doing
              something stupid here? Or should I just give up now on
              porting our Orc-based application to Windows? (The
              application JIT-compiles C++ modules which rely heavily on
              STL.)<br>
            </div>
            <div><br>
            </div>
            <div>Geoff</div>
            <div><br>
            </div>
          </div>
        </blockquote>
      </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>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="https://flowcrypt.com/pub/stefan.graenitz@gmail.com">https://flowcrypt.com/pub/stefan.graenitz@gmail.com</a></pre>
  </body>
</html>