Discussion:
Bug#868255: openjdk-9: Please build with --with-debug-level=slowdebug on Zero-only architectures
Add Reply
John Paul Adrian Glaubitz
2017-07-13 20:10:02 UTC
Reply
Permalink
Raw Message
Source: openjdk-9
Version: 9~b177-3
Severity: normal

Hi!

openjdk-9 currently FTBFS on architectures which exclusively rely on the Zero
VM. This happens because the JVM segfaults during build at some point [1].

The exact reason for the segmentation fault has not been discovered yet, but
we know that building with "--with-debug-level=slowdebug" instead of "=release"
resolves the issue.

Thus, I suggest building openjdk-9 on Zero-only architectures for the time
being as a work-around.

Thanks,
Adrian
[1] http://mail.openjdk.java.net/pipermail/hotspot-dev/2017-June/027117.html
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - ***@debian.org
`. `' Freie Universitaet Berlin - ***@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Andrew Haley
2017-07-17 11:10:03 UTC
Reply
Permalink
Raw Message
Post by John Paul Adrian Glaubitz
Source: openjdk-9
Version: 9~b177-3
Severity: normal
If no-one at Debian can fix this, you could send me a login.
--
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
John Paul Adrian Glaubitz
2017-07-22 18:50:01 UTC
Reply
Permalink
Raw Message
Control: reopen -1

That didn't work, unfortunately. On powerpc, it's still building with debug-level
release and consequently fails [1] as powerpc is Zero-only target:

(No custom hook found at /«PKGBUILDDIR»/src/closed/autoconf/custom-hook.m4)
cd build && MAKE_VERBOSE=y QUIETLY= LOG=debug IGNORE_OLD_CONFIG=true LIBFFI_LIBS=-lffi_pic DEBUG_BINARIES=true FULL_DEBUG_SYMBOLS=0 ZIP_DEBUGINFO_FILES=0
STRIP_POLICY=none POST_STRIP_CMD=true ../src/configure \
--host=powerpc-linux-gnu --build=powerpc-linux-gnu --with-jvm-variants=zero --with-boot-jdk=/usr/lib/jvm/java-8-openjdk-powerpc
--with-boot-jdk-jvmargs="-XX:ThreadStackSize=2240" --with-extra-cflags='-Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/«PKGBUILDDIR»=. -Wformat
-fno-stack-protector -Wno-deprecated-declarations -Wdate-time -D_FORTIFY_SOURCE=2' --with-extra-cxxflags='-Wdate-time -D_FORTIFY_SOURCE=2 -g
-fdebug-prefix-map=/«PKGBUILDDIR»=. -Wformat -fno-stack-protector -Wno-deprecated-declarations' --with-extra-ldflags='-Xlinker -z -Xlinker relro -Xlinker
-Bsymbolic-functions' \
--disable-ccache --with-jtreg=/usr --with-version-pre=Debian --with-version-opt=9~b179-1 --with-debug-level=release --enable-unlimited-crypto
--with-zlib=system --with-giflib=system --with-libpng=system --with-libjpeg=system --with-lcms=system --with-pcsclite=system --with-stdc++lib=dynamic
--disable-warnings-as-errors --disable-javac-server --with-num-cores=4
Warning: You are using legacy autoconf cross-compilation flags.
It is recommended that you use --openjdk-target instead.

From the debian/rules file:

COMMON_CONFIGURE_ARGS += \
--with-debug-level=release \
--enable-unlimited-crypto \
--with-zlib=system \
--with-giflib=system \
--with-libpng=system \
--with-libjpeg=system \
--with-lcms=system \
--with-pcsclite=system \
--with-stdc++lib=dynamic \
--disable-warnings-as-errors \
--disable-javac-server \

This has to be "--with-debug-level=slowdebug" for Zero targets.

Thus, I suggest the following change:

--- debian/rules.orig 2017-07-21 16:02:19.000000000 +0200

+++ debian/rules 2017-07-22 20:43:09.146954686 +0200

@@ -524,9 +524,11 @@

else

DEFAULT_CONFIGURE_ARGS += --with-jvm-variants=server

endif

+ DEFAULT_CONFIGURE_ARGS += --with-debug-level=release

else

DEFAULT_CONFIGURE_ARGS += --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)

DEFAULT_CONFIGURE_ARGS += --with-jvm-variants=zero

+ DEFAULT_CONFIGURE_ARGS += --with-debug-level=slowdebug

endif

ZERO_CONFIGURE_ARGS += --with-jvm-variants=zero


@@ -560,7 +562,6 @@
--with-version-opt=$(PKGVERSION) \

COMMON_CONFIGURE_ARGS += \
- --with-debug-level=release \
--enable-unlimited-crypto \
--with-zlib=system \
--with-giflib=system \
[1] https://buildd.debian.org/status/fetch.php?pkg=openjdk-9&arch=powerpc&ver=9%7Eb179-1&stamp=1500747475&raw=0
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - ***@debian.org
`. `' Freie Universitaet Berlin - ***@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Loading...