[OE-core] [Morty][PATCH] binutils: Fix build issue on Centos 6

Jagadeesh Krishnanjanappa jkrishnanjanappa at mvista.com
Thu Nov 30 07:16:49 UTC 2017


> > The above link points to gcc rpms of v4.8.1/2, but the  "-Wstack-usage"
> > option
> > was introduced in gcc v4.9.x; so I think the problem exists with the
> above
> > rpms.
> > Ref: https://sourceware.org/bugzilla/show_bug.cgi?id=19854
> >
>
> Then you might need to install devtool version 6
>
> https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/
>
> Basically, we are intentionally building binaries/libraries on
lower versions of distro; in order to make sure they (binaries/libraries)
work on higher/latest distros. Installing this devtoolset can solve the
issue,
but our purpose will not be met.

However, Thank You for the info; it would help someone in future.

Regards,
Jagadeesh


> > Regards,
> > Jagadeesh
> >
> >> > gprof' cc1: error: unrecognized command line option
> >> > "-Wstack-usage=262144"
> >> >
> >> > Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa at mvista.com
> >
> >> > Reviewed-by: Jeremy Puhlman <jpuhlman at mvista.com>
> >> > Signed-off-by: Armin Kuster <akuster at mvista.com>
> >> > ---
> >> >  meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 7
> +++++++
> >> >  1 file changed, 7 insertions(+)
> >> >
> >> > diff --git a/meta/recipes-devtools/binutils/binutils-cross-
> canadian.inc
> >> > b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
> >> > index ae14642..30e3bc6 100644
> >> > --- a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
> >> > +++ b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
> >> > @@ -12,6 +12,13 @@ EXTRA_OECONF +=
> >> > "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VEND
> >> >  # e.g. we switch between different machines with different tunes.
> >> >  EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH"
> >> >
> >> > +EXTRA_OEMAKE += "WARN_CFLAGS='-W -Wall -Wstrict-prototypes
> >> > -Wmissing-prototypes -Wshadow'"
> >> > +do_configure_prepend () {
> >> > +       sed -i ${S}/bfd/warning.m4 -e "/Wstack-usage/D"
> >> > +       sed -i ${S}/bfd/configure -e "s/-Wstack-usage=262144//"
> >> > +       sed -i ${S}/binutils/configure -e "s/-Wstack-usage=262144//"
> >> > +}
> >> > +
> >> >  do_install () {
> >> >         autotools_do_install
> >> >
> >> > --
> >> > 2.7.4
> >> >
> >> > --
> >> > _______________________________________________
> >> > Openembedded-core mailing list
> >> > Openembedded-core at lists.openembedded.org
> >> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >> --
> >> _______________________________________________
> >> Openembedded-core mailing list
> >> Openembedded-core at lists.openembedded.org
> >> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20171130/1a926959/attachment-0002.html>


More information about the Openembedded-core mailing list