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

openjdk 16 #72535

Closed
wants to merge 13 commits into from
Closed

openjdk 16 #72535

wants to merge 13 commits into from

Conversation

jonchang
Copy link
Contributor

@jonchang jonchang commented Mar 5, 2021

This is still in release candidate stage but we might as well get to work fixing all the formulae. Development has moved to GitHub so we have the joy of maintaining 3 different repository systems for openjdk@8, openjdk@11 and openjdk.

While I'm here, start upstreaming some Linux changes.

  • Have you followed the guidelines for contributing?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

@jonchang jonchang added prerelease-testing Pull request from upstream, testing a pre-release with homebrew dependencies do not merge labels Mar 5, 2021
@BrewTestBot BrewTestBot added the automerge-skip `brew pr-automerge` will skip this pull request label Mar 5, 2021
@jonchang
Copy link
Contributor Author

jonchang commented Mar 5, 2021

Note to self: use openjdk/jdk pr 2200 for arm testing

Formula/openjdk.rb Outdated Show resolved Hide resolved
@SMillerDev
Copy link
Member

On ARM

/private/tmp/openjdk-20210306-55935-5nxkb5/jdk16-jdk-16-36/src/hotspot/share/runtime/globals.hpp:36:10: fatal error: 'globals_bsd_aarch64.hpp' file not found
436
#include OS_CPU_HEADER(globals)
437
         ^~~~~~~~~~~~~~~~~~~~~~

@Bo98
Copy link
Member

Bo98 commented Mar 8, 2021

JEP 391 did not make it into OpenJDK 16. If we still want to use the Apple Silicon changes, we'll need to incorporate it as a patch. openjdk/jdk#2200 contains the most recent changes in regards to this (though perhaps better to prepare a patch closer to release so we get the latest bugfixes that may be added to the PR between now and then). The branch on jdk-sandbox is a little old now.

@jonchang
Copy link
Contributor Author

jonchang commented Mar 8, 2021

Yeah, this was more to check which of the revdeps would have issues. I'll prepare a ARM build after release. I'll probably have to pull one of our M1s out of rotation so I can build it interactively.

@jonchang
Copy link
Contributor Author

jonchang commented Mar 8, 2021

brew livecheck openjdk --full-name --debug
brew install --build-from-source apache-forrest
brew install --build-from-source carrot2
brew install --build-from-source dafny
brew install --build-from-source emscripten
brew test --retry --verbose google-java-format
brew test --retry --verbose gradle
brew test --retry --verbose gradle-profiler
brew test --retry --verbose kotlin
brew install --build-from-source kotlin-language-server
brew install --build-from-source micronaut
brew test --retry --verbose micronaut
brew install --build-from-source pdftk-java
brew test --retry --verbose redpen
brew test --retry --verbose ringojs
brew install --build-from-source smali
brew install --build-from-source swagger-codegen
brew test --retry --verbose swagger2markup-cli

@Moisan Moisan mentioned this pull request Mar 9, 2021
5 tasks
@Moisan
Copy link
Member

Moisan commented Mar 9, 2021

emscripten has been bumped from 2.0.14 to 2.0.15 since the last CI run. It might fix itself upon the next rebase. 🤞

@Moisan
Copy link
Member

Moisan commented Mar 9, 2021

micronaut harcodes the JDK versions they support, which does not include 16 at this time. Either we wait for their new release, or we fall back on openjdk@11.

@Moisan
Copy link
Member

Moisan commented Mar 9, 2021

ringojs is failing because of its dependency on Rhino and this issue: mozilla/rhino#462

@mkfmnn
Copy link

mkfmnn commented Mar 17, 2021

@cemo
Copy link

cemo commented Mar 24, 2021

@jonchang would you please update this PR?

@Moisan
Copy link
Member

Moisan commented Apr 4, 2021

build failures on 11.0:

  • carrot2
  • dafny
  • dartsim
  • kotlin-language-server
  • micronaut
  • openmodelica: openmodelica 1.17.0 #73671
  • pdfpc
  • pdftk-java
  • smali
  • swagger-codegen

test failures on 11.0:

@Moisan
Copy link
Member

Moisan commented Apr 4, 2021

For ARM, openjdk doesn't build.

@paperchalice paperchalice mentioned this pull request Apr 18, 2021
5 tasks
@SMillerDev SMillerDev removed the prerelease-testing Pull request from upstream, testing a pre-release with homebrew dependencies label Apr 24, 2021
@SMillerDev
Copy link
Member

Does anyone know if there is a patch to make OpenJDK 16 build on ARM? Or should we still be shipping the preview?

@Moisan
Copy link
Member

Moisan commented Apr 26, 2021

There is currently a new openjdk16 release: jdk-16.0.1-ga

@chenrui333 chenrui333 mentioned this pull request Apr 29, 2021
@cho-m cho-m mentioned this pull request Apr 30, 2021
@cho-m

This comment has been minimized.

@Moisan
Copy link
Member

Moisan commented Apr 30, 2021

Thanks @cho-m for the summary. I rebased the PR on top of master.

@Moisan Moisan mentioned this pull request May 3, 2021
5 tasks
@cho-m
Copy link
Member

cho-m commented May 4, 2021

ARM Failure:

  • Commits for build not backported to JDK16. Will need to use JDK17-ea

Failures possibly related to JDK or Java dependencies:

Attempting downgrade to JDK@11

JDK failures requiring formula updates:

Separate failures that don't seem related to JDK:

Formula/openjdk.rb Outdated Show resolved Hide resolved
@carlocab
Copy link
Member

Only gtkspell3 has an ARM bottle from the failures on ARM, as far as I can tell.

@cho-m
Copy link
Member

cho-m commented May 30, 2021

@carlocab I think it is unrelated to OpenJDK. Failure is due to missing build dependency (maybe due to changes in another dependency). I opened PR fix in #78388

@cho-m
Copy link
Member

cho-m commented May 31, 2021

I think we are good to merge at this point. Others on this thread can chime in for final review.


Big Sur:

Error: 2 failed steps!
brew install --build-from-source opensearch
brew install --build-from-source pdfpc

Catalina:

Error: 4 failed steps!
brew install --build-from-source opensearch
brew install --build-from-source pdfpc
brew test --retry --verbose subversion
brew test --retry --verbose subversion

Mojave

Error: 2 failed steps!
brew install --build-from-source opensearch
brew install --build-from-source subversion

@SMillerDev
Copy link
Member

Looks good to me

@BrewTestBot
Copy link
Member

:shipit: @carlocab has triggered a merge.

@MikeMcQuaid
Copy link
Member

Nice work here @jonchang and everyone 👏🏻!

@SMillerDev
Copy link
Member

@carlocab carlocab mentioned this pull request May 31, 2021
5 tasks
@Toberumono
Copy link

@bdw429s This is a bit late, but my attempts at creating a PR for Apache Felix revealed a cascading number of reflection issues. Unfortunately, resorting to the --add-opens flags will be the only way to run on Java versions higher than 11 until Felix gets around to actually fixing their codebase.

In general, this means that anything depending on Apache Felix will need to remain pinned to Java 11 for the foreseeable future.

@bdw429s
Copy link
Contributor

bdw429s commented Jun 1, 2021

@Toberumono Thanks for giving it a go. I'm fine with pinning to Java 11 for now. It is the current LTS and hopefully the Felix devs will get with the program soon.

@carlocab carlocab mentioned this pull request Jun 17, 2021
@github-actions github-actions bot added the outdated PR was locked due to age label Jul 2, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge-skip `brew pr-automerge` will skip this pull request outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.