Even i am also trying to cross compile LTP for android and facing issues
one the way. If any pointers to compile it would be really helpful.

On Tue, May 12, 2015 at 5:20 PM, padmanabhan padma <test.free...@gmail.com>
wrote:

> Hi Sagar,
>
> Please do let me know if you've got any leads on this as I too am facing
> similar issues.
>
> Regards,
> Abby
>
> On Monday, 25 March 2013 11:15:38 UTC+5:30, Sagar Padhye wrote:
>>
>> Ok I defined these via dummy macro values (e.g. -D DEV_BSIZE=512).
>> eventually I realized that LTP cannot be compiled with NDK as many
>> headers/interfaces required are missing (e.g. System V IPC message queue).
>> Has anybody ported LTP or does anybody have a android kernel test suite
>> similar to LTP?
>>
>>
>> On Wednesday, 20 March 2013 19:49:39 UTC+5:30, Sagar Padhye wrote:
>>>
>>> I was trying to cross compile LTP for android.
>>> Steps I followed :
>>> 1. Got android ndk : android-ndk-r8d
>>> 2. Created my toolchain :
>>> export TOOLCHAINDIR=/home/sagar/mytoolchain
>>> export NDK=/home/sagar/android-ndk-r8d
>>> export SYSROOT=$NDK/platforms/android-14/arch-arm
>>> $NDK/build/tools/make-standalone-toolchain.sh --platform=android-14
>>> --install-dir=$TOOLCHAINDIR
>>>
>>> 3. Setup cross compile:
>>> export ARCH=arm-eabi
>>> export CROSS_COMPILER=/home/sagar/mytoolchain/bin/arm-linux-androideabi
>>> export NDK_ROOT=/home/sagar/android-ndk-r8d
>>> export CC=$CROSS_COMPILER-gcc
>>> export LD=$CROSS_COMPILER-ld
>>> export AR=$CROSS_COMPILER-ar
>>> export STRIP=$CROSS_COMPILER-strip
>>> export RANLIB=$CROSS_COMPILER-ranlib
>>>
>>> 4. Configure & make LTP
>>> ./configure --host=arm-eabi
>>> make
>>>
>>> Expected OP : LTP successfully compiled
>>>
>>> Actual result :
>>> make -C "lib" \
>>>                 -f "/home/sagar/work/ltp-full-20130109/lib/Makefile" all
>>> make[1]: Entering directory `/home/sagar/work/ltp-full-20130109/lib'
>>> /home/sagar/mytoolchain/bin/arm-linux-androideabi-gcc -g -O2 -g -O2
>>> -fno-strict-aliasing -pipe -Wall  -I../include -I../include -I../include
>>> -I../include  -c -o bytes_by_prefix.o bytes_by_prefix.c
>>> bytes_by_prefix.c: In function 'bytes_by_prefix':
>>> bytes_by_prefix.c:94:31: error: 'DEV_BSIZE' undeclared (first use in
>>> this function)
>>> bytes_by_prefix.c:94:31: note: each undeclared identifier is reported
>>> only once for each function it appears in
>>> bytes_by_prefix.c: In function 'lbytes_by_prefix':
>>> bytes_by_prefix.c:142:32: error: 'DEV_BSIZE' undeclared (first use in
>>> this function)
>>> bytes_by_prefix.c: In function 'llbytes_by_prefix':
>>> bytes_by_prefix.c:193:37: error: 'DEV_BSIZE' undeclared (first use in
>>> this function)
>>> make[1]: *** [bytes_by_prefix.o] Error 1
>>> make[1]: Leaving directory `/home/sagar/work/ltp-full-20130109/lib'
>>> make: *** [lib-all] Error 2
>>>
>>>
>>> Any idea how to solve this?
>>>
>>  --
> --
> unsubscribe: android-kernel+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-kernel
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Linux Kernel Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-kernel+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks & Regards,
M.Srikanth Kumar.

-- 
-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel
--- 
You received this message because you are subscribed to the Google Groups 
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-kernel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to