Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135394 - sandbox-1.2.18.1 - Wrong executable format when crosscompiling (it is for builder system, but not for not target)
Summary: sandbox-1.2.18.1 - Wrong executable format when crosscompiling (it is for bui...
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-03 08:34 UTC by Guseinov Alexey
Modified: 2008-11-16 12:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guseinov Alexey 2006-06-03 08:34:25 UTC
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.
Comment 1 SpanKY gentoo-dev 2008-11-16 12:21:44 UTC
using the recommended cross-compiling methods and the latest version should address this