-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Add gtest support on jdk15+ #4134
base: master
Are you sure you want to change the base?
Conversation
I worte it quite clumsy. To keep the build offline, but still built gtests by default, I would like to see something like
where |
I think download should be kept in prepareWorkspace.sh, but gtest support can be made conditional.. |
Thanks for feedback, I have made gtest optional. Tested (same way as originally + with |
Thanx!! Looks nice to me :) |
Just side note, you tried that image in jtregs then, right? |
@zzambers Why the checks had not run the build of openjdk? Maybe you need to refresh yours actions setup? |
I have not tried to run jtregs with generated image, just examined that libraries for gtest are there. |
Results in GHA appeared, there i build failure on windows Error:
Details: (Could be bug in older VS (2019), if other systems and also newer VS are not affected. Not yet sure, what to do about it.) |
Correction:
|
I have done quite a lot of testing locally with
However, after I updated
Btw jdk21u is also affected (but latest jdk is not). I have tried to manually apply some changes to relevant files done in newer jdks (to see if I can work around this somehow). There are only small changes (things like sorting includes...) Did not help (maybe changes in another included files?). There was one change JDK-8347909, which does something about precompiled headers. This gave me an idea to try to run build with Summary:
|
I am now in process of bisecting jdk commit, which fixes this issue on newer jdks. (hopefully it will put more light on the problem) |
And the winner is JDK-8317132 :) I don't see any change to relevant code, so it seems like adding That is interesting, I would expect permissive mode to be more forgiving and not to fail, where strict/standard-conforming mode passes. I think, it is probably not supposed to be like that and that it is likely bug in VS compiler. I'll probably fill issue to Visual Studio later. |
I have filled issue for Visual Studio: https://developercommunity.visualstudio.com/t/OpenJDK-jdk17u-build-failure-with-VS20/10860335 |
@zzambers Thanks for you posting feedback. Sorry for leaving a comment here. I saw your feedback and I think it might be more convenient to communicate here. I think: And the stricter Could you please provide a simple example of this problem? It can be a Thanks, |
Adds gtest support for testimage on jdk15+. (in-tree gtest was removed in jdk15) This is needed for some hotspot tests.
Fixes #3956
Testing:
Tested locally on rhel-8 using command:
./makejdk-any-platform.sh -J /usr/lib/jvm/java-17-openjdk --use-adoptium-devkit gcc-11.3.0-Centos7.9.2009-b03 --build-variant temurin jdk17u
( fixed the issue, build passed, gtest files appeared in test-image in
hotspot/gtest
)