On 19/03/2012 12.59, Sandeep Mahato wrote:
> Hi,
> I am trying to cross compile LTP using NDK toolchain for Android . while
> executing the "make all" I am facing the below error.
>
> pcb-msandeep:/u/ltp14032012/ltp-full-20120104# make all
> make -C "lib" \
> -f "/u/ltp14032012/ltp-full-20120104/lib/Makefile" all
> make[1]: Entering directory `/u/ltp14032012/ltp-full-20120104/lib'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/u/ltp14032012/ltp-full-20120104/lib'
> make -C "pan" \
> -f "/u/ltp14032012/ltp-full-20120104/pan/Makefile" all
> make[1]: Entering directory `/u/ltp14032012/ltp-full-20120104/pan'
> /u/ltp14032012/ltp-full-20120104/pan/Makefile:43: ltp-scanner will not be
> built because a working copy of lex was not found
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/u/ltp14032012/ltp-full-20120104/pan'
> make -C "utils" \
> -f "/u/ltp14032012/ltp-full-20120104/utils/Makefile" all
> make[1]: Entering directory `/u/ltp14032012/ltp-full-20120104/utils'
> make[2]: Entering directory `/u/ltp14032012/ltp-full-20120104/utils/benchmark'
> make[3]: Entering directory
> `/u/ltp14032012/ltp-full-20120104/utils/benchmark/ebizzy-0.3'
> arm-linux-androideabi-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
> -I../../../include -I../../../include -L../../../lib ebizzy.c -lpthread
> -o ebizzy
> /usr/local/android-ndk-r7/my-android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld:
> cannot find -lpthread
> collect2: ld returned 1 exit status
> make[3]: *** [ebizzy] Error 1
> make[3]: Leaving directory
> `/u/ltp14032012/ltp-full-20120104/utils/benchmark/ebizzy-0.3'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/u/ltp14032012/ltp-full-20120104/utils/benchmark'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/u/ltp14032012/ltp-full-20120104/utils'
> make: *** [utils-all] Error 2
>
> Can anybody please tell me why this "cannot find -lpthread" error is coming
> and how to resolve that.
>
bionic (the Android C runtime library) does provide pthreads into libc,
so you don't need to link against libpthread.
>
> Regards
> Sandeep
>
cheers,
carmelo
> SASKEN BUSINESS DISCLAIMER: This message may contain confidential,
> proprietary or legally privileged information. In case you are not the
> original intended Recipient of the message, you must not, directly or
> indirectly, use, disclose, distribute, print, or copy any part of this
> message and you are requested to delete it and inform the sender. Any views
> expressed in this message are those of the individual sender unless otherwise
> stated. Nothing contained in this message shall be construed as an offer or
> acceptance of any offer by Sasken Communication Technologies Limited
> ("Sasken") unless sent with that express intent and with due authority of
> Sasken. Sasken has taken enough precautions to prevent the spread of viruses.
> However the company accepts no liability for any damage caused by any virus
> transmitted by this email.
> Read Disclaimer at http://www.sasken.com/extras/mail_disclaimer.html
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list