JDK-8078504 : Zero fails to build
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-04-23
  • Updated: 2015-06-03
  • Resolved: 2015-04-23
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 9
9 b64Fixed
Related Reports
Relates :  
Description
The latest hs-rt tree fails to build the Zero JVM variant. One issue affects all build types, release, fastdebug, slowdebug and concerns VM_Version:

hotspot/src/cpu/zero/vm/vm_version_zero.cpp:34:29: error: no ‘void VM_Version::initialize()’ member function declared in class ‘VM_Version’
 void VM_Version::initialize() {
                             ^
hotspot/make/linux/makefiles/rules.make:156: recipe for target 'vm_version_zero.o' failed
gmake[8]: *** [vm_version_zero.o] Error 1
gmake[7]: *** [the_vm] Error 2
gmake[6]: *** [productzero] Error 2
gmake[5]: *** [generic_buildzero] Error 2
gmake[4]: *** [productzero] Error 2


The other issue only surfaced for Zero release type build:

methodHandles_zero.o: In function `MethodHandles::method_handle_entry_linkToVirtual(Method*, long, Thread*)':
hotspot/src/cpu/zero/vm/methodHandles_zero.cpp:145: undefined reference to `oopDesc::klass() const'
methodHandles_zero.o: In function `MethodHandles::method_handle_entry_linkToInterface(Method*, long, Thread*)':
hotspot/src/cpu/zero/vm/methodHandles_zero.cpp:114: undefined reference to `oopDesc::klass() const'
hotspot/src/cpu/zero/vm/methodHandles_zero.cpp:121: undefined reference to `oopDesc::klass() const'
collect2: error: ld returned 1 exit status
hotspot/make/linux/makefiles/vm.make:335: recipe for target 'libjvm.so' failed
gmake[8]: *** [libjvm.so] Error 1
gmake[7]: *** [the_vm] Error 2
Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/a00e2996316f User: lana Date: 2015-05-13 21:19:48 +0000
13-05-2015

URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/a00e2996316f User: simonis Date: 2015-04-23 15:45:54 +0000
23-04-2015

Review thread: http://mail.openjdk.java.net/pipermail/hotspot-dev/2015-April/018181.html
23-04-2015