Hi Sagar,

If you have any updates on this LTP compilation using NDK please share. I 
am struggling with the compilation with similar errors posted in your 
comment. Please help.



On Monday, March 25, 2013 11:15:38 AM 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/groups/opt_out.

Reply via email to