[LTP] cross compilation failing
Cyril Hrubis
chrubis@suse.cz
Tue Jan 16 12:51:20 CET 2018
Hi!
> *For X86_64 :*
> if executing testcases on x86_64 "GLIBC_2.14 not found" giving.
>
> # sh network.sh -6
> tst_net_ip_prefix: /lib64/libc.so.6: version `GLIBC_2.14' not found
> (required by tst_net_ip_prefix)
> tst_net_ip_prefix: /lib64/libc.so.6: version `GLIBC_2.13' not found
> (required by tst_net_ip_prefix)
This looks like you have compiled the binaries on different distribution
(quite likely against different libc) than you attempt to run them on,
which will not work for obvious reasons.
> *For MIPS:*
> following steps performed for cross compilation.
> 1) make autotools
> 2) ./configure --prefix=/var/fpwork/rahul_gupta/ltp_ampp/ltp-master/fpt18
> CXX=${CROSS_COMPILE}g++ CC=${CROSS_COMPILE}gcc AS=${CROSS_COMPILE}as
> AR=${CROSS_COMPILE}ar LD=${CROSS_COMPILE}ld NM=${CROSS_COMPILE}nm
> OBJCOPY=${CROSS_COMPILE}objcopy OBJDUMP=${CROSS_COMPILE}objdump
> RANLIB=${CROSS_COMPILE}ranlib READELF=${CROSS_COMPILE}readelf
> STRIP=${CROSS_COMPILE}strip --host=mips-wrs-linux-gnu
> --build=i586-wrs-linux-gnu
AFAIK ou are supposed only to define the CROSS_COMPILE and --host here,
which may cause the failure.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list