Проблема с кросс компиляцией libtommath-0.42.0 под arm

Ребята, помогите пожалуйста решить проблему. При сборке линковщик выдает ошибку

libtool: link: x86_64-pc-linux-gnu-gcc -shared -fPIC -DPIC .libs/bncore.o .libs/bn_error.o .libs/bn_fast_mp_invmod.o .libs/bn_fast_mp_montgomery_reduce.o .libs/bn_fast_s_mp_mul_digs.o .libs/bn_fast_s_mp_mul_high_digs.o .libs/bn_fast_s_mp_sqr.o .libs/bn_mp_2expt.o .libs/bn_mp_abs.o .libs/bn_mp_add_d.o .libs/bn_mp_add.o .libs/bn_mp_addmod.o .libs/bn_mp_and.o .libs/bn_mp_clamp.o .libs/bn_mp_clear.o .libs/bn_mp_clear_multi.o .libs/bn_mp_cmp_d.o .libs/bn_mp_cmp.o .libs/bn_mp_cmp_mag.o .libs/bn_mp_cnt_lsb.o .libs/bn_mp_copy.o .libs/bn_mp_count_bits.o .libs/bn_mp_div_2d.o .libs/bn_mp_div_2.o .libs/bn_mp_div_3.o .libs/bn_mp_div_d.o .libs/bn_mp_div.o .libs/bn_mp_dr_is_modulus.o .libs/bn_mp_dr_reduce.o .libs/bn_mp_dr_setup.o .libs/bn_mp_exch.o .libs/bn_mp_expt_d.o .libs/bn_mp_exptmod_fast.o .libs/bn_mp_exptmod.o .libs/bn_mp_exteuclid.o .libs/bn_mp_fread.o .libs/bn_mp_fwrite.o .libs/bn_mp_gcd.o .libs/bn_mp_get_int.o .libs/bn_mp_grow.o .libs/bn_mp_init_copy.o .libs/bn_mp_init.o .libs/bn_mp_init_multi.o .libs/bn_mp_init_set_int.o .libs/bn_mp_init_set.o .libs/bn_mp_init_size.o .libs/bn_mp_invmod.o .libs/bn_mp_invmod_slow.o .libs/bn_mp_is_square.o .libs/bn_mp_jacobi.o .libs/bn_mp_karatsuba_mul.o .libs/bn_mp_karatsuba_sqr.o .libs/bn_mp_lcm.o .libs/bn_mp_lshd.o .libs/bn_mp_mod_2d.o .libs/bn_mp_mod_d.o .libs/bn_mp_mod.o .libs/bn_mp_montgomery_calc_normalization.o .libs/bn_mp_montgomery_reduce.o .libs/bn_mp_montgomery_setup.o .libs/bn_mp_mul_2d.o .libs/bn_mp_mul_2.o .libs/bn_mp_mul_d.o .libs/bn_mp_mul.o .libs/bn_mp_mulmod.o .libs/bn_mp_neg.o .libs/bn_mp_n_root.o .libs/bn_mp_or.o .libs/bn_mp_prime_fermat.o .libs/bn_mp_prime_is_divisible.o .libs/bn_mp_prime_is_prime.o .libs/bn_mp_prime_miller_rabin.o .libs/bn_mp_prime_next_prime.o .libs/bn_mp_prime_rabin_miller_trials.o .libs/bn_mp_prime_random_ex.o .libs/bn_mp_radix_size.o .libs/bn_mp_radix_smap.o .libs/bn_mp_rand.o .libs/bn_mp_read_radix.o .libs/bn_mp_read_signed_bin.o .libs/bn_mp_read_unsigned_bin.o .libs/bn_mp_reduce_2k_l.o .libs/bn_mp_reduce_2k.o .libs/bn_mp_reduce_2k_setup_l.o .libs/bn_mp_reduce_2k_setup.o .libs/bn_mp_reduce_is_2k_l.o .libs/bn_mp_reduce_is_2k.o .libs/bn_mp_reduce.o .libs/bn_mp_reduce_setup.o .libs/bn_mp_rshd.o .libs/bn_mp_set_int.o .libs/bn_mp_set.o .libs/bn_mp_shrink.o .libs/bn_mp_signed_bin_size.o .libs/bn_mp_sqr.o .libs/bn_mp_sqrmod.o .libs/bn_mp_sqrt.o .libs/bn_mp_sub_d.o .libs/bn_mp_sub.o .libs/bn_mp_submod.o .libs/bn_mp_toom_mul.o .libs/bn_mp_toom_sqr.o .libs/bn_mp_toradix.o .libs/bn_mp_toradix_n.o .libs/bn_mp_to_signed_bin.o .libs/bn_mp_to_signed_bin_n.o .libs/bn_mp_to_unsigned_bin.o .libs/bn_mp_to_unsigned_bin_n.o .libs/bn_mp_unsigned_bin_size.o .libs/bn_mp_xor.o .libs/bn_mp_zero.o .libs/bn_prime_tab.o .libs/bn_reverse.o .libs/bn_s_mp_add.o .libs/bn_s_mp_exptmod.o .libs/bn_s_mp_mul_digs.o .libs/bn_s_mp_mul_high_digs.o .libs/bn_s_mp_sqr.o .libs/bn_s_mp_sub.o -L/usr/armv7a-hardfloat-linux-gnueabi/lib -L/usr/armv7a-hardfloat-linux-gnueabi/usr/lib -Wl,-soname -Wl,libtommath.so.0 -o .libs/libtommath.so.0.0.41
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/bn_error.o: Relocations in generic ELF (EM: 40)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/bn_error.o: Relocations in generic ELF (EM: 40)
.libs/bn_error.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [libtommath.la] Ошибка 1

