Skip to content
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

Switch builds to using VS2017 on Windows #466

Open
sxa opened this issue Sep 3, 2018 · 20 comments
Open

Switch builds to using VS2017 on Windows #466

sxa opened this issue Sep 3, 2018 · 20 comments
Assignees
Labels
help wanted Issues that need an extra hand helping out with them important High priority issues that are not buildbreakers but may still require more attention than others windows Issues that affect or relate to the WINDOWS OS

Comments

@sxa
Copy link
Member

sxa commented Sep 3, 2018

Dependent on adoptium/infrastructure#448

@sxa sxa added the windows Issues that affect or relate to the WINDOWS OS label Sep 3, 2018
@sxa sxa added the important High priority issues that are not buildbreakers but may still require more attention than others label Sep 18, 2018
@karianna karianna added this to the 2.x.x milestone Sep 29, 2018
@karianna karianna removed this from the 2.x.x milestone Jan 10, 2019
@ali-ince
Copy link
Contributor

I have created an upstream PATCH request to enable us to use latest VS2017 with side-by-side minor version MSVC toolsets.

http://mail.openjdk.java.net/pipermail/build-dev/2019-March/025126.html

@karianna karianna added this to the March 2019 milestone Mar 10, 2019
@karianna karianna modified the milestones: March 2019, April 2019 Apr 1, 2019
@ali-ince
Copy link
Contributor

Status update about getting builds to VS2017;

  1. All jdk12 and jdk13 builds are already being built on vs2017.
  2. All jdk11 builds, except x86 hotspot are built using vs2017. x86 builds are dependent on an upstream patch and once it is applied on jdk11u project, we’ll be switching for that one as well.
  3. jdk8u hotspot and openj9 builds are currently being built by vs2013 and vs2010 respectively. We’re working on a patch for hotspot to support vs2017.

@karianna karianna modified the milestones: April 2019, May 2019 May 1, 2019
@karianna karianna modified the milestones: May 2019, June 2019 Jun 3, 2019
@karianna karianna modified the milestones: June 2019, July 2019 Jul 5, 2019
@M-Davies
Copy link
Contributor

With the resolution of @ali-ince bug https://bugs.openjdk.java.net/browse/JDK-8220445 and infra issue 448, can this be closed? @sxa

@sxa
Copy link
Member Author

sxa commented May 18, 2020

We are not building on VS2017 for all builds, therefore no.

@karianna karianna added the help wanted Issues that need an extra hand helping out with them label May 23, 2020
@karianna
Copy link
Contributor

We are not building on VS2017 for all builds, therefore no.

@d3r3kk Is this something our group can look at? Currently we're building using a VS2013 toolchain for Java 8 builds. We'd like to move that to VS2017 - not sure if it will work out of the box or some build script changes would need to be made upstream.

@sxa
Copy link
Member Author

sxa commented May 27, 2020

OpenJ9/JDK8 is currently building with VS2010 - they generally track the openjdk supported levels which is why they haven't actively moved up.

I'm not sure where the official source of the build prereqs is but both of these documents list VS2010 (One says 2013 as an option):

@andrew-m-leonard
Copy link
Contributor

OpenJDK have fixed the build failure for VS2010/13: https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/097f47e7fe97

@sxa
Copy link
Member Author

sxa commented Jun 11, 2020

@d3r3kk @karianna Any update on this? Are we planning to progress it? OpenJ9 are still using VS2010 on JDK8 and do not plan to move up but we could possible remove our VS2013 requirement if we moved those builds up to VS2017 (assuming it was safe to do so without introducing any backwards compatibility issues!)

@d3r3kk
Copy link
Contributor

d3r3kk commented Jul 15, 2020

Sorry for the late update @sxa - yes, I am slowly working through some solutions to this problem at the moment.

Not least of which is getting the VS2013/17/19 installation to be more reasonable for our build purposes!

@pshipton
Copy link
Contributor

pshipton commented Oct 27, 2020

Note that OpenJ9 Java 8 builds are moving to VS2013, as VS2010 is out of support.
eclipse-openj9/openj9#10892
We'd move to VS2015 or VS2017 if possible, but they are currently shown as not working.
https://github.com/ibmruntimes/openj9-openjdk-jdk8/blob/openj9/common/autoconf/toolchain_windows.m4#L61

@pshipton
Copy link
Contributor

pshipton commented Oct 27, 2020

Actually, I think Adopt has to be ready to switch to VS2013 before ibmruntimes/openj9-openjdk-jdk8#449 and eclipse-openj9/openj9#10892 are merged, otherwise the builds will fail.

@sxa
Copy link
Member Author

sxa commented Oct 29, 2020

@pshipton Can you confirm if we can update Adopt's builds now to build on VS2013 or do we have to co-ordinate so that all three (my adopt change plus the two you mentioned) go in together? I have a PR ready. (Memo to self: That file really needs a cleanup...)

@pshipton
Copy link
Contributor

@sxa The change needs to be coordinated. The msvcp120.dll is hard coded, the switch won't work without this code change. Once we make the code change, everybody needs to switch. I'm waiting for the all clear from IBM, and then we can deliver the code and make the switch. I think we can target next week.

@karianna
Copy link
Contributor

@d3r3kk - bumping up your food chain

@sxa
Copy link
Member Author

sxa commented Oct 29, 2020

Related: #1026

@sxa
Copy link
Member Author

sxa commented Feb 3, 2021

@karianna @d3r3kk Are we going to progress this? Somebody speak to me please!

@pshipton
Copy link
Contributor

pshipton commented Feb 3, 2021

@sxa Did this not already occur? The OpenJ9 changes for jdk8 were delivered long ago. ibmruntimes/openj9-openjdk-jdk8#449
and for Adopt I see #2191

@karianna
Copy link
Contributor

karianna commented Feb 4, 2021

I don't think Hotspot has been updated to build on 2017 for Java 8 yet (needs fixes upstream IIRC).

@pshipton
Copy link
Contributor

pshipton commented Feb 4, 2021

Agree with that. If OpenJDK is updated to support building jdk8 with VS2017, then OpenJ9 would change to build with VS2017 as well, instead of VS2013.

@sxa
Copy link
Member Author

sxa commented Feb 4, 2021

I don't think Hotspot has been updated to build on 2017 for Java 8 yet (needs fixes upstream IIRC).

I was assuming from @d3r3kk 's comment that he was investigating JDK8, but since I've not seen any progress or response I'm going to assume it's not being actively worked so will close this once I've determined why https://github.com/AdoptOpenJDK/openjdk-build/blob/fd268fb8de5dddda558714c7d49304c1a075e6c2/build-farm/platform-specific-configurations/windows.sh#L114 doesn't seem to have taken effect (Since JDK11/HS/Win32 still seems to be using VS2013)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issues that need an extra hand helping out with them important High priority issues that are not buildbreakers but may still require more attention than others windows Issues that affect or relate to the WINDOWS OS
Projects
None yet
Development

No branches or pull requests

7 participants