New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error extracting downloaded toolchain for JvmImplementation.J9
#19382
Comments
Interesting: looking at the build scan there are a bunch of Unicode |
Conclusions so far:
|
I've tracked this down to the exact change in Ant that introduces the code which is broken. It was introduced when they switched from The buggy code is this prefix shenanigans which wasn't there until then and in case of this particular compressed tar archive doesn't behave as expected. I think that the tar.gz has some fault too, it probably has some header values which aren't correct and lead to the manifestation of the Ant bug. What to do about it... The whole Ant project, as it's set up, in my opinion, just screams "we don't really need your contribution", I got a bit discouraged when even contemplating submitting a bug report, but that's probably what we'll need to do. Or switch to some other tool for decompressing tars. I'm sure we can find something a bit more modern. Let's discuss it internally. |
We have decided to try to report this to Adoptium, maybe they'll fix the archive. |
@jbartok This doesn't match my experience: I've tested with various
Note that I start with an empty Gradle User Home in each case, to avoid getting false positives/negatives due to #19383 |
Ok, good to know. I've only tried with 11 and 16. I will double-check and report those to Adoptium too. |
@bigdaz Turns out that the archives that are NOT ok are the regular IBM Semeru Runtime ones ( The ones that work, are different somehow, IBM doesn't provide Semeru archives for Java 14 & 15. What Adoptium provides are some kind of OpenJDK ones, called I'm trying to contact IBM, let's see if they are willing to look into and do something about their Semeru archives. But, just as Ant, they really don't make it easy... Let's see if I can get anywhere with them. |
Finally found the right place to submit the issue: ibmruntimes/Semeru-Runtimes#15 |
Note to myself: in the meantime I should come up with a PR for replacing the Ant code when uncompressing the archives. |
This turns out to be somewhat tricky to fix, so will not be done for 7.4 |
I just hit this in gradle v7.3.3 with:
// ...
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
// ... Works fine on my MacBook, but breaks on our Jenkins build servers.
Anyone have a workaround yet? Edit:
|
Unable to reproduce in Github Actions:
-- https://github.com/gabrieljones/gradle-toolchain-issues/runs/4843169424 |
@gabrieljones this has nothing to do with this current issue; pls. file a separate issue for it and we'll try to investigate. |
What is the reason that this has been moved out to Gradle 8? Why do we have to wait for the next major version update? Gradle 8 is really problematic, as A) who knows when it will be coming and B) there might be various issues preventing us to moving to gradle 8. |
@jbartok Is it fixed already with Gradle 7.5? If not, are there any plans to fix it with next Gradle release before Gradle 8? |
@amankr55 changing the archive decompression library will only happen in Gradle 8, no sooner; it's too big of a change for us to do in a non-major release |
When choosing the "Open J9" Java Toolchain implementation as described in the docs, there is an error extracting the the downloaded Toolchain distribution, resulting in a build failure.
Expected Behavior
The J9 toolchain distribution should be successfully downloaded, provisioned and used.
Current Behavior
The build fails with this error occurring when extracting the toolchain:
Steps to Reproduce
main
branch of https://github.com/bigdaz/gradle-toolchain-issues./gradlew -g HOME build
Build scan URL: https://scans.gradle.com/s/ri37b7rtrdmf6/failure#1
The text was updated successfully, but these errors were encountered: