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

Cross-compilation build-jdk fails to build with alternative jvm-variant

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 12
    • 11
    • infrastructure
    • None

      Try this on Linux x86_64 with, say, jvm-variants=zero:

      $ sh ./configure --with-debug-level=fastdebug --with-boot-jdk=/home/shade/Install/jdkX-b185/ --disable-precompiled-headers --with-jvm-variants=zero
      $ LOG=info make images

      Building target 'images' in configuration 'linux-x86_64-normal-zero-fastdebug'
      Building JVM variant 'zero' with features 'cds cmsgc dtrace g1gc jni-check jvmti management nmt parallelgc serialgc services vm-structs zero'
      <completes fine>

      Now add --openjdk-target=x86_64-linux-gnu:

      $ sh ./configure --with-debug-level=fastdebug --with-boot-jdk=/home/shade/Install/jdkX-b185/ --disable-precompiled-headers --with-jvm-variants=zero --openjdk-target=x86_64-linux-gnu
      $ LOG=info make images

      Building target 'images' in configuration 'linux-x86_64-normal-zero-fastdebug'
      Building JVM variant 'zero' with features 'cds cmsgc dtrace g1gc jni-check jvmti management nmt parallelgc serialgc services vm-structs zero'
      Processing hotspot
      Building JVM variant 'server' with features 'compiler1 compiler2 cmsgc g1gc parallelgc serialgc jni-check jvmti management nmt services vm-structs cds dtrace jvmci aot graal'
      Processing hotspot
      Compiling library_call.cpp (for libjvm.so)
      /home/shade/trunks/jdk-jdk/src/hotspot/share/opto/macroArrayCopy.cpp: In member function 'Node* PhaseMacroExpand::generate_arraycopy(ArrayCopyNode*, AllocateArrayNode*, Node**, MergeMemNode*, Node**, const TypePtr*, BasicType, Node*, Node*, Node*, Node*, Node*, bool, bool, RegionNode*)':
      /home/shade/trunks/jdk-jdk/src/hotspot/share/opto/macroArrayCopy.cpp:553:24: error: incomplete type 'BarrierSet' used in nested name specifier
           BarrierSetC2* bs = BarrierSet::barrier_set()->barrier_set_c2();
                              ^
      /home/shade/trunks/jdk-jdk/src/hotspot/share/opto/library_call.cpp: In member function 'bool LibraryCallKit::inline_native_clone(bool)':
      /home/shade/trunks/jdk-jdk/src/hotspot/share/opto/library_call.cpp:4272:26: error: incomplete type 'BarrierSet' used in nested name specifier
             BarrierSetC2* bs = BarrierSet::barrier_set()->barrier_set_c2();
                                ^
      Why does it think that "server" buildjdk is missing compiler2?

            Unassigned Unassigned
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: