From: Namhyung Kim <namhyung@kernel.org>
To: Jiri Olsa <jolsa@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>,
Ben Guthro <ben.guthro@gmail.com>,
Ian Munsie <imunsie@au1.ibm.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
David Ahern <dsahern@gmail.com>,
Namhyung Kim <namhyung.kim@lge.com>
Subject: Re: [PATCH] perf tool: Fix build for NO_DWARF=1 case
Date: Wed, 03 Oct 2012 22:29:48 +0900 [thread overview]
Message-ID: <87r4pfwunn.fsf@kernel.org> (raw)
In-Reply-To: <20121003102928.GA945@krava.brq.redhat.com> (Jiri Olsa's message of "Wed, 3 Oct 2012 12:29:28 +0200")
Hi all,
On Wed, 3 Oct 2012 12:29:28 +0200, Jiri Olsa wrote:
> On Tue, Oct 02, 2012 at 06:45:36PM -0300, Arnaldo Carvalho de Melo wrote:
>> Em Tue, Oct 02, 2012 at 03:10:49PM +0200, Jiri Olsa escreveu:
>> > On Tue, Oct 02, 2012 at 07:39:23AM -0400, Ben Guthro wrote:
>> > > Actually - I hadn't noticed these warnings before.
>>
>> > > After installing libdw-dev - the perf build completed successfully.
>> > > Perhaps this should be fatal, rather than a warning?
>>
>> > attached patch fixies the issue for me. Adding Arnaldo to the loop.
>>
>> [acme@sandy linux]$ make -j8 -C tools/perf/ LIBUNWIND_DIR=/opt/libunwind O=/home/acme/git/build/perf install
>> cc1: warnings being treated as errors
>> arch/x86/util/dwarf-regs.c:72: error: no previous prototype for ‘get_arch_regstr’
>> make: *** [/home/acme/git/build/perf/arch/x86/util/dwarf-regs.o] Error 1
>> make: *** Waiting for unfinished jobs....
>> make: Leaving directory `/home/git/linux/tools/perf'
>> [acme@sandy linux]$
>>
>> - Arnaldo
>
> ugh.. forgot the way you build perf ;)
> (also smells like 'automated make test' adept)
>
> Anyway, there's Makefile dependency on PERF_HAVE_DWARF_REGS which
> is defined in arch/x86/Makefile.
>
> So, there's only one right place for '-include arch/$(ARCH)/Makefile'.
> We should think of some other solution, since this seems fragile.
>
> I checked your make and simple make with attached patch
> (only x86_64 arch, and with and without libdw installed).
I posted similar patch few days ago and it slipped into acme/perf/core:
https://lkml.org/lkml/2012/9/28/194
Can you reproduce it with above change? Anyway, my apologies, sorry for
the inconvenience.
Thanks,
Namhyung
prev parent reply other threads:[~2012-10-03 13:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAOvdn6WPUDqYPpHZip7dxVVXJXT0-zJOUCpgDGb=o+zqq98F0Q@mail.gmail.com>
2012-10-02 4:24 ` linux-next: build failure in dwarf-regs.c Ian Munsie
2012-10-02 11:39 ` Ben Guthro
2012-10-02 13:10 ` [PATCH] perf tool: Fix build for NO_DWARF=1 case Jiri Olsa
2012-10-02 21:45 ` Arnaldo Carvalho de Melo
2012-10-03 10:29 ` Jiri Olsa
2012-10-03 13:29 ` Namhyung Kim [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=87r4pfwunn.fsf@kernel.org \
--to=namhyung@kernel.org \
--cc=acme@redhat.com \
--cc=ben.guthro@gmail.com \
--cc=dsahern@gmail.com \
--cc=imunsie@au1.ibm.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=namhyung.kim@lge.com \
/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