-
Notifications
You must be signed in to change notification settings - Fork 387
Open
Labels
Description
Steps to reproduce the issue
$ spack install jdk
Error message
Error message
Error: ChecksumError: sha256 checksum failed for /tmp/ejaco020/spack-stage/spack-stage-jdk-21.0.2-dj3nhdk75led3e4sw66znmuhoozes224/jdk-21_linux-x64_bin.tar.gz Expected 9f1f4a7f25ef6a73255657c40a6d7714f2d269cf15fb2ff1dc9c0c8b56623a6f but got d87272944278713fc7a120cf024d2818d136b5debc750aa17045e3c6f045b867. File size = 197018367 bytes. Contents = b'\x1f\x8b\x08\x00\x98U^h\x00\x03\xec\x9d\rx\x1bG...\xf5x=^\xdfz\xfd?\x8e\xe0}@\x00\x10\xa9 \x14'. URL = https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz
Information on your system
- Spack: 1.1.0.dev0 (spack/spack@f09c960)
- Builtin repo: [email protected]:emwjacobson/spack-packages/commit/acc50514a42f874dc7f23003b5eeeb9ed91daf58
- Python: 3.9.18
- Platform: linux-rocky8-sapphirerapids
Additional information
The "21.0.2" download link in Spack uses the "latest" URL. Version 21.0.8 is currently the latest, so the hash no longer matches and throws an error when trying to install.
https://github.com/spack/spack-packages/blob/develop/repos/spack_repo/builtin/packages/jdk/package.py#L22-L26
The java archive page hosts previous versions, and their jdk-21.0.2_linux-x64_bin.tar.gz
download does match Spack's expected hash. Maybe the archive link can be used instead?
https://download.oracle.com/java/21/archive/jdk-$VERSION_linux-x64_bin.tar.gz
Pinging @justintoo as they're the listed maintainer for the jdk package :)
General information
- I have run
spack debug report
and reported the version of Spack/Python/Platform - I have run
spack maintainers <name-of-the-package>
and @mentioned any maintainers - I have uploaded the build log and environment files
- I have searched the issues of this repo and believe this is not a duplicate