Skip to content

Conversation

@magicus
Copy link
Member

@magicus magicus commented Apr 3, 2025

After JDK-8292944, we only generate module-deps.gmk once at the start of Init.gmk. This causes make clean <some other target> to first generate and then remove module-deps.gmk after which the rest of the build proceeds without a module-deps.gmk, causing problems with dependencies.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8349665: Make clean removes module-deps.gmk (Bug - P3)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24406/head:pull/24406
$ git checkout pull/24406

Update a local copy of the PR:
$ git checkout pull/24406
$ git pull https://git.openjdk.org/jdk.git pull/24406/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 24406

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24406.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 3, 2025

👋 Welcome back ihse! 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
Copy link

openjdk bot commented Apr 3, 2025

@magicus This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8349665: Make clean removes module-deps.gmk

Reviewed-by: erikj

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 1 new commit pushed to the master branch:

  • 11ad173: 8354944: Remove unnecessary PartiallyOrderedSet.nodes

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk
Copy link

openjdk bot commented Apr 3, 2025

@magicus The following label will be automatically applied to this pull request:

  • build

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the build build-dev@openjdk.org label Apr 3, 2025
@magicus
Copy link
Member Author

magicus commented Apr 3, 2025

Due to known upcoming merge conflicts, I will not try to integrate this until after JDK-8350774. They are not strictly dependent on each other, but JDK-8350774 will cause a merge conflict for this patch, and vice versa.

@magicus magicus force-pushed the fix-clean-module-deps branch from 1689fa7 to f8a50cd Compare April 4, 2025 14:31
@magicus magicus marked this pull request as ready for review April 4, 2025 14:31
@openjdk openjdk bot added the rfr Pull request is ready for review label Apr 4, 2025
@mlbridge
Copy link

mlbridge bot commented Apr 4, 2025

Webrevs

@erikj79
Copy link
Member

erikj79 commented Apr 7, 2025

This doesn't seem to solve the issue for me. Running make clean java.base-java fails for me and it looks like it starts compiling all the interim langtools modules at once and getting errors like this:

Compiling up to 136 files for BUILD_java.compiler.interim
Compiling up to 360 files for BUILD_jdk.compiler.interim
Compiling up to 145 files for BUILD_jdk.internal.md.interim
Compiling up to 213 files for BUILD_jdk.javadoc.interim
Compiling up to 17 files for BUILD_JAVAC_SERVER
/Users/erik/dev/jdk/build/macosx-aarch64/buildtools/gensrc/jdk.internal.md.interim/module-info.java:51: error: module not found: jdk.compiler.interim
    requires jdk.compiler.interim;

@magicus magicus marked this pull request as draft April 7, 2025 20:34
@magicus
Copy link
Member Author

magicus commented Apr 7, 2025

Dang it! I tried a lot of approaches in a throwaway branch, and I thought I kept the correct one and tested it. Back to the drawing board, I guess. Thanks for double checking!

@openjdk openjdk bot removed the rfr Pull request is ready for review label Apr 7, 2025
@magicus magicus marked this pull request as ready for review May 27, 2025 20:43
@magicus
Copy link
Member Author

magicus commented May 27, 2025

Now I believe it should work for real this time.

@openjdk openjdk bot added the rfr Pull request is ready for review label May 27, 2025
@magicus magicus marked this pull request as draft May 27, 2025 20:53
@magicus
Copy link
Member Author

magicus commented May 27, 2025

Well it works, but causes a regression of JDK-8292944 ("make help" as the first target after configure). sigh

@openjdk openjdk bot removed the rfr Pull request is ready for review label May 27, 2025
@magicus
Copy link
Member Author

magicus commented May 27, 2025

It turns out there had already been a partial regression of JDK-8292944 by JDK-8349515... This is now fixed as well.

Third time's a charm! Now this should really, really work. (And we should really, really have a regression testing framework for the build system 😭).

@magicus magicus marked this pull request as ready for review May 27, 2025 21:11
@openjdk openjdk bot added the rfr Pull request is ready for review label May 27, 2025
@openjdk openjdk bot added the ready Pull request is ready to be integrated label May 27, 2025
@magicus
Copy link
Member Author

magicus commented May 27, 2025

/integrate

@openjdk
Copy link

openjdk bot commented May 27, 2025

Going to push as commit f25f4a3.
Since your change was applied there have been 2 commits pushed to the master branch:

  • 2e8b195: 8354078: Implement JEP 521: Generational Shenandoah
  • 11ad173: 8354944: Remove unnecessary PartiallyOrderedSet.nodes

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label May 27, 2025
@openjdk openjdk bot closed this May 27, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels May 27, 2025
@openjdk
Copy link

openjdk bot commented May 27, 2025

@magicus Pushed as commit f25f4a3.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@magicus magicus deleted the fix-clean-module-deps branch May 27, 2025 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build build-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

2 participants