From: Hiep Trinh <trinhhiepth@gmail.com>
To: linux-perf-users@vger.kernel.org
Subject: Compile linux tool perf for Android
Date: Wed, 23 Oct 2013 09:00:16 +0000 (UTC) [thread overview]
Message-ID: <loom.20131023T104641-256@post.gmane.org> (raw)
In-Reply-To: 502C4D77.7010505@gmail.com
David Ahern <dsahern <at> gmail.com> writes:
>
> On 8/13/12 9:00 PM, Koteswararao Nelakurthi wrote:
> > I am trying to cross compile Perf source present in 2.6.35/tools/perf
> > directory for ARM.in ubuntu machine.(x86 is host machine).But i am
> > facing the following compilation error as compiler looks at host
> > specific header files instead of looking at header files present in
> > perf/ directory..Please provide Makefile changes required to compile
> > successfully perf for ARM.{{{
> >
> > perf>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
> >
>
> Do you have a sysroot for the cross-compile environment? e.g., for WRL3
> we use:
>
> CROSS_COMPILE = i586-wrs-linux-gnu-
> CROSS_SYSROOT = /path/to/cross-compile/sysroot
>
> make CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) CC="$(CROSS_COMPILE)gcc
> --sysroot=$(CROSS_SYSROOT)"
>
> David
>
>
I try to compile perf for Android with Android NDK
base on the page
http://stuff.mit.edu/afs/sipb/contrib/linux
/tools/perf/Documentation/android.txt
I met issues of CROSS_COMPILE and SYSROOT,
it does not work and responds errors:
Android NDK: NDK_TOOLCHAIN is defined to the unsupported value
android-ndk-r9/toolchains/arm-linux-androideabi-4.6
/prebuilt/linux-x86/bin/arm-linux-androideabi-
Android NDK: Please use one of the following values:
arm-linux-androideabi-4.6 arm-linux-androideabi-4.8
arm-linux-androideabi-clang3.2 arm-linux-androideabi-clang3.3
mipsel-linux-android-4.6 mipsel-linux-android-4.8
mipsel-linux-android-clang3.2 mipsel-linux-android-clang3.3 x86-4.6 x86-4.8
x86-clang3.2 x86-clang3.3
build/core/init.mk:555: *** Android NDK: Aborting . Stop.
I can't fix this error because I used "arm-linux-androideabi-4.6" value and
it also appear in Android NDK/Toolchains directory
If you have any suggestion about that, please reply on this post or send
email to me. I appreciate your help. Thanks
next prev parent reply other threads:[~2013-10-23 9:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-14 3:00 Perf tool cross build issue Koteswararao Nelakurthi
2012-08-16 0:31 ` Namhyung Kim
2012-08-16 3:17 ` Koteswararao Nelakurthi
2012-08-20 14:08 ` Arnaldo Carvalho de Melo
2012-08-16 1:31 ` David Ahern
2013-10-23 9:00 ` Hiep Trinh [this message]
2015-08-10 5:21 ` Compile linux tool perf for Android shyam
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=loom.20131023T104641-256@post.gmane.org \
--to=trinhhiepth@gmail.com \
--cc=linux-perf-users@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).