← Back to team overview

openjdk team mailing list archive

Bug#868255: openjdk-9: Please build with --with-debug-level=slowdebug on Zero-only architectures

 

Interestingly, this issue does not seem to affect all architectures.

On sh4 (which is Zero-only), for example, openjdk-9 builds fine
despite being built with --with-debug-level=release [1].

So far, it's only m68k and powerpc which are affected (and presumably
powerpcspe as well which is powerpc just without FPU and Altivec).
Also, as we're building Zero on the Hotspot architectures as well and
it works there with release debug level as well.

Thus, I suggest only switching the debug level to slowdebug on m68k,
powerpc and powerpcspe:

--- debian/rules.orig   2017-07-26 16:10:01.192537186 +0200
+++ debian/rules        2017-07-27 11:39:07.527175594 +0200
@@ -548,11 +548,11 @@
        --with-version-pre=$(distribution) \
        --with-version-opt=$(PKGVERSION) \
 
-ifneq (,$(filter $(DEB_HOST_ARCH),$(hotspot_archs)))
-  DEFAULT_CONFIGURE_ARGS += --with-debug-level=release
-  ZERO_CONFIGURE_ARGS += --with-debug-level=slowdebug
+# see #868255
+ifneq (,$(filter $(DEB_HOST_ARCH),m68k powerpc powerpcspe))
+  COMMON_CONFIGURE_ARGS += --with-debug-level=slowdebug
 else
-  DEFAULT_CONFIGURE_ARGS += --with-debug-level=slowdebug
+  COMMON_CONFIGURE_ARGS += --with-debug-level=release
 endif
 
 COMMON_CONFIGURE_ARGS += \

Attaching patch.

However, before applying this, let me test whether this might resolve
by building openjdk-9 with gcc-7. We've seen gcc-6 miscompiling code
where gcc-7 worked fine [2].

> [1] https://buildd.debian.org/status/package.php?p=openjdk-9&suite=sid
> [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869373

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@xxxxxxxxxx
`. `'   Freie Universitaet Berlin - glaubitz@xxxxxxxxxxxxxxxxxxx
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- debian/rules.orig	2017-07-26 16:10:01.192537186 +0200
+++ debian/rules	2017-07-27 11:39:07.527175594 +0200
@@ -548,11 +548,11 @@
 	--with-version-pre=$(distribution) \
 	--with-version-opt=$(PKGVERSION) \
 
-ifneq (,$(filter $(DEB_HOST_ARCH),$(hotspot_archs)))
-  DEFAULT_CONFIGURE_ARGS += --with-debug-level=release
-  ZERO_CONFIGURE_ARGS += --with-debug-level=slowdebug
+# see #868255
+ifneq (,$(filter $(DEB_HOST_ARCH),m68k powerpc powerpcspe))
+  COMMON_CONFIGURE_ARGS += --with-debug-level=slowdebug
 else
-  DEFAULT_CONFIGURE_ARGS += --with-debug-level=slowdebug
+  COMMON_CONFIGURE_ARGS += --with-debug-level=release
 endif
 
 COMMON_CONFIGURE_ARGS += \

Follow ups

References