JDK-8258856 : VM build without C1/C2 fails after JDK-8243205
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2020-12-23
  • Updated: 2021-01-07
  • Resolved: 2020-12-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 17
17 b04Fixed
Related Reports
Relates :  
Description
using configure arguments '--with-boot-jdk=/mnt/share/openjdk/packages/boot-jdk/aarch64/master --with-debug-level=release --with-jvm-features=-compiler1 --with-gtest=/mnt/share/openjdk/tools/googletest'.Configuration summary:* Name:           /home/haosun01/tmp/tmp/tmp/build-without-c1
* Debug level:    release
* HS debug level: product
* JVM variants:   server
* JVM features:   server: 'aot cds compiler2 epsilongc g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs zgc'
* OpenJDK target: OS: linux, CPU architecture: aarch64, address length: 64
* Version string: 17-internal+0-adhoc.haosun01.jdksrc (17-internal)Tools summary:* Boot JDK:       openjdk version "17-internal" 2021-09-14 OpenJDK Runtime Environment (build 17-internal+0-adhoc.alahay01.gerritjdk) OpenJDK 64-Bit Server VM (build 17-internal+0-adhoc.alahay01.gerritjdk, mixed mode, sharing) (at /mnt/share/openjdk/packages/boot-jdk/aarch64/master)
* Toolchain:      gcc (GNU Compiler Collection)
* C Compiler:     Version 10.2.0 (at /usr/bin/gcc)
* C++ Compiler:   Version 10.2.0 (at /usr/bin/g++)
Build performance summary:
* Cores to use:   125
* Memory limit:   128821 MB

Error msg:

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_jvmciCompilerToVMInit.o:
/home/haosun01/tmp/tmp/tmp/jdk_src/src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp: In function '_jobjectArray* readConfiguration0(JNIEnv*, JVMCIEnv*)':
/home/haosun01/tmp/tmp/tmp/jdk_src/src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp:201:16: error: 'BootstrapJVMCI' was not declared in this scope
  201 |   do_bool_flag(BootstrapJVMCI)                                             \
      |                ^~~~~~~~~~~~~~
/home/haosun01/tmp/tmp/tmp/jdk_src/src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp:253:55: note: in definition of macro 'BOXED_BOOLEAN'
  253 | #define BOXED_BOOLEAN(name, value) name = ((jboolean)(value) ? boxedTrue : boxedFalse)
      |                                                       ^~~~~
/home/haosun01/tmp/tmp/tmp/jdk_src/src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp:390:30: note: in expansion of macro 'ADD_FLAG'
  390 | #define ADD_BOOL_FLAG(name)  ADD_FLAG(bool, name, BOXED_BOOLEAN)
      |                              ^~~~~~~~
/home/haosun01/tmp/tmp/tmp/jdk_src/src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp:201:3: note: in expansion of macro 'ADD_BOOL_FLAG'
  201 |   do_bool_flag(BootstrapJVMCI)                                             \
      |   ^~~~~~~~~~~~
/home/haosun01/tmp/tmp/tmp/jdk_src/src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp:398:3: note: in expansion of macro 'PREDEFINED_CONFIG_FLAGS'
  398 |   PREDEFINED_CONFIG_FLAGS(ADD_BOOL_FLAG, ADD_INTX_FLAG, ADD_UINTX_FLAG)
   ... (rest of output omitted)* All command lines available in /home/haosun01/tmp/tmp/tmp/build-without-c1/make-support/failure-logs.
=== End of repeated output ===




using configure arguments '--with-boot-jdk=/mnt/share/openjdk/packages/boot-jdk/aarch64/master --with-debug-level=release --with-jvm-features=-compiler2 --with-gtest=/mnt/share/openjdk/tools/googletest'.Configuration summary:
* Name:           /home/haosun01/tmp/tmp/tmp/build-jvmci
* Debug level:    release
* HS debug level: product
* JVM variants:   server
* JVM features:   server: 'aot cds compiler1 epsilongc g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs zgc'
* OpenJDK target: OS: linux, CPU architecture: aarch64, address length: 64
* Version string: 17-internal+0-adhoc.haosun01.jdksrc (17-internal)Tools summary:
* Boot JDK:       openjdk version "17-internal" 2021-09-14 OpenJDK Runtime Environment (build 17-internal+0-adhoc.alahay01.gerritjdk) OpenJDK 64-Bit Server VM (build 17-internal+0-adhoc.alahay01.gerritjdk, mixed mode, sharing) (at /mnt/share/openjdk/packages/boot-jdk/aarch64/master)
* Toolchain:      gcc (GNU Compiler Collection)
* C Compiler:     Version 10.2.0 (at /usr/bin/gcc)
* C++ Compiler:   Version 10.2.0 (at /usr/bin/g++)Build performance summary:
* Cores to use:   125
* Memory limit:   128821 MB

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_oopMap.o:
/home/ent-user/ci-scripts/jdk_src/src/hotspot/share/compiler/oopMap.cpp: In static member function 'static void OopMapSet::all_do(const frame*, const RegisterMap*, OopClosure*, void (*)(oopDesc**, oopDesc**, OopClosure*), OopClosure*)':
/home/ent-user/ci-scripts/jdk_src/src/hotspot/share/compiler/oopMap.cpp:279:11: error: 'UseJVMCICompiler' was not declared in this scope; did you mean 'UseCompiler'?
  279 |       if (UseJVMCICompiler) {
      |           ^~~~~~~~~~~~~~~~
      |           UseCompiler* All command lines available in /home/ent-user/ci-scripts/build-release/make-support/failure-logs.
=== End of repeated output ===No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.




Comments
Changeset: cdb487a6 Author: Hao Sun <hao.sun@arm.com> Committer: Jie Fu <jiefu@openjdk.org> Date: 2020-12-23 23:14:37 +0000 URL: https://git.openjdk.java.net/jdk/commit/cdb487a6
23-12-2020