public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] Compling LTP for android Using Ndk revision 8
@ 2012-09-03 12:16 vikas bisla
  2012-09-04  1:41 ` cxie
  2012-09-20 14:37 ` chrubis
  0 siblings, 2 replies; 3+ messages in thread
From: vikas bisla @ 2012-09-03 12:16 UTC (permalink / raw)
  To: ltp-list


[-- Attachment #1.1: Type: text/plain, Size: 1814 bytes --]

Hi All,

We are trying to compile LTP for android using NDK tool chain.

Flags set while configuration-

./configure --host=arm-eabi
CC=/home/vikas/Desktop/LTP/arm-eabi-4.4.3/bin/arm-eabi-gcc
CPPFLAGS="-I/home/vikas/Desktop/android-ndk-r8b/platforms/android-14/arch-arm/usr/include/"
CFLAGS="-nostdlib"
LDFLAGS="-Wl,-rpath-link=/home/vikas/Desktop/android-ndk-r8b/platforms/android-14/arch-arm/usr/lib/
-L/home/vikas/Desktop/android-ndk-r8b/platforms/android-14/arch-arm/usr/lib/"
LIBS="-lc"

After Config we are doing

Make ARCH=arm

it is giving following error.

/Desktop/LTP/ltp-full-20120903$ make ARCH=arm
make -C "lib" \
-f "/home/vikas/Desktop/LTP/ltp-full-20120903/lib/Makefile" all
make[1]: Entering directory `/home/vikas/Desktop/LTP/ltp-full-20120903/lib'
/home/vikas/Desktop/LTP/arm-eabi-4.4.3/bin/arm-eabi-gcc -nostdlib -g -O2
-fno-strict-aliasing -pipe -Wall
-I/home/vikas/Desktop/android-ndk-r8b/platforms/android-14/arch-arm/usr/include/
-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: error: 'B_MULT' undeclared (first use in this
function)
bytes_by_prefix.c:94: error: (Each undeclared identifier is reported only
once
bytes_by_prefix.c:94: error: for each function it appears in.)
bytes_by_prefix.c: In function 'lbytes_by_prefix':
bytes_by_prefix.c:142: error: 'B_MULT' undeclared (first use in this
function)
bytes_by_prefix.c: In function 'llbytes_by_prefix':
bytes_by_prefix.c:193: error: 'B_MULT' undeclared (first use in this
function)
make[1]: *** [bytes_by_prefix.o] Error 1
make[1]: Leaving directory `/home/vikas/Desktop/LTP/ltp-full-20120903/lib'
make: *** [lib-all] Error 2

Can anybody please suggest some pointer so that we can go forward.

Regards
vikas bisla

[-- Attachment #1.2: Type: text/html, Size: 2839 bytes --]

[-- Attachment #2: Type: text/plain, Size: 395 bytes --]

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] Compling LTP for android Using Ndk revision 8
  2012-09-03 12:16 [LTP] Compling LTP for android Using Ndk revision 8 vikas bisla
@ 2012-09-04  1:41 ` cxie
  2012-09-20 14:37 ` chrubis
  1 sibling, 0 replies; 3+ messages in thread
From: cxie @ 2012-09-04  1:41 UTC (permalink / raw)
  To: vikas bisla; +Cc: ltp-list


[-- Attachment #1.1: Type: text/plain, Size: 3822 bytes --]

Hi Vikas,
     I looked that code. And think that your arch or system is not 
supported by this file.
     Here is line 61 to 69:
-----------------------
#if CRAY
#define B_MULT    BSIZE        /* block size */
#elif sgi
#define B_MULT    BBSIZE        /* block size */
#elif defined(__linux__) || defined(__sun) || defined(__hpux)
#define B_MULT    DEV_BSIZE    /* block size */
#elif defined(_AIX)
#define B_MULT UBSIZE
#endif
------------------------
     you can check if your compiler contain one of these macro by 
following command:
            gcc -E -dM - < /dev/null           # maybe you need change 
gcc to
                                                            # 
=/home/vikas/Desktop/LTP/arm-eabi-4.4.3/bin/arm-eabi-gcc

     if none of (CRAY  sgi  __linux__    __sun   __hpux  _AIX) is 
defined,  B_MULT won't be defined.
     So, you can find the right Macro and block size for your system and 
add them to this file.

     Also you can add a line  like this to line 70 simplely:
                 #ifndef B_MULT
                 #define B_MULT 1024       /*you should change 1024 to 
the block size of you system.*/
                 #endif                                /*once you add 
this, the code can *only* used in *this* system.*/
--
Yours,
Madper Xie.

On 09/03/2012 08:16 PM, vikas bisla wrote:
> Hi All,
>
> We are trying to compile LTP for android using NDK tool chain.
>
> Flags set while configuration-
>
> ./configure --host=arm-eabi 
> CC=/home/vikas/Desktop/LTP/arm-eabi-4.4.3/bin/arm-eabi-gcc 
> CPPFLAGS="-I/home/vikas/Desktop/android-ndk-r8b/platforms/android-14/arch-arm/usr/include/" 
> CFLAGS="-nostdlib" 
> LDFLAGS="-Wl,-rpath-link=/home/vikas/Desktop/android-ndk-r8b/platforms/android-14/arch-arm/usr/lib/ 
> -L/home/vikas/Desktop/android-ndk-r8b/platforms/android-14/arch-arm/usr/lib/" 
> LIBS="-lc"
>
> After Config we are doing
>
> Make ARCH=arm
>
> it is giving following error.
>
> /Desktop/LTP/ltp-full-20120903$ make ARCH=arm
> make -C "lib" \
> -f "/home/vikas/Desktop/LTP/ltp-full-20120903/lib/Makefile" all
> make[1]: Entering directory 
> `/home/vikas/Desktop/LTP/ltp-full-20120903/lib'
> /home/vikas/Desktop/LTP/arm-eabi-4.4.3/bin/arm-eabi-gcc -nostdlib -g 
> -O2 -fno-strict-aliasing -pipe -Wall 
> -I/home/vikas/Desktop/android-ndk-r8b/platforms/android-14/arch-arm/usr/include/ 
> -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: error: 'B_MULT' undeclared (first use in this 
> function)
> bytes_by_prefix.c:94: error: (Each undeclared identifier is reported 
> only once
> bytes_by_prefix.c:94: error: for each function it appears in.)
> bytes_by_prefix.c: In function 'lbytes_by_prefix':
> bytes_by_prefix.c:142: error: 'B_MULT' undeclared (first use in this 
> function)
> bytes_by_prefix.c: In function 'llbytes_by_prefix':
> bytes_by_prefix.c:193: error: 'B_MULT' undeclared (first use in this 
> function)
> make[1]: *** [bytes_by_prefix.o] Error 1
> make[1]: Leaving directory `/home/vikas/Desktop/LTP/ltp-full-20120903/lib'
> make: *** [lib-all] Error 2
>
> Can anybody please suggest some pointer so that we can go forward.
>
> Regards
> vikas bisla
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list


[-- Attachment #1.2: Type: text/html, Size: 7498 bytes --]

[-- Attachment #2: Type: text/plain, Size: 395 bytes --]

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] Compling LTP for android Using Ndk revision 8
  2012-09-03 12:16 [LTP] Compling LTP for android Using Ndk revision 8 vikas bisla
  2012-09-04  1:41 ` cxie
@ 2012-09-20 14:37 ` chrubis
  1 sibling, 0 replies; 3+ messages in thread
From: chrubis @ 2012-09-20 14:37 UTC (permalink / raw)
  To: vikas bisla; +Cc: ltp-list

Hi!
> We are trying to compile LTP for android using NDK tool chain.
> 
> Flags set while configuration-
> 
> ./configure --host=arm-eabi
> CC=/home/vikas/Desktop/LTP/arm-eabi-4.4.3/bin/arm-eabi-gcc
> CPPFLAGS="-I/home/vikas/Desktop/android-ndk-r8b/platforms/android-14/arch-arm/usr/include/"
> CFLAGS="-nostdlib"
> LDFLAGS="-Wl,-rpath-link=/home/vikas/Desktop/android-ndk-r8b/platforms/android-14/arch-arm/usr/lib/
> -L/home/vikas/Desktop/android-ndk-r8b/platforms/android-14/arch-arm/usr/lib/"
> LIBS="-lc"
> 
> After Config we are doing
> 
> Make ARCH=arm
> 
> it is giving following error.
> 
> /Desktop/LTP/ltp-full-20120903$ make ARCH=arm
> make -C "lib" \
> -f "/home/vikas/Desktop/LTP/ltp-full-20120903/lib/Makefile" all
> make[1]: Entering directory `/home/vikas/Desktop/LTP/ltp-full-20120903/lib'
> /home/vikas/Desktop/LTP/arm-eabi-4.4.3/bin/arm-eabi-gcc -nostdlib -g -O2
> -fno-strict-aliasing -pipe -Wall
> -I/home/vikas/Desktop/android-ndk-r8b/platforms/android-14/arch-arm/usr/include/
> -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: error: 'B_MULT' undeclared (first use in this
> function)
> bytes_by_prefix.c:94: error: (Each undeclared identifier is reported only
> once
> bytes_by_prefix.c:94: error: for each function it appears in.)
> bytes_by_prefix.c: In function 'lbytes_by_prefix':
> bytes_by_prefix.c:142: error: 'B_MULT' undeclared (first use in this
> function)
> bytes_by_prefix.c: In function 'llbytes_by_prefix':
> bytes_by_prefix.c:193: error: 'B_MULT' undeclared (first use in this
> function)
> make[1]: *** [bytes_by_prefix.o] Error 1
> make[1]: Leaving directory `/home/vikas/Desktop/LTP/ltp-full-20120903/lib'
> make: *** [lib-all] Error 2
> 
> Can anybody please suggest some pointer so that we can go forward.

Look at the lib/bytes_by_prefix.c there are ugly ifdefs that comes from
legacy code that are trying to figure out disk block size. Just define
the B_MULT to someting reasonable like 4k to continue.

And that rises question whether are these still needed and if so what is
reasonable default...

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-20 14:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-03 12:16 [LTP] Compling LTP for android Using Ndk revision 8 vikas bisla
2012-09-04  1:41 ` cxie
2012-09-20 14:37 ` chrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox