← Back to team overview

openjdk team mailing list archive

Bug#968991: jlink error: Hash of jdk.management.jfr differs to expected hash

 

Package: openjdk-14-jdk-headless
Version: 14.0.2+12-1
Severity: normal

Hi!  I'm pretty much a newbie to java, so don't understand anything
about the cause of this error.  I'm trying to build QuPath from source
(see instructions at
https://qupath.readthedocs.io/en/latest/docs/reference/building.html),
but the build is failing at the jlink step.  It works fine on a
different operating system (macOS), so it seems to be something
strange with this particular openjdk package.  Below is the terminal
output (where I have replace the path with QUPATHDIR); the failure
appears to have happened in the jlink command, which gives the error
message:

Error: Hash of jdk.management.jfr (fe13cbaad9132f3aafe8db1febd951ded02ac6f6371c0b1b14fc4fc561ce3b70) differs to expected hash (8f4b914f856e98e19ec589e7c679b7ce7774a3985aa3c0ec79e5f831e0c3eec1) recorded in java.base

Best wishes,

   Julian

>>>>> begin session
erdos (master) $ ./gradlew clean build createPackage

> Configure project :
Building QuPath version 0.2.3-SNAPSHOT
Current Java version: 14
/usr/lib/jvm/java-14-openjdk-amd64
I won't try to get the last commit - consider running with '-Prequest-git-tag=true' if you want this next time (assuming Git is installed)
Operating system: Linux 5.7.0-2-amd64 amd64
Use -Ptensorflow-cpu=true or -Ptensorflow-gpu=true if you wish to include experimental TensorFlow module
Excluding project ':qupath-extension-tensorflow'
Copying license directories:
  QUPATHDIR/qupath-core/src/main/resources/licenses
  QUPATHDIR/qupath-core-processing/src/main/resources/licenses
  QUPATHDIR/qupath-extension-bioformats/src/main/resources/licenses
  QUPATHDIR/qupath-extension-openslide/src/main/resources/licenses
  QUPATHDIR/qupath-extension-pen/src/main/resources/licenses
  QUPATHDIR/qupath-extension-processing/src/main/resources/licenses
  QUPATHDIR/qupath-extension-script-editor/src/main/resources/licenses
  QUPATHDIR/qupath-extension-svg/src/main/resources/licenses
  QUPATHDIR/qupath-gui-fx/src/main/resources/licenses
Extracting native libraries from QUPATHDIR/maven/repo/org/openslide/openslide/3.4.1_2/openslide-3.4.1_2-natives-linux.jar into build/qupath
Extracting native libraries from QUPATHDIR/maven/repo/net/sourceforge/jpen/jpen/2-150301/jpen-2-150301-natives-linux.jar into build/qupath
LICENSE PATH: QUPATHDIR/license-unknown.txt
> Task :qupath-core:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :qupath-core-processing:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: QUPATHDIR/qupath-core-processing/src/main/java/qupath/opencv/ml/OpenCVDNN.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :qupath-gui-fx:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :qupath-extension-processing:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :qupath-experimental:compileJava
Note: QUPATHDIR/qupath-experimental/src/main/java/qupath/lib/gui/align/ImageAlignmentPane.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :qupath-core:compileTestJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: QUPATHDIR/qupath-core/src/test/java/qupath/lib/io/TypeAdaptersCVTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :qupath-core-processing:compileTestJava
Note: QUPATHDIR/qupath-core-processing/src/test/java/qupath/opencv/tools/OpenCVToolsTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :createRuntime FAILED
Creating default Java runtime
/usr/lib/jvm/java-14-openjdk-amd64/bin/jlink --output QUPATHDIR/build/jre --add-modules java.desktop,java.xml,java.scripting,java.sql,java.naming,jdk.unsupported,jdk.zipfs,java.net.http,java.management,jdk.management.agent --bind-services --strip-debug --no-header-files --no-man-pages --strip-native-commands --compress=2Error: Hash of jdk.management.jfr (fe13cbaad9132f3aafe8db1febd951ded02ac6f6371c0b1b14fc4fc561ce3b70) differs to expected hash (8f4b914f856e98e19ec589e7c679b7ce7774a3985aa3c0ec79e5f831e0c3eec1) recorded in java.base

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':createRuntime'.
> Process 'command '/usr/lib/jvm/java-14-openjdk-amd64/bin/jlink'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 37s
70 actionable tasks: 70 executed
<<<<< end session

-- System Information:
Debian Release: bullseye/sid
  APT prefers stretch
  APT policy: (500, 'stretch'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.7.0-2-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages openjdk-14-jdk-headless depends on:
ii  libc6                    2.31-3
ii  openjdk-14-jre-headless  14.0.2+12-1

openjdk-14-jdk-headless recommends no packages.

Versions of packages openjdk-14-jdk-headless suggests:
ii  openjdk-14-demo    14.0.2+12-1
pn  openjdk-14-source  <none>

-- no debconf information


Follow ups