Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8221763

Build fails when using --with-jvm-features=-g1gc,-jfr,-shenandoahgc

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b15

      Description

      Build is broken when configure with --with-jvm-features=-g1gc,-jfr,-shenandoahgc.

      $ sh configure --with-boot-jdk=/home/aoqi/jdk-13 --with-jvm-features=-g1gc,-jfr,-shenandoahgc
      ...

      $ make images

      Output:
      ...
      Creating support/symbols/ct.sym
      Updating support/src.zip
      /home/loongson/aoqi/jdk/src/hotspot/share/memory/metaspaceShared.cpp: In static member function 'static void MetaspaceShared::preload_and_dump(Thread*)':
      /home/loongson/aoqi/jdk/src/hotspot/share/memory/metaspaceShared.cpp:1694:42: error: invalid use of incomplete type 'class SoftRefPolicy'
             Universe::heap()->soft_ref_policy()->set_should_clear_all_soft_refs(true);
                                                ^
      In file included from /home/loongson/aoqi/jdk/src/hotspot/share/precompiled/precompiled.hpp:37:0,
                       from /home/loongson/aoqi/jdk/src/hotspot/share/memory/metaspaceShared.cpp:25:
      /home/loongson/aoqi/jdk/src/hotspot/share/gc/shared/collectedHeap.hpp:54:7: note: forward declaration of 'class SoftRefPolicy'
       class SoftRefPolicy;
             ^
      /home/loongson/aoqi/jdk/src/hotspot/share/memory/metaspaceShared.cpp:1696:42: error: invalid use of incomplete type 'class SoftRefPolicy'
             Universe::heap()->soft_ref_policy()->set_should_clear_all_soft_refs(false);
                                                ^
      In file included from /home/loongson/aoqi/jdk/src/hotspot/share/precompiled/precompiled.hpp:37:0,
                       from /home/loongson/aoqi/jdk/src/hotspot/share/memory/metaspaceShared.cpp:25:
      /home/loongson/aoqi/jdk/src/hotspot/share/gc/shared/collectedHeap.hpp:54:7: note: forward declaration of 'class SoftRefPolicy'
       class SoftRefPolicy;
             ^
      At global scope:
      cc1plus: warning: unrecognized command line option '-Wno-misleading-indentation'
      cc1plus: warning: unrecognized command line option '-Wno-implicit-fallthrough'
      cc1plus: warning: unrecognized command line option '-Wno-int-in-bool-context'
      lib/CompileJvm.gmk:175: recipe for target '/home/loongson/aoqi/jdk/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/metaspaceShared.o' failed
      make[3]: *** [/home/loongson/aoqi/jdk/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/metaspaceShared.o] Error 1
      make[3]: *** Waiting for unfinished jobs....
      make/Main.gmk:257: recipe for target 'hotspot-server-libs' failed
      make[2]: *** [hotspot-server-libs] Error 1

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

      === Output from failing command(s) repeated here ===
      * For target hotspot_variant-server_libjvm_objs_metaspaceShared.o:
      /home/loongson/aoqi/jdk/src/hotspot/share/memory/metaspaceShared.cpp: In static member function 'static void MetaspaceShared::preload_and_dump(Thread*)':
      /home/loongson/aoqi/jdk/src/hotspot/share/memory/metaspaceShared.cpp:1694:42: error: invalid use of incomplete type 'class SoftRefPolicy'
             Universe::heap()->soft_ref_policy()->set_should_clear_all_soft_refs(true);
                                                ^
      In file included from /home/loongson/aoqi/jdk/src/hotspot/share/precompiled/precompiled.hpp:37:0,
                       from /home/loongson/aoqi/jdk/src/hotspot/share/memory/metaspaceShared.cpp:25:
      /home/loongson/aoqi/jdk/src/hotspot/share/gc/shared/collectedHeap.hpp:54:7: note: forward declaration of 'class SoftRefPolicy'
       class SoftRefPolicy;
             ^
      /home/loongson/aoqi/jdk/src/hotspot/share/memory/metaspaceShared.cpp:1696:42: error: invalid use of incomplete type 'class SoftRefPolicy'
             Universe::heap()->soft_ref_policy()->set_should_clear_all_soft_refs(false);
                                                ^
         ... (rest of output omitted)

      * All command lines available in /home/loongson/aoqi/jdk/build/linux-x86_64-server-release/make-support/failure-logs.
      === End of repeated output ===

      === Make failed targets repeated here ===
      lib/CompileJvm.gmk:175: recipe for target '/home/loongson/aoqi/jdk/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/metaspaceShared.o' failed
      make/Main.gmk:257: recipe for target 'hotspot-server-libs' failed
      === End of repeated output ===

      Hint: Try searching the build log for the name of the first failed target.
      Hint: See doc/building.html#troubleshooting for assistance.

      /home/loongson/aoqi/jdk/make/Init.gmk:305: recipe for target 'main' failed
      make[1]: *** [main] Error 1
      /home/loongson/aoqi/jdk/make/Init.gmk:186: recipe for target 'images' failed
      make: *** [images] Error 2

        Attachments

          Activity

            People

            • Assignee:
              aoqi Qi Ao
              Reporter:
              aoqi Qi Ao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: