Open prajwal-s-nayak opened 3 years ago
@narkedi is this the same issue you already are aware of or is this something new?
@AdamBrousseau That's true, its the same issue which is due to the mismatch in SHA's.
The error exists in 11.0.12 and 11.0.13 (latest as of today).
I cannot reproduce with 11.0.11.
It still occurs with the latest (11.0.16)
If signing occurs after the jmod is produced, it will affect the hash, so this should not be surprising. Has anyone checked builds from adoptium to see if they have the same symptoms?
Has anyone checked builds from adoptium to see if they have the same symptoms?
I believe I did and the Adoptium build worked. I think there is another issue about this somewhere where I documented that.
There's several issues at Adoptium but this one https://github.com/adoptium/temurin-build/issues/1214 seem to be a good starting point. They've fixed the issue.
I was sent here by @tresf. I barely remember any details and it also wasn't me who implemented it at AdoptOpenJDK. If I remember correctly, the key is to make an exploded image, sign it, and then to reassemble it. Basically, you run the build twice with different arguments and skip the configure step on the second pass.
https://github.com/adoptium/ci-jenkins-pipelines/blob/83d8718155a85eb2dc5cdf0005bce62c7ace0ae2/pipelines/build/common/openjdk_build_pipeline.groovy#L1375-L1461 and https://github.com/adoptium/temurin-build/blob/3d0981f31c10ca3e6e533703bb7e6e168609e32c/sbin/build.sh#L574-L577 look like the most relevant parts.
Also happens in the build available today. Minimal example repository: https://github.com/koppor/openj9-hash-issue
Current output
Error: Hash of java.rmi (03f539ebf91c81cfc7a81236d2c1109e0d050c839d03c6f757022b99a10cb819) differs to expected hash (07126a5cefcc6c19d9059cfa4b42ec832f3714a1ef89f103afc2d1ab61b79bc7) recorded in java.base
Generating jre using jlink gives error on Macos. The modules provided for --add-modules are the ones which are listed in --list-modules option. On windows and linux it works fine.
Sdk used: http://w3.hursley.ibm.com/java/jim/ibmsdks/java11/110120/macosxx8664/index.html
version: 11.0.12
Found a similar issue : https://github.com/AdoptOpenJDK/openjdk12-binaries/issues/1