From: Carmelo AMOROSO <carmelo.amoroso@st.com>
To: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] cannot find -lpthread error in ltp cross compilation for Android
Date: Tue, 20 Mar 2012 09:33:47 +0100 [thread overview]
Message-ID: <4F6840EB.5000306@st.com> (raw)
In-Reply-To: <653A85C7F32C4741880F71219266EA02612A3E578E@EXGMBX01.sasken.com>
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
> Ltp-list@lists.sourceforge.net
> 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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2012-03-20 8:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-19 11:59 [LTP] cannot find -lpthread error in ltp cross compilation for Android Sandeep Mahato
2012-03-20 8:33 ` Carmelo AMOROSO [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F6840EB.5000306@st.com \
--to=carmelo.amoroso@st.com \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox