* [LTP] cross compilation failing
@ 2018-01-16 10:02 rahul gupta
2018-01-16 10:38 ` Cyril Hrubis
0 siblings, 1 reply; 5+ messages in thread
From: rahul gupta @ 2018-01-16 10:02 UTC (permalink / raw)
To: ltp
Hi,
we are facing issue while compiling ltp for kernel version 2.6.34.15.
could you please let me know, does ltp depend on kernel version.
# uname -a
Linux IPNIMP7-0
2.6.34.15-WR4.3.fp_octwnd_6880_ampp2_standard-00719-g2f89460 #1 SMP PREEMPT
Thu Sep 14 16:51:08 IST 2017 mips64 mips64 mips64 GNU/Linux
while compilation went fine for kernel 4.4.84.
# uname -a
Linux CLA-0 4.4.84-pc64-distro.git-v2.66-23-rc19 #1 SMP Tue Dec 26 08:16:42
UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Regards,
Rahul Gupta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20180116/c12946ee/attachment-0001.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LTP] cross compilation failing
2018-01-16 10:02 [LTP] cross compilation failing rahul gupta
@ 2018-01-16 10:38 ` Cyril Hrubis
2018-01-16 10:53 ` rahul gupta
0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2018-01-16 10:38 UTC (permalink / raw)
To: ltp
Hi!
> we are facing issue while compiling ltp for kernel version 2.6.34.15.
> could you please let me know, does ltp depend on kernel version.
The build does not depend on the running kernel at all. The usuall
suspects are libc version and version of the kernel-headers.
Can you append a log of the failing compilation? Without that we cannot
really help here.
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LTP] cross compilation failing
2018-01-16 10:38 ` Cyril Hrubis
@ 2018-01-16 10:53 ` rahul gupta
2018-01-16 11:51 ` Cyril Hrubis
0 siblings, 1 reply; 5+ messages in thread
From: rahul gupta @ 2018-01-16 10:53 UTC (permalink / raw)
To: ltp
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)
*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
then configuration part has been failed with following error.
configure: error: in `/var/fpwork/rahul_gupta/ltp_ampp/ltp-master':
configure: error: cannot run test program while cross compiling
please find the attached config.log file.
Thanks & Regards,
Rahul Gupta
On Tue, Jan 16, 2018 at 4:08 PM, Cyril Hrubis <chrubis@suse.cz> wrote:
> Hi!
> > we are facing issue while compiling ltp for kernel version 2.6.34.15.
> > could you please let me know, does ltp depend on kernel version.
>
> The build does not depend on the running kernel at all. The usuall
> suspects are libc version and version of the kernel-headers.
>
> Can you append a log of the failing compilation? Without that we cannot
> really help here.
>
> --
> Cyril Hrubis
> chrubis@suse.cz
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20180116/a440f05d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 141292 bytes
Desc: not available
URL: <http://lists.linux.it/pipermail/ltp/attachments/20180116/a440f05d/attachment-0001.obj>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LTP] cross compilation failing
2018-01-16 10:53 ` rahul gupta
@ 2018-01-16 11:51 ` Cyril Hrubis
2018-01-17 8:14 ` Petr Vorel
0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2018-01-16 11:51 UTC (permalink / raw)
To: ltp
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LTP] cross compilation failing
2018-01-16 11:51 ` Cyril Hrubis
@ 2018-01-17 8:14 ` Petr Vorel
0 siblings, 0 replies; 5+ messages in thread
From: Petr Vorel @ 2018-01-17 8:14 UTC (permalink / raw)
To: ltp
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-01-17 8:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-16 10:02 [LTP] cross compilation failing rahul gupta
2018-01-16 10:38 ` Cyril Hrubis
2018-01-16 10:53 ` rahul gupta
2018-01-16 11:51 ` Cyril Hrubis
2018-01-17 8:14 ` Petr Vorel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.