On Fri, Jan 29, 2016 at 8:43 PM, William Cohen <wco...@redhat.com> wrote:

> On 01/29/2016 11:24 AM, William Cohen wrote:
> > Some additional gcc warning flags have been turned on in Fedora rawhide
> and the warnings are causing the build of libpfm to fail.  Below is an
> example of them.  However, there are others that are not listed because the
> compile of those files wasn't attempted because the make exited early.
> >
> > -Will
> >
> > cc  -g -Wall -Werror -Wextra -Wno-unused-parameter -I.
> -I/builddir/build/BUILD/libpfm-4.6.0/lib/../include -DCONFIG_PFMLIB_DEBUG
> -DCONFIG_PFMLIB_OS_LINUX -D_REENTRANT -I. -DCONFIG_PFMLIB_ARCH_X86
> -DCONFIG_PFMLIB_ARCH_I386 -I. -c pfmlib_intel_ivb_unc.c
> > In file included from pfmlib_intel_snb_unc.c:31:0:
> > events/intel_snb_unc_events.h:227:32: error: 'intel_snb_unc_arb_pe'
> defined but not used [-Werror=unused-const-variable]
> >  static const intel_x86_entry_t intel_snb_unc_arb_pe[]={
> >                                 ^~~~~~~~~~~~~~~~~~~~
> > events/intel_snb_unc_events.h:145:32: error: 'snb_unc_arb_trk' defined
> but not used [-Werror=unused-const-variable]
> >  static const intel_x86_umask_t snb_unc_arb_trk[]={
> >                                 ^~~~~~~~~~~~~~~
> > cc1: all warnings being treated as errors
> > /builddir/build/BUILD/libpfm-4.6.0/lib/../rules.mk:30: recipe for
> target 'pfmlib_intel_snb_unc.o' failed
> > make[1]: *** [pfmlib_intel_snb_unc.o] Error 1
> > make[1]: *** Waiting for unfinished jobs....
> > In file included from pfmlib_intel_ivb_unc.c:31:0:
> > events/intel_snb_unc_events.h:227:32: error: 'intel_snb_unc_arb_pe'
> defined but not used [-Werror=unused-const-variable]
> >  static const intel_x86_entry_t intel_snb_unc_arb_pe[]={
> >                                 ^~~~~~~~~~~~~~~~~~~~
> > events/intel_snb_unc_events.h:145:32: error: 'snb_unc_arb_trk' defined
> but not used [-Werror=unused-const-variable]
> >  static const intel_x86_umask_t snb_unc_arb_trk[]={
> >                                 ^~~~~~~~~~~~~~~
> > cc1: all warnings being treated as errors
> > /builddir/build/BUILD/libpfm-4.6.0/lib/../rules.mk:30: recipe for
> target 'pfmlib_intel_ivb_unc.o' failed
> > make[1]: *** [pfmlib_intel_ivb_unc.o] Error 1
> > make[1]: Leaving directory '/builddir/build/BUILD/libpfm-4.6.0/lib'
> >
> >
> ------------------------------------------------------------------------------
> > Site24x7 APM Insight: Get Deep Visibility into Application Performance
> > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> > Monitor end-to-end web transactions and take corrective actions now
> > Troubleshoot faster and improve end-user experience. Signup Now!
> > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> > _______________________________________________
> > perfmon2-devel mailing list
> > perfmon2-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
> >
>
> As a first pass I went through and remove the unused initializers and the
> attached patch shows what was remove to eliminate the unused const
> initializer errors. This might not be the right approach, but it does list
> out the problem initializers when building things on x86 machines.  Some of
> the events and unit masks might be supported by the processor and should
> remain.
>
> Patch applied.
Thanks.


> -Will
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> perfmon2-devel mailing list
> perfmon2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
>
>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to