So, I'm crosscompiling sandbox on amd64 for arm platform. I run ***************************************** gus alexg # /root/aem.sh sandbox Calculating dependencies ...done! >>> emerge (1 of 1) sys-apps/sandbox-1.2.18.1 to /mnt/gntpda/ ... ../sandbox-1.2.18.1//configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib32 --enable-multilib --target=armv5tel-softfloat-linux-gnu --build=x86_64-pc-linux-gnu checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes ... checking for readelf... readelf checking build system type... x86_64-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/x86_64-pc-linux-gnu/bin/ld checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... nm checking whether ln -s works... yes ... /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/armv5tel-softfloat-linux-gnu/usr/lib/libc.so when searching for -lc /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/armv5tel-softfloat-linux-gnu/usr/lib/libc.a when searching for -lc ... >>> original instance of package unmerged safely. >>> Regenerating /mnt/gntpda/etc/ld.so.cache... >>> sys-apps/sandbox-1.2.18.1 merged. >>> Recording sys-apps/sandbox in "world" favorites file... >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. gus alexg # file /mnt/gntpda/usr/bin/sandbox /mnt/gntpda/usr/bin/sandbox: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), not stripped ****************************************************** So, as you can see, binary is build for wrong architecture and can't be executed on target computer.
using the recommended cross-compiling methods and the latest version should address this