summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@jci.com>2018-08-13 11:09:35 +0100
committerRichard Leitner <richard.leitner@skidata.com>2018-08-13 15:04:52 +0200
commit564305ffc2151ad6c1078785666fe7eccfedb311 (patch)
tree84626547e9410c9947120689069df5b66d47c5b1
parenta8802f2a03487ae41f3b479914a589004b2dc483 (diff)
downloadmeta-java-564305ffc2151ad6c1078785666fe7eccfedb311.tar.gz
openjdk-8: gcc-8 fix #3: working binaries
Similar to the existing gcc-6 and gcc-7 support, we need to add the same specific compiler flags to avoid miscompilation on gcc-8: -fno-lifetime-dse -fno-delete-null-pointer-checks With this, bitbake -c testimage openjdk-8-test-image works again for x86_64 and aarch64: RESULTS: RESULTS - ping.PingTest.test_ping - Testcase 964: PASSED (0.12s) RESULTS - ssh.SSHTest.test_ssh - Testcase 224: PASSED (1.20s) RESULTS - java.JavaTest.test_java_exists - Testcase -1: PASSED (0.15s) RESULTS - java.JavaTest.test_java_jar_comp_mode - Testcase -1: PASSED (41.98s) RESULTS - java.JavaTest.test_java_jar_int_mode - Testcase -1: PASSED (1.76s) RESULTS - java.JavaTest.test_java_jar_works - Testcase -1: PASSED (2.13s) RESULTS - java.JavaTest.test_java_version - Testcase -1: PASSED (1.51s) RESULTS - javac.JavacTest.test_javac_exists - Testcase -1: PASSED (0.11s) RESULTS - javac.JavacTest.test_javac_works - Testcase -1: PASSED (17.64s) SUMMARY: openjdk-8-test-image () - Ran 9 tests in 67.112s openjdk-8-test-image - OK - All required tests passed NOTE: armv5e still doesn't work with gcc v8, and other arches weren't tested. Signed-off-by: André Draszik <andre.draszik@jci.com> Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
-rw-r--r--recipes-core/openjdk/openjdk-8-common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
index 41e008f..6b2f5e7 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -216,7 +216,7 @@ EXTRA_OECONF_append = "\
216# of these changes. 216# of these changes.
217FLAGS_GCC6 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" 217FLAGS_GCC6 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
218FLAGS_GCC7 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" 218FLAGS_GCC7 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
219FLAGS_GCC8 = "-Wno-error=return-type" 219FLAGS_GCC8 = "-fno-lifetime-dse -fno-delete-null-pointer-checks -Wno-error=return-type"
220 220
221# All supported cross compilers support the compiler flags that were 221# All supported cross compilers support the compiler flags that were
222# added to make compilation with gcc6 work. But the host compiler for 222# added to make compilation with gcc6 work. But the host compiler for