RFR: 8350499: Minimal build fails with slowdebug builds [v2]
Ao Qi
aoqi at openjdk.org
Sat Feb 22 07:42:37 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.
Ao Qi has updated the pull request incrementally with one additional commit since the last revision:
include list order
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/23729/files
- new: https://git.openjdk.org/jdk/pull/23729/files/b5e8fce8..56004f64
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=23729&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=23729&range=00-01
Stats: 6 lines in 1 file changed: 3 ins; 3 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