[meta-freescale] powerpc-fsl-linux-g++: warning: switch '-fhuge-objects' is no longer supported
Luo Zhenhua-B19537
B19537 at freescale.com
Sun Nov 25 22:21:18 PST 2012
Two ways to fix the build error.
1. Remove -Werror compile flag
2. Remove the unused variable definition from source file
Best Regards,
Zhenhua
> -----Original Message-----
> From: meta-freescale-bounces at yoctoproject.org [mailto:meta-freescale-
> bounces at yoctoproject.org] On Behalf Of Otavio Salvador
> Sent: Monday, November 26, 2012 2:19 AM
> To: GOPIKRISHNAN S
> Cc: meta-freescale at yoctoproject.org
> Subject: Re: [meta-freescale] powerpc-fsl-linux-g++: warning: switch '-
> fhuge-objects' is no longer supported
>
> On Sat, Nov 24, 2012 at 3:45 PM, GOPIKRISHNAN S <gopikrishnans at pec.edu>
> wrote:
> > While building squid that i got from
> >
> > http://cgit.openembedded.org/openembedded/tree/recipes/squid?id=b0f0b3
> > ab87cf8
> >
> > I can see lot on message like
> >
> > powerpc-fsl-linux-g++: warning: switch '-fhuge-objects' is no longer
> > supported
> >
> > and finally end-up with, cc1plus is complaining that, all warnings are
> > going to be treated as errors.
> >
> > User.cc: In static member function 'static void
> > AuthUser::CachedACLsReset()':
> > User.cc:161:17: error: variable 'username' set but not used
> > [-Werror=unused-but-set-variable]
> > cc1plus: all warnings being treated as errors
>
> This is probably caused by the update of GCC so it needs fixing.
>
> --
> Otavio Salvador O.S. Systems
> E-mail: otavio at ossystems.com.br http://www.ossystems.com.br
> Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
More information about the meta-freescale
mailing list