When I\'m compiling Android 5.1.1, I get dozens of errors like this:
... ... ... libnativehelper/JniInvocation.cpp:1
As a hard workaround I just replaced prebuilt linker with soft link on /usr/bin/ld.gold . It described here: https://bbs.archlinux.org/viewtopic.php?id=209698 .