I have the same problem as this one: Android ndk build mysteriously failing under cygwin with "Error 126"
Occassionaly I get that error too. The solution suggests adding “-j 1” when you do make.. but how does that translate into when you use the ndk-build script?
Is it simply “ndk-build -j 1”?
I think you need to edit
ndk-buildscript itself, and pass-j1to$GNUMAKE.You will end up with something like this: