On Tue, 2011-04-05 at 10:03 -0700, Khem Raj wrote: > On Tue, Apr 5, 2011 at 9:46 AM, Joshua Lock <j...@linux.intel.com> wrote: > > On Mon, 2011-04-04 at 18:58 -0700, Khem Raj wrote: > >> On 4/1/2011 6:51 AM, Joshua Lock wrote: > >> > From: Joshua Lock<j...@linux.intel.com> > >> > > >> > gcc 4.6 (as used in Fedora 15) adds some extra warnings which are > >> > included with Werror. The new unused-but-set variable warning causes > >> > an error in libasm of elfutils. Work around this by removing > >> > unused-but-set from Werror. > >> > > >> > Signed-off-by: Joshua Lock<j...@linux.intel.com> > >> > --- > >> > meta/recipes-devtools/elfutils/elfutils_0.148.bb | 4 ++++ > >> > 1 files changed, 4 insertions(+), 0 deletions(-) > >> > > >> > diff --git a/meta/recipes-devtools/elfutils/elfutils_0.148.bb > >> > b/meta/recipes-devtools/elfutils/elfutils_0.148.bb > >> > index b2f700e..c395be8 100644 > >> > --- a/meta/recipes-devtools/elfutils/elfutils_0.148.bb > >> > +++ b/meta/recipes-devtools/elfutils/elfutils_0.148.bb > >> > @@ -40,6 +40,10 @@ SRC_URI += "\ > >> > > >> > inherit autotools > >> > > >> > +# GCC 4.6.0 raises an unused-but-set warning in libasm, for now remove > >> > +# this warning from Werror > >> > +CFLAGS_virtclass-native += "-Wno-error=unused-but-set-variable" > >> > + > >> > >> unused-but-set-variable is a new option in gcc 4.6 which means this will > >> cause problems with older gcc's as they wont recognize this option and > >> not all distros have gcc 4.6 > >> as base compiler. Have you tried compiling this patchset on a build > >> machine which has older gcc ? say 4.5 > > > > I had not but thanks for pointing this out. I'll work up a new patch and > > make sure to test it on a machine with an older GCC. > > > > IMO either disabling Werror completely or fixing the problem are only > two alternatives
Agreed. I've gone the route of fixing the problem and have pulled in a series of patches from upstream. I haven't yet had the chance to test on GCC other than 4.6 but will send a pull request shortly. Regards, Joshua -- Joshua Lock Yocto Build System Monkey Intel Open Source Technology Centre _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core