<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 - undefined symbol: __ubsan_handle_cfi_check_fail when linking a large rust project"
   href="https://bugs.llvm.org/show_bug.cgi?id=38507">38507</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>undefined symbol: __ubsan_handle_cfi_check_fail when linking a large rust project
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tom@ritter.vg
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, vlad@tsyrklevich.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20667" name="attach_20667" title="compilation command.txt">attachment 20667</a> <a href="attachment.cgi?id=20667&action=edit" title="compilation command.txt">[details]</a></span>
compilation command.txt

I'm compiling firefox and working on Control Flow Integrity. I hit this error
when linking something after a rust compilation.  I reproduced it with a day
old clang.

clang version 8.0.0 (trunk) (llvm/trunk 339310)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/tom/Documents/moz/mozilla-unified-cfi-icall/clang/bin


ld.lld: error: undefined symbol: __ubsan_handle_cfi_check_fail
<span class="quote">>>> referenced by bzlib.c:508 (bzip2-1.0.6/bzlib.c:508)
>>>               lto.tmp:(BZ2_bzDecompressInit)</span >


And 7 similar errors



The reproduction command is quite large, and the reproduction file even larger.
I've attached the command; and the reproduction tarfile (from --reproduce) is
at <a href="https://ritter.vg/misc/transient/rustlink.tar.gz">https://ritter.vg/misc/transient/rustlink.tar.gz</a>

Mozilla bug is <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1482140">https://bugzilla.mozilla.org/show_bug.cgi?id=1482140</a></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>