Skip to content

8284206: AIX build failure by JDK-8261169 requires a short-term solution #991

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

Closed
wants to merge 1 commit into from

Conversation

takiguc
Copy link

@takiguc takiguc commented Apr 2, 2022

AIX build was failed by JDK-8261169 against jdk11u-dev.
To fix this issue, C++ compiler should migrate from XL C++ 13.1.3 to XL C++ 16.1.
Also we need to switch from xlC-based to clang-based compiler.

I want to request some backports (which are not related Harfbuzz) against AIX platform.
For short-term solution, I'd like to keep Harfbuzz 2.3.1 just for AIX platform only.

  • Copy Harfbuzz 2.3.1 to src/java.desktop/aix/native/libharfbuzz
  • Modify make/lib/Awt2dLibraries.gmk

By there changes, we can use xlC-based XL C++ 13.1.3 and 16.1.

So please backout this change before migrating to clang-based 16.1.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8284206: AIX build failure by JDK-8261169 requires a short-term solution

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk11u-dev pull/991/head:pull/991
$ git checkout pull/991

Update a local copy of the PR:
$ git checkout pull/991
$ git pull https://git.openjdk.java.net/jdk11u-dev pull/991/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 991

View PR using the GUI difftool:
$ git pr show -t 991

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk11u-dev/pull/991.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 2, 2022

👋 Welcome back itakiguchi! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr Pull request is ready for review label Apr 2, 2022
@mlbridge
Copy link

mlbridge bot commented Apr 2, 2022

Webrevs

@backwaterred
Copy link
Contributor

Thanks @takiguc! From a quick look, this seems to be to be a good short term solution. I'm curious, were you unable to build jdk11u-dev on AIX with xlc 16.1 before this change?

Depending on how the maintainers feel, it may be a good idea to push this change through to the release of OpenJDK 11.0.16, then deploy #993 once it has been thoroughly reviewed and tested. Maybe @theRealAph has thoughts on this idea?

@TheRealMDoerr
Copy link
Contributor

I think it is possible to get the backports listed in #993 into 11.0.16. That would be my preferred choice.

@sxa
Copy link
Contributor

sxa commented Apr 6, 2022

As a representative of Adoptium I'm good with holding back the harfbuzz upgrade on AIX for now. The concern I have is that moving up to xlc16 will introduce a change within the JDK11 stream that requires a different xlc runtime package to be installed on the end users' machines, therefore it could break people which would be a relatively unusual/undesirable thing to do within the JDK11 stream. FYI We already use xlc16 for JDK17+

@TheRealMDoerr
Copy link
Contributor

I don't know if changing runtime requirements is really problematic. Updating the JVM sometimes implies updating/installing libraries. The xlclang compatible runtime is not really new.

It may also be an option to support both for 11.0.16 depending on the installed compiler on the build machine:

  • Old harfbuzz with old xlc
  • New harfbuzz with xlclang

But I'll leave you guys free to decide.

@sxa
Copy link
Contributor

sxa commented Apr 6, 2022

Updating the JVM sometimes implies updating/installing libraries

IMHO that's a very unusual situation - I'm not sure I can recall when that's happened within a major version stream in the time I've been working with openjdk.

@backwaterred
Copy link
Contributor

It may also be an option to support both for 11.0.16 depending on the installed compiler on the build machine:

* Old harfbuzz with old xlc

* New harfbuzz with xlclang

I'm not opposed to modifying this PR to warn that the 'Old harfbuzz with old xlc' path is depreciated (to be removed in a future release), and keeping both options available for 11.0.16. Would this work for Adoptium @sxa?

@TheRealMDoerr
Copy link
Contributor

Updating the JVM sometimes implies updating/installing libraries

IMHO that's a very unusual situation - I'm not sure I can recall when that's happened within a major version stream in the time I've been working with openjdk.

We had updated the requirements for linux after 11.0.2 (see https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms).
Maybe most people didn't notice because it just worked on their systems. That may be different on AIX.
However, sticking with an unmaintained old lib is not a better solution in the long run IMHO. (Maybe acceptable for 11.0.16.)

@sxa
Copy link
Contributor

sxa commented Apr 7, 2022

Updating the JVM sometimes implies updating/installing libraries

IMHO that's a very unusual situation - I'm not sure I can recall when that's happened within a major version stream in the time I've been working with openjdk.

We had updated the requirements for linux after 11.0.2 (see https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms).

Wasn't that just compiler changes which have a relevance for anyone building but shouldn't have affected users? In general we still target and run on RHEL6/Cent6 levels of software and libraries so there should have been no visible impact to users of that change.

@sxa
Copy link
Contributor

sxa commented Apr 7, 2022

It may also be an option to support both for 11.0.16 depending on the installed compiler on the build machine:

I'm not opposed to modifying this PR to warn that the 'Old harfbuzz with old xlc' path is depreciated (to be removed in a future release), and keeping both options available for 11.0.16. Would this work for Adoptium @sxa?

If that's relatively easy to do it seems like it would be a good option for now.

@bridgekeeper
Copy link

bridgekeeper bot commented May 5, 2022

@takiguc This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@TheRealMDoerr
Copy link
Contributor

AIX build with xlc 16 seems to be fine after Tyler's other backports: https://ci.adoptopenjdk.net/job/AIX-jdk11-dev-build/69
I guess this PR will not be needed anymore?
Otherwise, note that the window for regular 11.0.16 changes will close on June 1st.

@takiguc
Copy link
Author

takiguc commented May 26, 2022

Hello @TheRealMDoerr .
Sorry I'm late.
I'm still testing 11.0.16 AIX build.
One jtreg testcase was failed which was reported by JDK-8287362 .
PR#8904 was submitted.

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 23, 2022

@takiguc This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 21, 2022

@takiguc This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this Jul 21, 2022
@takiguc
Copy link
Author

takiguc commented Jul 22, 2022

Sorry, I'm late.
No short-term solution is required for JDK 11.0.16 for AIX.

@RealCLanger
Copy link
Contributor

RealCLanger commented Jul 22, 2022

@takiguc, could you then please also close the JBS bug (e.g. as duplicate of the actual fix)? Thanks!

@takiguc
Copy link
Author

takiguc commented Jul 23, 2022

Thanks @RealCLanger .
JDK-8284206 was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

5 participants