Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1454438
| From | Arnaldo Carvalho de Melo <acme@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] perf tools: Fix build failture on perl script context |
| Date | 2016-08-02 15:50 +0200 |
| Message-ID | <s1If1-589-59@gated-at.bofh.it> (permalink) |
| References | <s1xWi-6Jw-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Em Tue, Aug 02, 2016 at 11:43:17AM +0900, Namhyung Kim escreveu: > On my Archlinux machine, perf faild to build like below: > > CC scripts/perl/Perf-Trace-Util/Context.o > In file included from /usr/lib/perl5/core/perl/CORE/perl.h:3905:0, > from Context.xs:23: > /usr/lib/perl5/core/perl/CORE/inline.h: In function : > /usr/lib/perl5/core/perl/CORE/cop.h:612:13: warning: declaration of 'av' > shadows a previous local [-Werror-shadow] > AV *av =3D GvAV(PL_defgv); > ^ > /usr/lib/perl5/core/perl/CORE/inline.h:526:5: note: in expansion of > macro 'CX_POP_SAVEARRAY' > CX_POP_SAVEARRAY(cx); > ^~~~~~~~~~~~~~~~ > In file included from /usr/lib/perl5/core/perl/CORE/perl.h:5853:0, > from Context.xs:23: > /usr/lib/perl5/core/perl/CORE/inline.h:518:9: note: > shadowed declaration is here > AV *av; > ^~ But you forgot to describe _what_ you did to "fix" the problem besides breaking down a long line, i.e. adding -Wno-shadow, is that what we want? To ignore such warnings? Some explanation in the changelog as to why that is the wise solution would help a lot :-\ - Arnaldo > > Signed-off-by: Namhyung Kim <namhyung@kernel.org> > --- > tools/perf/scripts/perl/Perf-Trace-Util/Build | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/scripts/perl/Perf-Trace-Util/Build b/tools/perf/scripts/perl/Perf-Trace-Util/Build > index 928e110179cb..34faecf774ae 100644 > --- a/tools/perf/scripts/perl/Perf-Trace-Util/Build > +++ b/tools/perf/scripts/perl/Perf-Trace-Util/Build > @@ -1,3 +1,5 @@ > libperf-y += Context.o > > -CFLAGS_Context.o += $(PERL_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-nested-externs -Wno-undef -Wno-switch-default > +CFLAGS_Context.o += $(PERL_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes > +CFLAGS_Context.o += -Wno-unused-parameter -Wno-nested-externs -Wno-undef > +CFLAGS_Context.o += -Wno-switch-default -Wno-shadow > -- > 2.9.2
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] perf tools: Fix build failture on perl script context Namhyung Kim <namhyung@kernel.org> - 2016-08-02 04:50 +0200
Re: [PATCH] perf tools: Fix build failture on perl script context Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-08-02 15:30 +0200
Re: [PATCH] perf tools: Fix build failture on perl script context Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-08-02 15:50 +0200
Re: [PATCH] perf tools: Fix build failture on perl script context Namhyung Kim <namhyung@kernel.org> - 2016-08-02 16:10 +0200
Re: [PATCH] perf tools: Fix build failture on perl script context Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-08-02 16:30 +0200
Re: [PATCH] perf tools: Fix build failture on perl script context Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-08-02 17:20 +0200
[tip:perf/urgent] perf tools: Fix build failure on perl script context tip-bot for Namhyung Kim <tipbot@zytor.com> - 2016-08-04 11:20 +0200
csiph-web