Cross-compiling perl-5.20.2 for the armv7a architecture fails during the configure phase with the following message: Checking your choice of C compiler and flags for coherency... I've tried to compile and run the following simple program: #include <stdio.h> int main() { printf("Ok\n"); return(0); } I used the command: armv7a-hardfloat-linux-gnueabi-gcc -o try -O2 -pipe -fomit-frame-pointer -DOVR_DBL_DIG=14 -Wl,-O1 -Wl,--as-needed try.c -lnsl -ldb -ldl -lm -lcrypt -lutil -lc ./try and I got the following output: /bin/sh: ./try: cannot execute binary file: Exec format error The program compiled OK, but exited with status 126. You have a problem. Shall I abort Configure [y] Ok. Stopping Configure. Reproducible: Always Steps to Reproduce: armv7a-hardfloat-linux-gnueabi-emerge -a1 perl armv7a-hardfloat-linux-gnueabi-4.8.5 is selected for the ARM toolchain. I have also upgraded my crossdev toolchain from GCC 4.8.3 to 4.8.5 with: crossdev -S --target armv7a-hardfloat-linux-gnueabi and everything went fine. It's also the first time I have to include perl to the target platform. I managed to skip it so far.
Created attachment 410978 [details] perl-5.20.2 build log for armv7a-hardfloat-linux-gnueabi
Created attachment 410980 [details] perl-5.20.2 build environment for armv7a-hardfloat-linux-gnueabi This environment is "tainted" with Linux Mint (Ubuntu) environment as my Gentoo crossdev toolchain runs in a chroot. (In case it matters...)
(In reply to Vince C. from comment #2) > This environment is "tainted" with Linux Mint (Ubuntu) environment [...] I was not being objective enough: This environment *might be* "tainted" [...] because I had not verified it. Seeing such a large environment with bash functions made me think of what happens on a Debian machine. Now that I have read at least half of it I realize this is just Gentoo build functions. So take my last assertion with a grain of salt.
*** This bug has been marked as a duplicate of bug 134650 ***