What are possible causes of "failed to map segment from shared object: operation not permitted", and how to debug?

Permission issue. Need to remount /tmp. The following command works for me (Centos 7):

sudo mount /tmp -o remount,exec


I had this error in a different context. For some reason it causes an error when trying to use the /tmp folder.

To solve this I simply:

mkdir tmp
export TMPDIR=`pwd`/tmp

The issue was with how the executables were compiled. They needed to be compiled with a cross compiler that properly supported newer arm devices. The compiler I used generated executables that would only work on a subset of arm devices. The issue was not with the different versions of android.