From 52fb41cec7d5125bb11c718705158696ffef11f8 Mon Sep 17 00:00:00 2001 From: Richard Leitner Date: Thu, 14 Jun 2018 17:44:57 +0200 Subject: openjdk-8: fix build for gcc8.x Currently oe-core/YoctoProject migrated to gcc8.x. This update broke our openjdk-8 and openjre-8 build. This patch avoids this problem by disabling the problematic gcc warnings and errors. Signed-off-by: Richard Leitner --- .../patches-openjdk-8/hotspot_fix_gcc8x_build.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 recipes-core/openjdk/patches-openjdk-8/hotspot_fix_gcc8x_build.patch (limited to 'recipes-core/openjdk/patches-openjdk-8') diff --git a/recipes-core/openjdk/patches-openjdk-8/hotspot_fix_gcc8x_build.patch b/recipes-core/openjdk/patches-openjdk-8/hotspot_fix_gcc8x_build.patch new file mode 100644 index 0000000..1a406f2 --- /dev/null +++ b/recipes-core/openjdk/patches-openjdk-8/hotspot_fix_gcc8x_build.patch @@ -0,0 +1,21 @@ +From: Richard Leitner +Date: Thu, 14 Jun 2018 23:42:11 +0200 +Subject: [PATCH] openjdk-8: hotspot: fix gcc8 compilation + +As oe-core/yocto-project master migrated to gcc8.x we need to support this. +Therefore disable following gcc warnings/errors which caused the build to fail: + + stringop-overflow + + return-type +--- + +--- a/hotspot/make/linux/makefiles/gcc.make ++++ b/hotspot/make/linux/makefiles/gcc.make +@@ -197,7 +197,7 @@ + endif + + # Compiler warnings are treated as errors +-WARNINGS_ARE_ERRORS = -Werror ++WARNINGS_ARE_ERRORS = -Werror -Wno-stringop-overflow -Wno-error=return-type + + ifeq ($(USE_CLANG), true) + # However we need to clean the code up before we can unrestrictedly enable this option with Clang -- cgit v1.2.3-54-g00ecf