Hi,

Though i am not expert in compiling LTP, but i am trying to cross compile
current LTP for arm. Here is how i am configuring

Go to root folder of ltp and execute
./configure AR=arm-linux-gnueabi-ar CC=arm-linux-gnueabi-gcc
RANLIB=arm-linux-gnueabi-gcc-ranlib-4.7 STRIP=arm-linux-gnueabi-strip
--host=arm-linux --target=arm-linux CFLAGS="-static" LDFLAGS="-static
-pthread"

Failing at
configure: error: cannot run /bin/sh ./config.sub
configure: error: ./configure failed for utils/ffsb-6.0-rc2

But still i ignored these messages and tried building some specific tests.
Ex: realtime tests
Go to testcases/realtime/func/sched_football and run make. Here make failed
due to `ld: cannot find -lrealtime`

arm-linux-gnueabi-gcc -static -g -O2 -fno-strict-aliasing -pipe -Wall -W
-static -Wold-style-definition -D_GNU_SOURCE
 -I/local/mnt/workspace/Srikanth/ltp-full-20140828/testcases/realtime/include
-I/local/mnt/workspace/Srikanth/ltp-full-20140828/testcases/realtime/include
-I../../../../include -I../../../../include -static -pthread
 -L/local/mnt/workspace/Srikanth/ltp-full-20140828/testcases/realtime/lib
-L../../../../lib  sched_football.c   -lrealtime -lpthread -lrt -lm -o
sched_football
In file included from sched_football.c:69:0:
/local/mnt/workspace/Srikanth/ltp-full-20140828/testcases/realtime/include/librttest.h:
In function âatomic_addâ:
/local/mnt/workspace/Srikanth/ltp-full-20140828/testcases/realtime/include/librttest.h:115:34:
warning: unused parameter âiâ [-Wunused-parameter]
/local/mnt/workspace/Srikanth/ltp-full-20140828/testcases/realtime/include/librttest.h:115:47:
warning: unused parameter âvâ [-Wunused-parameter]
sched_football.c: In function âthread_defenseâ:
sched_football.c:111:28: warning: unused parameter âargâ
[-Wunused-parameter]
sched_football.c: In function âthread_offenseâ:
sched_football.c:122:28: warning: unused parameter âargâ
[-Wunused-parameter]
/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld:
cannot find -lrealtime
collect2: error: ld returned 1 exit status
make: *** [sched_football] Error 1


Pointers from anyone who tried cross compiling ltp for arm would really
helpful.

TIA.

-- 
Thanks & Regards,
M.Srikanth Kumar.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to