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

    <tr>
        <th>Summary</th>
        <td>
            [15 Regression] libc++abi.so.1.0 not linked against libgcc_s
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    Installing libc++abi1-15 instead of libc++abi1-14 (making LLVM 15 the default in Ubuntu) breaks existing binaries, like

/usr/lib/android-sdk/extras/google/auto/desktop-head-unit: symbol lookup error: /usr/lib/android-sdk/extras/google/auto/desktop-head-unit: undefined symbol: __udivmodti4

found in the google-android-installers package.  The reason is that libc++abi.so isn't linked anymore against libgcc_s, and just rebuilding the package using LLVM 15 also doesn't link the binary against libgcc_s.


$ ldd /usr/lib/llvm-14/lib/libc++abi.so.1.0

        linux-vdso.so.1 (0x00007fff0233d000)

        libunwind.so.1 => /lib/x86_64-linux-gnu/libunwind.so.1 (0x00007f4c18f64000)

        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4c18d5f000)

        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4c18c76000)

        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f4c18c56000)

        /lib64/ld-linux-x86-64.so.2 (0x00007f4c18fb2000)


$ ldd /usr/lib/llvm-15/lib/libc++abi.so.1.0

        linux-vdso.so.1 (0x00007ffe8acaf000)

        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7ecdd09000)

        libunwind.so.1 => /lib/x86_64-linux-gnu/libunwind.so.1 (0x00007f7ecdcfb000)

        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7ecdc12000)

        /lib64/ld-linux-x86-64.so.2 (0x00007f7ecdf51000)

I don't see yet where the library is being linked against libgcc_s in LLVM 14

corresponding Debian report is https://bugs.debian.org/1020423
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9Vk2P2zYQ_TXShbAgUV_2QYek2wUCpJei7XVBiiOZEUUa_NjY_75Dydu111sjadMKgmRxZt4bzoyezI04dZ-080wpqUeiJO8T-hFPxmWxKWoi0QhMEDPcGCuS0O3Mphj4-fMfvxB093sgAgYWlMdQ8jsP2oeE7gi3wCZH4CidjwFcamYluIT-hMATJPlDkn84X-ljcBavyIhXpoU1UmycmPAJjt4yDHscjRkVRHvwBm8C3OTNYbPHdDdBS5-UH4g7zdwoooyZwoGAtcbG5R_IEDTuV2oQZ6649vQUhHyejfCyutzYYNA71iWWaUXfvHDLtQtgHTmwfmIjZIT8hn5YOGc0kQ6jmL_uQuYMGnRC22jQE2bB9Gk2FggbWYSM_mPfPy2FRi7yJeCiBR6kErERMZUzIQnuspdMIbowcIG_eC-tO90QZFctPDeyIkqIt-VW6nnG8Xl9frOlrMjySxhyPjCDcNw8C_SITnH88mOORzsMQ07LUuBvHLb3Y3EUv0otzqHlQ1L-TP5K4bhtnppqszKMOqyGq4hXsqovtkNT3SXrY1TzjTwvztcUoh7uUszfQzG_S9G3zV2KtbHfUbHLgDdU9R2qNbhZRkKcMZFg01QRi94Un9NbrG8YufqHjhxsWc_ut-hfTkELvRD57v-Z6kjWD_y_HLmFonind_9gDiLWUBe3WJ9Qs1bFcgDkBJ583QMKYpQuBLdRu1BMOawfvFU032hZ1OhVBq_0uzfWgjsYvSjnA3DJNGrpwVgfIffeHxzqP2aPJw-jy8Tikxk74kqR07yiZQpd0TRl21YtbVPRlWJX7ljqpVfQJfVHlN5fYUQiJ3Ej9cON5MdhJdr4v8s-DVZ118mM0u8Dz3ozn1-Gl3fiYM0X6D0-SudC_B4_1u223aX7rmjzdtsLum2wzJwWfcHLvqk58N1uK6oiVYyDcjFlzDKVHc0pzXe0KOpyWzVZ3VBa5gxf2LxhVV4nVQ4zkyqLxLEkqe2WHGKl0Kjwr4F7NTLc_6gBXvDxI7w3thNmMhVNl2y7JdU_ATMKlz4">