RFR: 8349665: Make clean removes module-deps.gmk
Erik Joelsson
erikj at openjdk.org
Mon Apr 7 13:59:59 UTC 2025
On Thu, 3 Apr 2025 09:18:07 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
> After [JDK-8292944](https://bugs.openjdk.org/browse/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.
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;
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24406#issuecomment-2783436352
More information about the build-dev
mailing list