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"?