RFR: 8350499: Minimal build fails with slowdebug builds

Ao Qi aoqi at openjdk.org
Fri Feb 21 17:40:04 UTC 2025


minimal build fails with slowdebug builds after [8311208](https://github.com/openjdk/jdk/commit/498a58244d79) (permissions required):


Building target 'images' in configuration 'linux-x86_64-minimal-slowdebug'
/usr/bin/ld: /home/aoqi/work/theaoqi/jdk/build/linux-x86_64-minimal-slowdebug/hotspot/variant-minimal/libjvm/objs/verifier.o: in function `Verifier::verify(InstanceKlass*, bool, JavaThread*)':
/home/aoqi/work/theaoqi/jdk/src/hotspot/share/classfile/verifier.cpp:239: undefined reference to `SystemDictionaryShared::warn_excluded(InstanceKlass*, char const*)'
/usr/bin/ld: /home/aoqi/work/theaoqi/jdk/src/hotspot/share/classfile/verifier.cpp:240: undefined reference to `SystemDictionaryShared::set_excluded(InstanceKlass*)'
collect2: error: ld returned 1 exit status
gmake[3]: *** [lib/CompileJvm.gmk:174: /home/aoqi/work/theaoqi/jdk/build/linux-x86_64-minimal-slowdebug/support/modules_libs/java.base/minimal/libjvm.so] Error 1
gmake[2]: *** [make/Main.gmk:236: hotspot-minimal-libs] Error 2

ERROR: Build failed for target 'images' in configuration 'linux-x86_64-minimal-slowdebug' (exit code 2) 


It may be because the systemDictionaryShared.cpp file is [excluded](https://github.com/openjdk/jdk/blob/bd8ad309b59bceb3073a8d6411cca74e73508885/make/hotspot/lib/JvmFeatures.gmk#L130) when using slowdebug and minimal builds.

-------------

Commit messages:
 - 8350499: Minimal build fails with slowdebug builds

Changes: https://git.openjdk.org/jdk/pull/23729/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23729&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8350499
  Stats: 4 lines in 1 file changed: 4 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/23729.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23729/head:pull/23729

PR: https://git.openjdk.org/jdk/pull/23729


More information about the hotspot-runtime-dev mailing list