JDK-8363895 : Minimal build fails with slowdebug builds after JDK-8354887
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 25,26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-07-23
  • Updated: 2025-08-22
  • Resolved: 2025-07-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25 JDK 26
25.0.2Fixed 26 b09Fixed
Related Reports
Causes :  
Duplicate :  
Description
Configure with '--with-jvm-variants=minimal --with-debug-level=slowdebug'.

Error message:
...
Compiling up to 136 files for BUILD_java.compiler.interim
Creating support/modules_libs/java.base/minimal/libjvm.so from 628 file(s)
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: /home/aoqi/work/openjdk/jdk/build/linux-x86_64-minimal-slowdebug/hotspot/variant-minimal/libjvm/objs/macroAssembler_x86.o: in function `AOTCodeCache::is_on_for_dump()':
/home/aoqi/work/openjdk/jdk/src/hotspot/share/code/aotCodeCache.hpp:383: undefined reference to `AOTCodeCache::_cache'
collect2: error: ld returned 1 exit status
gmake[3]: *** [lib/CompileJvm.gmk:175: /home/aoqi/work/openjdk/jdk/build/linux-x86_64-minimal-slowdebug/support/modules_libs/java.base/minimal/libjvm.so] Error 1
gmake[2]: *** [make/Main.gmk:242: hotspot-minimal-libs] Error 1
gmake[2]: *** Waiting for unfinished jobs....
Comments
[jdk25u-fix-request] Approval Request from Ao Qi The patch has a context conflict, but the content itself is clean. This patch had already been integrated into the Leyden premain branch before it was merged into the jdk master. GHA tests passed. The backport has been reviewed by Vladimir Kozlov.
24-07-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk25u/pull/37 Date: 2025-07-24 11:21:05 +0000
24-07-2025

Please also backport it to jdk25u. Not to JDK 25 GA, I think, just JDK 25u is fine.
24-07-2025

Changeset: 2da0cdad Branch: master Author: Ao Qi <aoqi@openjdk.org> Committer: Vladimir Kozlov <kvn@openjdk.org> Date: 2025-07-24 01:33:38 +0000 URL: https://git.openjdk.org/jdk/commit/2da0cdadb898efb9af827374368471102bfe0ccd
24-07-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/26436 Date: 2025-07-23 02:16:46 +0000
23-07-2025