Here are my experiences in accidently getting a .so/.dll file for the wrong chip/CPU type:

Windows:

%1 is not a valid Win32 application

*nix/Android:

A long message about improper memory mappings and such.

I'd like to propose the concept of better errors in these cases. Both Windows and Posix errors is this case are horrible, and it'd be nice for them to actually be written in English.
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.