arm-linux-androideabi-g++: -fuse-linker-plugin, but liblto_plugin.so not found

user2862812 picture user2862812 · Oct 9, 2013 · Viewed 7.5k times · Source

When I compiled Chrome V8 under ubuntu 12.04, I encountered a problem that is

arm-linux-androideabi-g++:fatal error, -fuse-linker-plugin, but liblto_plugin.so not found

The ndk version is r8b. How can I solve this problem?

Answer

eranb picture eranb · Oct 29, 2013

When you extra the android-ndk-*.tar.bz2, it should create a symlink named liblto_plugin.soto the real file liblto_plugin.so.?.?.?.

If you have a problem creating symlinks (e.g. a shared directory in a virtual machine), the symlink won't be created and the problem will occur. Try re-extracting the .tar.bz2 file to a filesystem that supports symlinks and verify that liblto_plugin.so exists.