<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/110003>110003</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Packaging/LLVM20] libclang-20-dev from apt.llvm.org contains invalid symlink /usr/lib/llvm-20/lib/libclang-cpp.so.20.1
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          TheRealCuran
      </td>
    </tr>
</table>

<pre>
    While trying to build Mesa with LLVM 20 I encountered [Mesa bug #11945](https://gitlab.freedesktop.org/mesa/mesa/-/issues/11945), which was triggered by `libclang-20-dev` shipping an invalid Symlink (`/usr/lib/llvm-20/lib/libclang-cpp.so.20.1`) to a non-existent library (for `amd64` eg. `../../x86_64-linux-gnu/libclang-cpp.so.20.1`).

![image](https://github.com/user-attachments/assets/c30fc87d-ea98-4c3a-a25e-389b1f5d6499)

The invalid symlink switched the `clover` build in Mesa over to static linking. Mesa's missing static dependency will be fixed downstream, but it would be nice to be able to build Mesa with a link to `clang-cpp`.

The symlink should be `/usr/lib/llvm-20/lib/libclang-cpp.so.20.0` pointing to `../../${DEB_HOST_MULTIARCH}/libclang-cpp.so.20.0`. Please correct the build scripts accordingly.

Please note: this might be a duplicate of #109153 or the two are very likely at least closely related. Since I do install my packages from `apt.llvm.org` and do not use `llvm.sh`, I will, however, not make such presumptions. Feel free to merge the tickets, if you believe it is the same.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyclEuz2ygThn8N3nRJhZBkSwsvzuVz5VQl9aWSMzPLFIK21HMQqADZx_9-CuxcZ5JFNugCNPTTb78yBBot4p6196x93Mg1Ts7vnyf8gNI8rF7azeD0Zf_XRAYh-gvZEaKDYSWj4R0GCWeKE7x9--c7EByeAK1yq43oUQNr7_OSYR2Bibqq-qZl7SMT3RTjElh9x8SB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