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

Khem Raj raj.khem at gmail.com
Wed Nov 29 07:41:06 UTC 2017


On Tue, Nov 28, 2017 at 8:07 AM, Jagadeesh Krishnanjanappa
<jkrishnanjanappa at mvista.com> wrote:
>
>
>> From: Armin Kuster <akuster at mvista.com>
>>
>> >
>> > Per Yocto Compatable: The following change was made to fix a build issue
>> > we are seeing on
>> > Centos 6. Not expecting this to be merge.
>> >
>> > binutils-cross-canadian-arm-2.27-r0.47: task do_compile:
>> >
>>
>> does installing https://people.centos.org/tru/devtools-2/6/x86_64/RPMS/
>> help ?
>>
> 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/


> 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
>
>



More information about the Openembedded-core mailing list