Hi  Francesco,
My cross compiling problem is solved with this solution.Thank you very much
But while I started to run in the board, another problem arises.
I have copied full LTP code to the board and gave ./runltp.Its started executing and one point it is hanged.The last log messages showing in the console was
15817 pages shared

0 pages swap cached

Out of memory: kill process 21212 (hackbench) score 2529 or a child

Killed process 21237 (hackbench)

nfs: server 192.168.13.182 not responding, still trying

nfs: server 192.168.13.182 not responding, still trying

nfs: server 192.168.13.182 not responding, still trying

nfs: server 192.168.13.182 not responding, still trying

nfs: server 192.168.13.182 not responding, still trying

nfs: server 192.168.13.182 not responding, still trying

nfs: server 192.168.13.182 not responding, still trying

I have attached the result file obtained.

One more problem I am facing is if issue the command ./runltp -h its starts executing the LTP tests(same as ./runltp).But while the ./runltp -h command is given for PC compiled version of LTP its showing the help message.Due to this problem I cant run userdefined testscripts also.Please help me on this.

Regards

Bincy

----- Original Message ----- From: "Francesco Rundo" <[email protected]>
To: "Bincy" <[email protected]>
Cc: <[email protected]>; "bincy yahoo" <[email protected]>
Sent: Monday, March 30, 2009 2:33 PM
Subject: Re: Fw: [LTP] LTP cross compiling issue


Hi Bincy,

please, see below:

Quoting Bincy <[email protected]>:



Hi Francesco,
Thanks for the reply.But the issue still exist.
It will be great if I get a fast response.Thanks in advance

Please find the steps I have followed

1. I had set the environmental variables as follows .
export CC=/opt/codesourcery/arm-2007q1/bin/arm-none-linux-gnueabi-gcc

export PATH=$PATH:/opt/codesourcery/arm-2007q1/bin

export LD= /opt/codesourcery/arm-2007q1/arm-none-linux-gnueabi/bin/ld

export AR= /opt/codesourcery/arm-2007q1/arm-none-linux-gnueabi/bin/ar

export LIB_DIR=/opt/codesourcery/arm-2007q1/lib

export AS= /opt/codesourcery/arm-2007q1/arm-none-linux-gnueabi/bin/as

export RANLIB= /opt/codesourcery/arm-2007q1/arm-none-linux-gnueabi/bin/ranlib

2.Configured as follows

./configure --host=arm-none-linux

Ok, now your cross-env seems good as the above paths and binaries you
reported are the rightly ones!





4.The errot I had obtained is related to ASM

make[4]: Entering directory `/LTP release_feb/ltp-full-20090228/testcases/kernel/sched/hyperthreading'

make[5]: Entering directory `/LTP release_feb/ltp-full-20090228/testcases/kernel/sched/hyperthreading/ht_enabled'

/opt/codesourcery/arm-2007q1/bin/arm-none-linux-gnueabi-gcc -o ht_enabled HTenabled.c utils.c -g -O2 -DARCH_i386 -I../../../../../include -Wall -L../../../../../lib -lltp

I think you should disable that testcase (hyperthreading) as it was
released for i386 only. In fact, you reported in your command line the
define "-DARCH_i386"....but you were trying to cross-build for ARM.
Now, this is the problem.

If you look at HTenabled.c code you will find the TCONF error with a
message like that: "This test suite can only excute on i386
architecture".

Please, disable that testcases (build and execution) and I think LTP
should be cross-build successfully.

Hope this helps
Francesco







HTutils.c: In function 'cpuid':

HTutils.c:66: error: impossible constraint in 'asm'

make[5]: *** [ht_enabled] Error 1

make[5]: Leaving directory `/LTP release_feb/ltp-full-20090228/testcases/kernel/sched/hyperthreading/ht_enabled'

make[4]: *** [all] Error 2

make[4]: Leaving directory `/LTP release_feb/ltp-full-20090228/testcases/kernel/sched/hyperthreading'

make[3]: *** [all] Error 2

make[3]: Leaving directory `/LTP release_feb/ltp-full-20090228/testcases/kernel/sched'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/LTP release_feb/ltp-full-20090228/testcases/kernel'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/LTP release_feb/ltp-full-20090228/testcases'

make: *** [all] Error 2

Regards
Bincy
----- Original Message ----- From: "Francesco Rundo" <[email protected]>
To: "Bincy" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, March 26, 2009 8:46 PM
Subject: Re: [LTP] LTP cross compiling issue


Hi Bincy,

in order to cross-compile the LTP, you should run a "./configure"
session before to use the LTP build systems. You have to rightly setup
all the environment for the Arch -arm- you want to compile to
(cross-compiler, include paths, libs, etc..).
The right procedure to cross-build the LTP is:

1) run ./configure script placed under your LTP root:
If you type "./configure --help" you will be able to see a lot of
options -some of them- which can be used to setup your architecture
such as: --prefix, --exec-prefix, --build, --host, etc..

2) If the previous point 1) was executed rightly, you should have the
Makefile(s) generated by the system with the right build/installation
paths.

Hope this helps
Regards
FR

Quoting Bincy <[email protected]>:

Hi ,

I have downloaded the new LTP released in the month of February .Its worked fine for my Linux kernel running in the PC.
But I want to run the LTP for the arm based processor.
When I tried to crosscompile after changing in the Makefile
CROSS COMPILER=<installed path> I got errors.
Can anyone help with the exact steps.
Thanks in advance

Regards
Bincy




Please do not print this email unless it is absolutely necessary. Spread environmental awareness.

-------------------------------------------------------DISCLAIMER------------------------------------------------------
The information transmitted herewith is confidential and proprietary information intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
--------------------------------------------------------------------------------------------------------------------------------




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



Please do not print this email unless it is absolutely necessary.
Spread environmental awareness.

-------------------------------------------------------DISCLAIMER------------------------------------------------------
The information transmitted herewith is confidential and proprietary
information intended only for use by the individual or entity to which
it is addressed. If the reader of this message is not the intended
recipient, you are hereby notified that any review, retransmission,
dissemination, distribution, copying or other use of, or taking of any
action in reliance upon this information is strictly prohibited. If you
have received this communication in error, please contact the sender
and delete the material from your computer.
--------------------------------------------------------------------------------------------------------------------------------



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


Please do not print this email unless it is absolutely necessary. Spread 
environmental awareness.

-------------------------------------------------------DISCLAIMER------------------------------------------------------
The information transmitted herewith is confidential and proprietary 
information intended only for use by the individual or entity to which it is 
addressed. If the reader of this message is not the intended recipient, you are 
hereby notified that any review, retransmission, dissemination, distribution, 
copying or other use of, or taking of any action in reliance upon this 
information is strictly prohibited. If you have received this communication in 
error, please contact the sender and delete the material from your computer.
--------------------------------------------------------------------------------------------------------------------------------

Attachment: LTP_RUN_ON-2009_Mar_31-20h_27m_08s.log
Description: Binary data

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to