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

    <tr>
        <th>Summary</th>
        <td>
            aarch64 packages for libc++ and libunwind on apt.llvm.org misplace library files
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc++,
            packaging,
            libunwind
      </td>
    </tr>

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

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

<pre>
    On my raspberry pi, using the apt repository `deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main`, the packages `libc++1-15:arm64` and `libunwind-15:arm64` place their .so and .a symbolic links in `/usr/lib/x86_64-linux-gnu/` instead of the correct `/usr/lib/aarch64-linux-gnu`.

(This includes `libc++.a`, `libc++.so`, `libunwind.a`, and `libunwind.so` but not `libc++.so.1`, `libunwind.so.1.0`, etc.)

The link targets themselves are the right architecture and everything works when the links are moved to the right arch.

I noticed this yesterday as of version `1:15~++20220601042145+17296607a761-1~exp1~20220601042238.208`, and it is still present today in version `1:15~++20220602031407+89818f2dc0b6-1~exp1~20220602151500.211`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFVE2P3CAM_TWZC5oIyOcccth2u1JPvey9IuAk7JIQAZnd_PuazHS-ulKliARjnv2e7bRWrc2viYwrccLPLTi3klkn_DtZvJ56EgYgYg7EwWy9DhaPk5IqaMkQwpxkTwl_wQddUmOOY2pdj9s3MY4rvkm07YO1Rg5CT_vNTkb8RJAYJMLPQr6LHnwENrqVCf-GD9uzAuGFG8scD4iY1NlhmT70pB6OZyMkRDjtSOrt5p4K4textUZLYvT07omeyBb4ZfEOVwTD9bMuf5f5Hj2Wz30_LZERIurJBxCK2G7LUlrnQIYv7gvh5HAHUNI0oc8JfTqvvH4ddIwuzaIeiabirMW91ds784n0xfdRjZM7aZdAJhv-gUrZV2DRntLzCQSZJvxwm_cr0o66kSBcD8FHHUYP5ogUhNvUJk73QyBRAR1QngXNMTc4glvDEDvowzpU_mOAabtwKkS8PtojKBLsA86ddD8jHS2jX1RwBayJU2IlwsfCYBSv7VZUht2ALVH9OJHmlHOKVppzlhexnyp-KEtaiarE1kI_-Jzj68aRZ3XKaX0jsQ4Eo_qgjSGzAw9TwIRjfOyk_wbnNGM5rdBQH2pWd1xJ2pZfBOesYAWlKWexTjvVZOqQHcQu6GCgOffXdU4668i1vFuil6ISTOh2GMmo_Wk20MUJHN9OG_C7xZkmTrC_jHCvw7C0qbRj7Gy8fn7tZ2ffsLS41d4v4PGjKOo82w2NYEXbKshp2cmKgVQFhUrILqMUOtF2OyNaML5JCsyUX3PGzdaNnJ9IYZ9cTRcu0VQ873TzVybOWcZpqljNhChyrFiuqqJKcgr4TzEX0jvXbJm3S-_x0Ggf_PVQeK_7CWDLCvHFEgbrmnEZW1TmXQSUZ2PabDT_ANm5leE">