Open alexmozaidze opened 11 months ago
Please try file /data/data/com.termux/files/usr/lib/libstdc++.a
and ls -al /data/data/com.termux/files/usr/lib/libstdc++.a
then put the command line output here. It looks like it's not an archive file.
❯ file /data/data/com.termux/files/usr/lib/libstdc++.a
/data/data/com.termux/files/usr/lib/libstdc++.a: ASCII text
❯ ls -al /data/data/com.termux/files/usr/lib/libstdc++.a
-rw------- 1 u0_a363 u0_a363 29 Nov 22 19:57 /data/data/com.termux/files/usr/lib/libstdc++.a
/data/data/com.termux/files/usr/lib/libstdc++.a: ASCII text
This shows that your libstdc++.a is a text file rather than a valid archive. There is something wrong with Termux 🤔
I googled a bit and found out that it's a linker script, which is why it's not a conventional .a
archive. I am not sure about it all myself, since I'm not even that good with linkers, but searching up "linker script" I found an old GNU LD Manual that may have some answers.
When trying to compile
rusty_ffmpeg
withlink_system_ffmpeg
on Termux, I couldn't, due to the following error:The contents of
libstdc++.a
are as follows: