JDK-8247388 : Minimal build broken after JDK-8240245 (undefined reference to `MetaspaceShared::_use_optimized_module_handling')
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 15
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2020-06-11
  • Updated: 2024-10-17
  • Resolved: 2020-06-14
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 15 JDK 16
15 b28Fixed 16Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
$ make clean hotspot CONF=minimal-re
Building targets 'clean hotspot' in configuration 'linux-x86_64-minimal-release'
Cleaning hotspot build artifacts ... done
Cleaning jdk build artifacts ... done
Cleaning bootcycle-build build artifacts ... done
Cleaning test-results build artifacts ... done
Cleaning test-support build artifacts ... done
Cleaning test build artifacts ... done
Cleaning buildtools build artifacts ... done
Cleaning support build artifacts ... done
Cleaning support/images build artifacts ... done
Cleaning images build artifacts ... done
Cleaning make-support build artifacts ... done
Cleaning test-make build artifacts ... done
Cleaning bundles build artifacts ... done
Cleaning buildjdk build artifacts ... done
Cleaned all build artifacts.
Compiling 1 files for BUILD_JFR_TOOLS
Compiling 2 files for BUILD_JVMTI_TOOLS
Creating support/modules_libs/java.base/minimal/libjvm.so from 518 file(s)
Creating hotspot/variant-minimal/libjvm/libgtest/libgtest.a from 2 file(s)
Creating hotspot/variant-minimal/libjvm/gtest/libjvm.so from 105 file(s)
Creating hotspot/variant-minimal/libjvm/gtest/gtestLauncher from 1 file(s)
/home/aoqi/work/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/arguments.o: In function `Arguments::add_property(char const*, Arguments::PropertyWriteable, Arguments::PropertyInternal)':
/home/aoqi/work/jdk/src/hotspot/share/memory/metaspaceShared.hpp:379: undefined reference to `MetaspaceShared::_use_optimized_module_handling'
/home/aoqi/work/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/arguments.o: In function `Arguments::parse_each_vm_init_arg(JavaVMInitArgs const*, bool*, JVMFlag::Flags)':
/home/aoqi/work/jdk/src/hotspot/share/memory/metaspaceShared.hpp:379: undefined reference to `MetaspaceShared::_use_optimized_module_handling'
collect2: error: ld returned 1 exit status
gmake[3]: *** [lib/CompileJvm.gmk:152: /home/aoqi/work/jdk/build/linux-x86_64-minimal-release/support/modules_libs/java.base/minimal/libjvm.so] Error 1
gmake[3]: *** Waiting for unfinished jobs....
/home/aoqi/work/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/arguments.o: In function `Arguments::add_property(char const*, Arguments::PropertyWriteable, Arguments::PropertyInternal)':
/home/aoqi/work/jdk/src/hotspot/share/memory/metaspaceShared.hpp:379: undefined reference to `MetaspaceShared::_use_optimized_module_handling'
/home/aoqi/work/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/arguments.o: In function `Arguments::parse_each_vm_init_arg(JavaVMInitArgs const*, bool*, JVMFlag::Flags)':
/home/aoqi/work/jdk/src/hotspot/share/memory/metaspaceShared.hpp:379: undefined reference to `MetaspaceShared::_use_optimized_module_handling'
collect2: error: ld returned 1 exit status
gmake[3]: *** [lib/CompileGtest.gmk:90: /home/aoqi/work/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/gtest/libjvm.so] Error 1
gmake[2]: *** [make/Main.gmk:259: hotspot-minimal-libs] Error 2

ERROR: Build failed for targets 'clean hotspot' in configuration 'linux-x86_64-minimal-release' (exit code 2)
Comments
[~iignatyev], verified. This was fixed in jdk/jdk15.
16-07-2020

[~aoqi], could you please confirm that the defect is fixed in jdk15 w/ the patch? if it's so, please close/verify this bug as 'verified'
15-07-2020

Changeset: faaf52cc Author: Ao Qi <aoqi@openjdk.org> Date: 2020-06-13 18:59:44 +0000 URL: https://git.openjdk.java.net/lanai/commit/faaf52cc
02-07-2020

Changeset: faaf52cc Author: Ao Qi <aoqi@openjdk.org> Date: 2020-06-13 18:59:44 +0000 URL: https://git.openjdk.java.net/panama-foreign/commit/faaf52cc
02-07-2020

Changeset: faaf52cc Author: Ao Qi <aoqi@openjdk.org> Date: 2020-06-13 18:59:44 +0000 URL: https://git.openjdk.java.net/amber/commit/faaf52cc
02-07-2020

URL: https://hg.openjdk.java.net/jdk/jdk15/rev/a7ad60e19730 User: iklam Date: 2020-06-14 02:09:48 +0000
14-06-2020