When cross compiling elfutils for ARM, build process fails on attempt to run i386_gendis compiled for ARM target on x86 host: /bin/bash: ./i386_gendis: cannot execute binary file: Exec format error Makefile:774: recipe for target 'i386_dis.h' failed make[2]: *** [i386_dis.h] Error 126 Current problem discussed several times: https://www.mail-archive.com/elfutils-devel@sourceware.org/msg03801.html https://lists.fedoraproject.org/archives/list/elfutils-devel@lists.fedorahosted.org/thread/HIAWS54V54NROT2OYBLFHWIROAULHWII https://lists.fedorahosted.org/archives/list/elfutils-devel@lists.fedorahosted.org/thread/TK47UHJMSDVHMJB5W4A3SLVKHLF7JEGA
Note that this does work when using release tar balls. Then i386_gendis isn't needed.
So a solution for people trying to do cross builds directly from git might simply be to do a make dist first and then do a cross from that?