ld.lld: error: unable to find library -lc++_shared
https://github.com/termux/termux-packages/issues/10225#issuecomment-3384437985 also references this message. The only other result for this message, is on a chess forum.
Google Assistant suggests apt install libc++, plus export LD_LIBRARY_PATH=/path/to/libc++\_shared:$LD_LIBRARY_PATH.
Found the path to use:
~ $ apt install libc++
libc++ is already the newest version (28c).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
~ $ find ~/../usr/ | grep "libc++_shared"
/data/data/com.termux/files/home/../usr/lib/libc++_shared.so
~ $ export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib/