[LTP] cross compilation failing
Petr Vorel
pvorel@suse.cz
Wed Jan 17 09:14:45 CET 2018
Hi Rahul,
> > *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)
Does tst_net_ip_prefix really wants two glibc versions?
> 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.
+1
> > *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.
Agree, please run configure just as:
./configure CROSS_COMPILE="/build/fpsdkroot_cougar/sysroots/mips/sysroot-wrlinux-4.3-NSN6607-fp_octwnd_6880_ampp2-glibc_cgl/x86-linux2/mips-wrs-linux-gnu-mips64_octeon2-glibc_cgl-" --host=mips-wrs-linux-gnu
BTW you can see that cross LTP compilation works on travis (tested on arm):
https://travis-ci.org/linux-test-project/ltp/branches
https://travis-ci.org/linux-test-project/ltp/jobs/329049819
https://travis-ci.org/linux-test-project/ltp/jobs/329049820
It's tested on arm, but it should be the same for mips. It uses ./build.sh script, which
you can use locally as well.
Kind regards,
Petr
More information about the ltp
mailing list