* Package: dev-lang/perl-5.20.2  * Repository: gentoo  * Maintainer: perl@gentoo.org  * USE: arm berkdb elibc_glibc gdbm kernel_linux userland_GNU  * FEATURES: preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking perl-5.20.2.tar.bz2 to /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-lang/perl-5.20.2/work >>> Unpacking perl-5.20.2-patches-1.tar.xz to /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-lang/perl-5.20.2/work >>> Source unpacked in /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-lang/perl-5.20.2/work >>> Preparing source in /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-lang/perl-5.20.2/work/perl-5.20.2 ... * Applying patches from perl-5.20.2-1 ... * gentoo/hints_hpux.diff ...  [ ok ] * gentoo/aix_soname.diff ...  [ ok ] * gentoo/EUMM-RUNPATH.diff ...  [ ok ] * gentoo/config_over.diff ...  [ ok ] * gentoo/opensolaris_headers.diff ...  [ ok ] * gentoo/patchlevel.diff ...  [ ok ] * gentoo/cpanplus_definstalldirs.diff ...  [ ok ] * gentoo/cleanup-paths.diff ...  [ ok ] * gentoo/enc2xs.diff ...  [ ok ] * gentoo/enc2xs_checksums.diff ...  [ ok ] * gentoo/darwin-cc-ld.diff ...  [ ok ] * gentoo/cpan_definstalldirs.diff ...  [ ok ] * gentoo/interix.diff ...  [ ok ] * gentoo/create_libperl_soname.diff ...  [ ok ] * gentoo/mod_paths.diff ...  [ ok ] * gentoo/EUMM_delete_packlist.diff ...  [ ok ] * gentoo/drop_fstack_protector.diff ...  [ ok ] * gentoo/usr_local.diff ...  [ ok ] * gentoo/D-SHA-CFLAGS.diff ...  [ ok ] * gentoo/io_socket_ip_tests.diff ...  [ ok ] * debian/cpan-missing-site-dirs.diff ...  [ ok ] * debian/regcomp-mips-optim.diff ...  [ ok ] * debian/perldoc-less-R.diff ...  [ ok ] * debian/makemaker-pasthru.diff ...  [ ok ] * fixes/net_smtp_docs.diff ...  [ ok ] * fixes/memoize_storable_nstore.diff ...  [ ok ] * fixes/document_makemaker_ccflags.diff ...  [ ok ] >>> Source prepared. >>> Configuring source in /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-lang/perl-5.20.2/work/perl-5.20.2 ... First let's make sure your kit is complete. Checking... Locating common programs... Checking compatibility between /bin/echo and builtin echo (if any)... Symbolic links are supported. Checking how to test for symbolic links... You can test for symbolic links with 'test -h'. Checking for cross-compile No targethost for running compiler tests against defined, running locally Good, your tr supports [:lower:] and [:upper:] to convert case. Using [:upper:] and [:lower:] to convert case. aix bsdos dos_djgpp freemint i386 isc_2 ncr_tower opus sco sunos_4_0 unicos aix_3 catamount dragonfly genix interix linux-android netbsd os2 sco_2_3_0 sunos_4_1 unicosmk aix_4 convexos dynix gnu irix_4 linux newsos4 os390 sco_2_3_1 super-ux unisysdynix altos486 cxux dynixptx gnukfreebsd irix_5 lynxos next_3 os400 sco_2_3_2 svr4 utekv amigaos cygwin epix gnuknetbsd irix_6 midnightbsd next_3_0 posix-bc sco_2_3_3 svr5 uwin atheos darwin esix4 greenhills irix_6_0 mips next_4 powerux sco_2_3_4 ti1500 vos aux_3 dcosx fps haiku irix_6_1 mirbsd nonstopux qnx solaris_2 ultrix_4 bitrig dec_osf freebsd hpux isc mpc openbsd riscos stellar umips Which of these apply, if any? [linux] ./hints/linux.sh: line 227: ./a.out: cannot execute binary file: Exec format error You don't have an ELF gcc. I will use dld if possible. If you are using a version of DLD earlier than 3.2.6, or don't have it at all, you should probably upgrade. If you are forced to use 3.2.4, you should uncomment a couple of lines in hints/linux.sh and restart Configure so that shared libraries will be disallowed. Disabling ndbm. This will generate a Whoa There message in Configure. Read hints/linux.sh for further information. /usr/bin/nm: /usr/lib/libdb.so: no symbols Operating system name? [linux] Operating system version? [3.11.0-12-generic] Installation prefix to use? (~name ok) [/usr] AFS does not seem to be running... What installation prefix should I use for installing files? (~name ok) [/usr] Getting the current patchlevel... Build a threading Perl? [n] Build Perl for multiplicity? [n] Use which C compiler? [armv7a-hardfloat-linux-gnueabi-gcc] Checking for GNU cc in disguise and/or its version number... Configure: line 4550: ./try: cannot execute binary file: Exec format error Now, how can we feed standard input to your C preprocessor... Directories to use for library searches? [/lib/../lib64 /usr/lib/../lib64 /lib /usr/lib] What is the file extension used for shared libraries? [sa] Make shared library basenames unique? [n] Build Perl for SOCKS? [n] Try to use long doubles if available? [n] Checking for optional libraries... What libraries to use? [-lnsl -ldb -ldl -lm -lcrypt -lutil -lc] What optimizer/debugger flag should be used? [-O2 -pipe -fomit-frame-pointer] Any additional cc flags? [-DOVR_DBL_DIG=14] Let me guess what the preprocessor flags are... Any additional ld flags (NOT including libraries)? [-Wl,-O1 -Wl,--as-needed] Checking your choice of C compiler and flags for coherency... I've tried to compile and run the following simple program: #include 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. * ERROR: dev-lang/perl-5.20.2::gentoo failed (configure phase): * Unable to configure * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 2619: Called eblit-run 'src_configure' 'v50180002' * environment, line 845: Called eblit-perl-src_configure * src_configure-v50180002.eblit, line 145: Called die * The specific snippet of code: * sh Configure \ * -des \ * -Duseshrplib \ * -Darchname="${myarch}" \ * -Dcc="$(tc-getCC)" \ * -Doptimize="${CFLAGS}" \ * -Dldflags="${LDFLAGS}" \ * -Dprefix="${EPREFIX}"'/usr' \ * -Dinstallprefix="${EPREFIX}"'/usr' \ * -Dsiteprefix="${EPREFIX}"'/usr/local' \ * -Dvendorprefix="${EPREFIX}"'/usr' \ * -Dscriptdir="${EPREFIX}"'/usr/bin' \ * -Dprivlib="${EPREFIX}${PRIV_LIB}" \ * -Darchlib="${EPREFIX}${ARCH_LIB}" \ * -Dsitelib="${EPREFIX}${SITE_LIB}" \ * -Dsitearch="${EPREFIX}${SITE_ARCH}" \ * -Dvendorlib="${EPREFIX}${VENDOR_LIB}" \ * -Dvendorarch="${EPREFIX}${VENDOR_ARCH}" \ * -Dman1dir="${EPREFIX}"/usr/share/man/man1 \ * -Dman3dir="${EPREFIX}"/usr/share/man/man3 \ * -Dsiteman1dir="${EPREFIX}"/usr/local/man/man1 \ * -Dsiteman3dir="${EPREFIX}"/usr/local/man/man3 \ * -Dvendorman1dir="${EPREFIX}"/usr/share/man/man1 \ * -Dvendorman3dir="${EPREFIX}"/usr/share/man/man3 \ * -Dman1ext='1' \ * -Dman3ext='3pm' \ * -Dlibperl="${LIBPERL}" \ * -Dlocincpth="${EPREFIX}"'/usr/include ' \ * -Dglibpth="${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir)"' ' \ * -Duselargefiles \ * -Dd_semctl_semun \ * -Dcf_by='Gentoo' \ * -Dmyhostname='localhost' \ * -Dperladmin='root@localhost' \ * -Dinstallusrbinperl='n' \ * -Ud_csh \ * -Uusenm \ * "${myconf[@]}" || die "Unable to configure" * * If you need support, post the output of `emerge --info '=dev-lang/perl-5.20.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lang/perl-5.20.2::gentoo'`. * The complete build log is located at '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-lang/perl-5.20.2/temp/build.log'. * The ebuild environment file is located at '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-lang/perl-5.20.2/temp/environment'. * Working directory: '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-lang/perl-5.20.2/work/perl-5.20.2' * S: '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-lang/perl-5.20.2/work/perl-5.20.2'