linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@infradead.org>
To: Koteswararao Nelakurthi <knelakurthi@mvista.com>
Cc: Namhyung Kim <namhyung@kernel.org>, linux-perf-users@vger.kernel.org
Subject: Re: Perf tool cross build issue
Date: Mon, 20 Aug 2012 11:08:39 -0300	[thread overview]
Message-ID: <20120820140839.GC3046@infradead.org> (raw)
In-Reply-To: <CAAo=-0bfY6ZeTbaM9OiL8=1KY-FXWwp9f1JN2qmmeEiY_fJsHw@mail.gmail.com>

Em Thu, Aug 16, 2012 at 12:17:52PM +0900, Koteswararao Nelakurthi escreveu:
> Dear Kim,
> 
> Thanks for your reply.
> I am using 2.6.35 since it is my base kernel, and i have to cross check
> perf in that kernel only.
> That's why i requested..the info for how to compile perf with out any issues
> Any inputs regarding changes to Makefile to build perf successfully?
> 
> Anyway..thanks for your information

You can try building a recent perf and then using it on that old kernel,
there is no need to tie perf/kernel versions, the tool notices if
features it tries to use are not present on the kernel it is being run
and acts accordingly, falling back to using the features present in
older kernels.

If it doesn't work like that, we'd like to know.

So please grab the latest kernel sources and build the tool, then
transfer the binary to your target machine and try it.

If it still doesn't build, please report here.

- Arnaldo
 
> Regards
> koteswararao.
> 
> On Thu, Aug 16, 2012 at 9:31 AM, Namhyung Kim <namhyung@kernel.org> wrote:
> > Hi, Koteswararao
> >
> > On Tue, 14 Aug 2012 12:00:12 +0900, Koteswararao Nelakurthi wrote:
> >> Dear Perf developers,
> >>
> >>
> >> I am trying to cross compile Perf source present in 2.6.35/tools/perf
> >
> > 2.6.35? That's too old. Can't you try it with more recent version?
> >
> > Thanks,
> > Namhyung
> >
> >
> >> 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-
> >>
> >> Makefile:629: No bfd.h/libbfd found, install
> >> binutils-dev[el]/zlib-static to gain symbol demangling
> >>
> >>                CC
> >> /home/caveo/20120807_work/mvlinux/tools/perf/builtin-annotate.o
> >>
> >> In file included from builtin-annotate.c:22:
> >>
> >> util/parse-options.h:86: error: redefinition of 'struct option'
> >>
> >> In file included from builtin-annotate.c:26:
> >>
> >> util/hist.h:119: fatal error: newt.h: No such file or directory
> >> compilation terminated.
> >> make: *** [/home/caveo/20120807_work/mvlinux/tools/perf/builtin-annotate.o]
> >> Error 1
> >>
> >> }}}
> >>
> >> Thanks for your help in advance.
> >>
> >> Regards
> >> koteswararao
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2012-08-20 14:08 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 [this message]
2012-08-16  1:31 ` David Ahern
2013-10-23  9:00   ` Compile linux tool perf for Android Hiep Trinh
2015-08-10  5:21     ` 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=20120820140839.GC3046@infradead.org \
    --to=acme@infradead.org \
    --cc=knelakurthi@mvista.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=namhyung@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).