binutils: Fix build issue on Centos 6
PATCH 1/1 binutils: Fix build issue on Centos 6
From: Armin Kuster <[email protected]>
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:
gprof' cc1: error: unrecognized command line option "-Wstack-usage=262144"
--- meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 7 +++++++ 1 file changed, 7 insertions(+)
meta/recipes-devtools/binutils/binutils-cross-canadian.inc +7 -0
@@ -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
Signature · 1 line
2.7.4
✗ patchtest: failure for binutils: Fix build issue on Centos 6
== Series Details ==
Series: binutils: Fix build issue on Centos 6
Revision: 1
URL : https://patchwork.openembedded.org/series/9938/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:
* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at 33418ed064)
If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).
---
Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
Quoted 7 lines · Armin Kuster
From: Armin Kuster <[email protected]>
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 ?
Quoted 35 lines
gprof' cc1: error: unrecognized command line option "-Wstack-usage=262144"
Signed-off-by Jagadeesh Krishnanjanappa <[email protected]>Reviewed-by Jeremy Puhlman <[email protected]>Signed-off-by Armin Kuster <[email protected]>--- meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 7 +++++++ 1 file changed, 7 insertions(+)meta/recipes-devtools/binutils/binutils-cross-canadian.inc +7
-1@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 7 lines
From: Armin Kuster <[email protected]>
Quoted 2 lines
Per Yocto Compatable: The following change was made to fix a build issue
we are seeing on
Quoted 2 lines
Centos 6. Not expecting this to be merge.
Quoted 7 lines
Quoted 2 lines
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
Regards,
Jagadeesh
Quoted 44 lines
gprof' cc1: error: unrecognized command line option "-Wstack-usage=262144"
Review
Quoted 9 lines
Signed-off-by Jagadeesh Krishnanjanappa <[email protected]>Reviewed-by Jeremy Puhlman <[email protected]>Signed-off-by Armin Kuster <[email protected]>--- meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 7 +++++++ 1 file changed, 7 insertions(+)(quoted diff) +0
-0b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
meta/recipes-devtools/binutils/binutils-cross-canadian.inc EXTRA_OECONF += "--with-sysroot=${SDKPATH}/
Quoted 4 lines
index ae14642..30e3bc6 100644
meta/recipes-devtools/binutils/binutils-cross-canadian.inc +0
-0@@ -12,6 +12,13 @@ EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VEND
meta/recipes-devtools/binutils/binutils-cross-canadian.inc EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VEND
Quoted 4 lines
meta/recipes-devtools/binutils/binutils-cross-canadian.inc +1
-0# 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'"
Quoted 12 lines
meta/recipes-devtools/binutils/binutils-cross-canadian.inc +6
-1+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
Quoted 5 lines
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 12 lines · Jagadeesh Krishnanjanappa
Quoted 12 lines
From: Armin Kuster <[email protected]>
Quoted 7 lines
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:
Quoted 9 lines
Quoted 3 lines
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/
Quoted 49 lines
Regards,
JagadeeshQuoted 44 lines
Quoted 34 lines
gprof' cc1: error: unrecognized command line option "-Wstack-usage=262144"
Signed-off-by Jagadeesh Krishnanjanappa <[email protected]>Reviewed-by Jeremy Puhlman <[email protected]>Signed-off-by Armin Kuster <[email protected]>--- meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 7 +++++++ 1 file changed, 7 insertions(+)meta/recipes-devtools/binutils/binutils-cross-canadian.inc +0
-0@@ -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"meta/recipes-devtools/binutils/binutils-cross-canadian.inc +7
-2+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
Quoted 5 lines
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 8 lines
Quoted 3 lines
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 theabove
Quoted 3 lines
rpms.
Ref: https://sourceware.org/bugzilla/show_bug.cgi?id=19854
Quoted 5 lines
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
Quoted 53 lines
Quoted 12 lines
Regards,
JagadeeshQuoted 9 lines
Quoted 9 lines
gprof' cc1: error: unrecognized command line option "-Wstack-usage=262144"
Signed-off-by Jagadeesh Krishnanjanappa <[email protected]Reviewed-by Jeremy Puhlman <[email protected]>Signed-off-by Armin Kuster <[email protected]>--- meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 7+++++++
Quoted 3 lines
Quoted 3 lines
Review
Quoted 3 lines
1 file changed, 7 insertions(+)(quoted diff) +0
-0canadian.inc
Quoted 35 lines
Quoted 33 lines
Quoted 23 lines
b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc index ae14642..30e3bc6 100644
meta/recipes-devtools/binutils/binutils-cross-canadian.inc +0
-0@@ -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"meta/recipes-devtools/binutils/binutils-cross-canadian.inc +7
-2+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
Quoted 5 lines
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core