diff options
author | André Draszik <andre.draszik@jci.com> | 2018-08-13 11:09:35 +0100 |
---|---|---|
committer | Richard Leitner <richard.leitner@skidata.com> | 2018-08-13 15:04:52 +0200 |
commit | 564305ffc2151ad6c1078785666fe7eccfedb311 (patch) | |
tree | 84626547e9410c9947120689069df5b66d47c5b1 /recipes-core | |
parent | a8802f2a03487ae41f3b479914a589004b2dc483 (diff) | |
download | meta-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>
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/openjdk/openjdk-8-common.inc | 2 |
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. |
217 | FLAGS_GCC6 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" | 217 | FLAGS_GCC6 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" |
218 | FLAGS_GCC7 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" | 218 | FLAGS_GCC7 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" |
219 | FLAGS_GCC8 = "-Wno-error=return-type" | 219 | FLAGS_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 |