[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    Re: [OE-core] [Morty][PATCH] binutils: Fix build issue on Centos 6
From:       Jagadeesh Krishnanjanappa <jkrishnanjanappa () mvista ! com>
Date:       2017-11-30 7:28:49
Message-ID: CAD3vsf4ADAauOgHQjVucMAFTraYMLLxEcaMEtAht06yUbGPvRg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> > 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@mvista.com
> >
> >> > Reviewed-by: Jeremy Puhlman <jpuhlman@mvista.com>
> >> > Signed-off-by: Armin Kuster <akuster@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@lists.openembedded.org
> >> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >> --
> >> _______________________________________________
> >> Openembedded-core mailing list
> >> Openembedded-core@lists.openembedded.org
> >> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >
> >
>

[Attachment #5 (text/html)]

<div dir="ltr"><span class="gmail-"></span><br><span class="gmail-"></span><div \
class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><span class="gmail-"> &gt; The above link points \
to gcc rpms of v4.8.1/2, but the   &quot;-Wstack-usage&quot;<br> &gt; option<br>
&gt; was introduced in gcc v4.9.x; so I think the problem exists with the above<br>
&gt; rpms.<br>
&gt; Ref: <a href="https://sourceware.org/bugzilla/show_bug.cgi?id=19854" \
rel="noreferrer" target="_blank">https://sourceware.org/<wbr>bugzilla/show_bug.cgi?id=19854</a><br>
 &gt;<br>
<br>
</span>Then you might need to install devtool version 6<br>
<br>
<a href="https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/" \
rel="noreferrer" target="_blank">https://www.<wbr>softwarecollections.org/en/<wbr>scls/rhscl/devtoolset-6/</a><br>
 <div class="gmail-HOEnZb"><div \
class="gmail-h5"><br></div></div></blockquote><div>Basically, we are intentionally \
building binaries/libraries on</div><div>lower versions of distro; in order to make \
sure they (binaries/libraries) <br></div><div>work on higher/latest distros. \
Installing this devtoolset can solve the issue, <br></div><div>but our purpose will \
not be met.</div><div><br></div><div>However, Thank You for the info; it would help \
someone in future.</div><div><br></div><div>Regards,</div><div>Jagadeesh</div><div><br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5"> \
<br> &gt; Regards,<br>
&gt; Jagadeesh<br>
&gt;<br>
&gt;&gt; &gt; gprof&#39; cc1: error: unrecognized command line option<br>
&gt;&gt; &gt; &quot;-Wstack-usage=262144&quot;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Signed-off-by: Jagadeesh Krishnanjanappa &lt;<a \
href="mailto:jkrishnanjanappa@mvista.com">jkrishnanjanappa@mvista.com</a>&gt;<br> \
&gt;&gt; &gt; Reviewed-by: Jeremy Puhlman &lt;<a \
href="mailto:jpuhlman@mvista.com">jpuhlman@mvista.com</a>&gt;<br> &gt;&gt; &gt; \
Signed-off-by: Armin Kuster &lt;<a \
href="mailto:akuster@mvista.com">akuster@mvista.com</a>&gt;<br> &gt;&gt; &gt; ---<br>
&gt;&gt; &gt;   meta/recipes-devtools/<wbr>binutils/binutils-cross-<wbr>canadian.inc \
| 7 +++++++<br> &gt;&gt; &gt;   1 file changed, 7 insertions(+)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; diff --git \
a/meta/recipes-devtools/<wbr>binutils/binutils-cross-<wbr>canadian.inc<br> &gt;&gt; \
&gt; b/meta/recipes-devtools/<wbr>binutils/binutils-cross-<wbr>canadian.inc<br> \
&gt;&gt; &gt; index ae14642..30e3bc6 100644<br> &gt;&gt; &gt; --- \
a/meta/recipes-devtools/<wbr>binutils/binutils-cross-<wbr>canadian.inc<br> &gt;&gt; \
&gt; +++ b/meta/recipes-devtools/<wbr>binutils/binutils-cross-<wbr>canadian.inc<br> \
&gt;&gt; &gt; @@ -12,6 +12,13 @@ EXTRA_OECONF +=<br> &gt;&gt; &gt; \
&quot;--with-sysroot=${SDKPATH}/<wbr>sysroots/${TUNE_PKGARCH}${<wbr>TARGET_VEND<br> \
&gt;&gt; &gt;   # e.g. we switch between different machines with different tunes.<br> \
&gt;&gt; &gt;   EXTRA_OECONF[vardepsexclude] = &quot;TUNE_PKGARCH&quot;<br> &gt;&gt; \
&gt;<br> &gt;&gt; &gt; +EXTRA_OEMAKE += &quot;WARN_CFLAGS=&#39;-W -Wall \
-Wstrict-prototypes<br> &gt;&gt; &gt; -Wmissing-prototypes -Wshadow&#39;&quot;<br>
&gt;&gt; &gt; +do_configure_prepend () {<br>
&gt;&gt; &gt; +           sed -i ${S}/bfd/warning.m4 -e \
&quot;/Wstack-usage/D&quot;<br> &gt;&gt; &gt; +           sed -i ${S}/bfd/configure \
-e &quot;s/-Wstack-usage=262144//&quot;<br> &gt;&gt; &gt; +           sed -i \
${S}/binutils/configure -e &quot;s/-Wstack-usage=262144//&quot;<br> &gt;&gt; &gt; \
+}<br> &gt;&gt; &gt; +<br>
&gt;&gt; &gt;   do_install () {<br>
&gt;&gt; &gt;              autotools_do_install<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; 2.7.4<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; ______________________________<wbr>_________________<br>
&gt;&gt; &gt; Openembedded-core mailing list<br>
&gt;&gt; &gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
 &gt;&gt; &gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" \
rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
 &gt;&gt; --<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; Openembedded-core mailing list<br>
&gt;&gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
 &gt;&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" \
rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
 &gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div></div>



-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic