[Android-tools-devel] Bug#1021189: desktop-head-unit binary is underlinked

Matthias Klose doko at debian.org
Mon Oct 3 14:19:33 BST 2022


Package: google-android-extras-google-auto-installer
Version: 1659100756
Severity: important
Tags: sid bookworm

Installing libc++abi1-15 instead of libc++abi1-14 (making LLVM 15 the default)
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)

However, the symbol above is referenced in the desktop-head-unit binary, so it's 
a bug in this package. If you cannot change that binary, maybe preload the 
missing library in a wrapper script.



More information about the Android-tools-devel mailing list