<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 - Sanitizer -shared-libsan is unusable on Ubuntu 20.04/18.04 and clang-12/10"
   href="https://bugs.llvm.org/show_bug.cgi?id=51271">51271</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Sanitizer -shared-libsan is unusable on Ubuntu 20.04/18.04 and clang-12/10
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>12.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>serge.rogatch@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If I compile a simple program (sample.cpp):

#include <cstdio>

int main() {
  printf("Hello, World");
  return 0;
}

with a shared sanitizer library, i.e.

clang++-12 -fsanitize=address -shared-libsan sample.cpp -o sample

I am getting the following error when running ./sample:

./sample: error while loading shared libraries: libclang_rt.asan-x86_64.so:
cannot open shared object file: No such file or directory

I am getting this error for the sample code on my local machine (Ubuntu 20.04
and clang-12), as well as for the production code on our build runner (Ubuntu
18.04 and clang-10).</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>