Skip to contentSkip to conversation

gcc 4.9: backport gperf fixes

PATCH New [email protected] 2 participants 5 messages May 10, 2016 – May 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/5 gcc 4.9: backport gperf fixes

From: Dan McGregor <[email protected]>

From: Daniel McGregor <[email protected]>

gperf was being used in a way that generated files don't conform to the language standard. Backport the fix from upstream.

This is required to build these GCC versions when the host compiler is GCC 6.

---
 meta/recipes-devtools/gcc/gcc-4.9.inc              |   1 +
 .../gcc/gcc-4.9/0075-remove-prototypes-cfns.patch  | 153 +++++++++++++++++++++
 2 files changed, 154 insertions(+)
 create mode 100644 meta/recipes-devtools/gcc/gcc-4.9/0075-remove-prototypes-cfns.patch
meta/recipes-devtools/gcc/gcc-4.9.inc +1 -0
index 7e03f31..2be0599 100644
@@ -90,6 +90,7 @@ SRC_URI = "\
     file://0072-support-ffile-prefix-map.patch \
     file://0073-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch \
     file://0074-fdebug-prefix-map-support-to-remap-relative-path.patch \
+    file://0075-remove-prototypes-cfns.patch \
 "
 SRC_URI[md5sum] = "6f831b4d251872736e8e9cc09746f327"
 SRC_URI[sha256sum] = "2332b2a5a321b57508b9031354a8503af6fdfb868b8c1748d33028d100a8b67e"
meta/recipes-devtools/gcc/gcc-4.9/0075-remove-prototypes-cfns.patch new file +153 -0

153 lines not on this page · raw message

Signature · 1 line
2.8.2
#1 lore raw

PATCH 3/5 openjade-native: work around bug exposed by GCC 6

From: Dan McGregor <[email protected]>

From: Daniel McGregor <[email protected]>

Simply turn off the optimzation that is causing this breakage. I had originally used -fno-lifetime-dse, but -fno-tree-dse works at least going back as far as gcc 4.8.

This isn't a real fix, but it allows openjade to work enough to complete a build.

---
 meta/recipes-devtools/openjade/openjade-native_1.3.2.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/openjade/openjade-native_1.3.2.bb +1 -0
index bc25008..afcb8ca 100644
@@ -44,6 +44,7 @@ CONFIGUREOPTS := "${@d.getVar('CONFIGUREOPTS', True).replace('--datadir=${datadi
 oe_runconf[vardepsexclude] += "CONFIGUREOPTS"
 
 CFLAGS =+ "-I${S}/include"
+CXXFLAGS += "-fno-tree-dse"
 
 SSTATEPOSTINSTFUNCS += "openjade_sstate_postinst"
 SYSROOT_PREPROCESS_FUNCS += "openjade_sysroot_preprocess"
Signature · 1 line
2.8.2
#2 lore raw

Re: [master][krogoth][PATCH 3/5] openjade-native: work around bug exposed by GCC 6

Quoted 13 lines · On May 10, 2016, at 9:04 AM, [email protected] wrote:

From: Dan McGregor <[email protected]>

From: Daniel McGregor <[email protected]>

Simply turn off the optimzation that is causing this breakage. I had originally used -fno-lifetime-dse, but -fno-tree-dse works at least going back as far as gcc 4.8.

This isn't a real fix, but it allows openjade to work enough to complete a build.

would be good to add a comment on where its discussed e.g.

https://bugzilla.redhat.com/show_bug.cgi?id=1306162
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69534

Quoted 26 lines

---
meta/recipes-devtools/openjade/openjade-native_1.3.2.bb | 1 +

1 file changed, 1 insertion(+)
meta/recipes-devtools/openjade/openjade-native_1.3.2.bb +0 -0
index bc25008..afcb8ca 100644
@@ -44,6 +44,7 @@ CONFIGUREOPTS := "${@d.getVar('CONFIGUREOPTS', True).replace('--datadir=${datadi

oe_runconf[vardepsexclude] += "CONFIGUREOPTS"

CFLAGS =+ "-I${S}/include"
+CXXFLAGS += "-fno-tree-dse"

SSTATEPOSTINSTFUNCS += "openjade_sstate_postinst" SYSROOT_PREPROCESS_FUNCS += "openjade_sysroot_preprocess" --
2.8.2

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw

PATCH 4/5 binutils: disable werror on native build

In reply to [email protected]

From: Dan McGregor <[email protected]>

From: Daniel McGregor <[email protected]>

binutils has some warnings when compiled with gcc 6.0. Disable werror for the native build to work around build failures.

---
 meta/recipes-devtools/binutils/binutils_2.26.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-devtools/binutils/binutils_2.26.bb +2 -1
index b70ffbf..e976bad 100644
@@ -13,7 +13,8 @@ EXTRA_OECONF += "--with-sysroot=/ \
 EXTRA_OECONF_class-native = "--enable-targets=all \
                              --enable-64-bit-bfd \
                              --enable-install-libiberty \
-                             --enable-install-libbfd"
+                             --enable-install-libbfd \
+                             --disable-werror"
 
 do_install_class-native () {
 	autotools_do_install
Signature · 1 line
2.8.2
#4 lore raw

PATCH 5/5 pkgconfig: fix build with host gcc 6

In reply to [email protected]

From: Dan McGregor <[email protected]>

From: Daniel McGregor <[email protected]>

This simply disables the glib-2.0 warning identified by that recipe. This package depends on host glib, so we can't patch it.

---
 meta/recipes-devtools/pkgconfig/pkgconfig_git.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/pkgconfig/pkgconfig_git.bb +1 -0
index d34f608..88c99cd 100644
@@ -27,6 +27,7 @@ inherit autotools
 EXTRA_OECONF = "--without-internal-glib"
 EXTRA_OECONF_class-native = "--with-internal-glib"
 EXTRA_OECONF_class-nativesdk = "--with-internal-glib"
+CFLAGS_append_class-native = " -Wno-error=format-nonliteral"
 
 acpaths = "-I ."
 
Signature · 1 line
2.8.2