Тулчейн и среду настраивал по http://www.gentoo.org/proj/en/base/embedded/handbook/index.xml?part=1&chap=2 и http://www.gentoo.org/proj/en/base/embedded/handbook/index.xml?part=1&chap=3

Профили /etc/make.profile -> ../usr/portage/profiles/default/linux/amd64/10.0
/usr/armv7a-hardfloat-linux-gnueabi/etc/make.profile -> /usr/portage/profiles/arch/arm/armv7a

Не было ссылки на линковщик, создал вручную - ln -s /usr/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-gnueabi/binutils-bin/2.21.1/ld /usr/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-gnueabi/gcc-bin/4.5.3/armv7a-hardfloat-linux-gnueabi-ld

Не понимаю почему в качестве линковщика присутствует x86_64-pc-linux-gnu-gcc, может быть в этом проблема? Собирал ещё несколько пакетов - прошло без проблем, только вот с этой библиотекой проблемы.

Вывод emerge --info и armv7a-hardfloat-linux-gnueabi-emerge --info

# emerge --info

Portage 2.1.10.11 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.12.2-r0, 2.6.32-5-amd64 x86_64)
=================================================================
System uname:

Timestamp of tree: Sun, 23 Oct 2011 08:00:01 +0000
app-shells/bash: 4.1_p9
dev-lang/python: 2.7.1-r1, 3.1.3-r1
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.8.3-r1
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.68
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.5.3-r1
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc: 2.12.2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre pppd readline session sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

# armv7a-hardfloat-linux-gnueabi-emerge --info

Portage 2.1.10.11 (arch/arm/armv7a, gcc-4.5.3, unavailable, 2.6.32-5-amd64 x86_64)
=================================================================
System uname:

Timestamp of tree: Sun, 23 Oct 2011 08:00:01 +0000
app-shells/bash: 4.1_p9
dev-lang/python: 2.7.1-r1, 3.1.3-r1
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.8.3-r1
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.68
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.5.3-r1
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc: 2.12.2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe -fomit-frame-pointer -I/usr/armv7a-hardfloat-linux-gnueabi/usr/include/ -I/usr/armv7a-hardfloat-linux-gnueabi/include/"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/terminfo"
CXXFLAGS="-Os -pipe -fomit-frame-pointer -I/usr/armv7a-hardfloat-linux-gnueabi/usr/include/ -I/usr/armv7a-hardfloat-linux-gnueabi/include/"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles fixpackages news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS="-L/usr/armv7a-hardfloat-linux-gnueabi/lib -L/usr/armv7a-hardfloat-linux-gnueabi/usr/lib"
PKGDIR="/usr/armv7a-hardfloat-linux-gnueabi/packages/"
PORTAGE_CONFIGROOT="/usr/armv7a-hardfloat-linux-gnueabi/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/usr/armv7a-hardfloat-linux-gnueabi/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="arm bindist make-symlinks minimal zlib"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS