<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 - Missing /usr/lib/llvm-14/lib/libclang-14.so.14.0.0 after installation"
   href="https://bugs.llvm.org/show_bug.cgi?id=51821">51821</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Missing /usr/lib/llvm-14/lib/libclang-14.so.14.0.0 after installation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Packaging
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>deb packages
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>carlosgalvezp@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi,

Currently on clang trunk bionic
(14~%2b%2b20210910063816%2b14afbe9448d5-1~exp1~20210910164619.2666) the
following file is missing after installation:

/usr/lib/llvm-14/libclang-14.so.14.0.0

Indeed:

# find /usr/ -iname libclang-14*.so*
/usr/lib/x86_64-linux-gnu/libclang-14.so.14.0.0
/usr/lib/x86_64-linux-gnu/libclang-14.so
/usr/lib/x86_64-linux-gnu/libclang-14.so.1
/usr/lib/x86_64-linux-gnu/libclang-14.so.13
/usr/lib/llvm-14/lib/libclang-14.so
/usr/lib/llvm-14/lib/libclang-14.so.1
/usr/lib/llvm-14/lib/libclang-14.0.0.so

This causes trouble building packages that use CMake to find Clang, for example
"include-what-you-use":

CMake Error at /usr/lib/llvm-14/lib/cmake/clang/ClangTargets.cmake:709
(message):
  The imported target "libclang" references the file

     "/usr/lib/llvm-14/lib/libclang-14.so.14.0.0"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib/llvm-14/lib/cmake/clang/ClangTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/cmake/clang-14/ClangConfig.cmake:20 (include)</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>