Hi Mohamad,
thanks for your patches!
On 06/12/2019 02:33, [email protected] wrote:
From: Mohamad Noor Alim Hussin <[email protected]>
Getting a compilation error when compiling openjdk-8 due
to format-overflow. Suppress the error message by ignoring
warning messages of format-overflow.
Under what conditions are you getting a format-overflow warning?
AFAIK they should be fixed for openjdk-8 in
recipes-core/openjdk/patches-openjdk-8/hotspot-handle-gcc7-format-overflow.patch
regards;Richard.L
Signed-off-by: Mohamad Noor Alim Hussin <[email protected]>
---
recipes-core/openjdk/openjdk-8-common.inc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/recipes-core/openjdk/openjdk-8-common.inc
b/recipes-core/openjdk/openjdk-8-common.inc
index 4d8f935..566d7e7 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -177,6 +177,9 @@ FLAGS_GCC6 = "-fno-lifetime-dse
-fno-delete-null-pointer-checks"
FLAGS_GCC7 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
FLAGS_GCC8 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
+# WORKAROUND: ignore errors from new compilers
+CFLAGS_append = " -Wno-error=format-overflow"
+
# flags for -native, and for bits that need a host-tool during -cross
BUILD_CFLAGS_append = " ${@openjdk_build_helper_get_build_cflags(d)}"
BUILD_CXXFLAGS_append = " ${@openjdk_build_helper_get_build_cflags(d)}"
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel