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

Support gradle --parallel option

XMLWordPrintable

    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      ArchLinux, OpenJDK 22

      A DESCRIPTION OF THE PROBLEM :
      When building using gradle with the org.gradle.parallel option set to true or the "--parallel" command line option, the build quickly fails.

      However, not setting the parallel option allows the project to be built properly.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      On a fresh cloning of OpenJFX's source code, launch a build with:
      gradle zips --parallel

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      OpenJFX should build properly with or without gradle's parallel option.
      ACTUAL -
      The build fails quickly, which could point to a dependency not handled properly between subprojectfs. First to fail is controls complaining about javafx.base not found:
      ---
      Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details

      > Configure project :
      *****************************************************************
      Unsupported gradle version 8.8 in use.
      Only version 8.5 is supported. Use this version at your own risk
      *****************************************************************
      gradle.gradleVersion: 8.8
      OS_NAME: linux
      OS_ARCH: amd64
      JAVA_HOME: /usr/lib/jvm/java-22-openjdk
      JDK_HOME: /usr/lib/jvm/java-22-openjdk
      java.runtime.version: 22
      java version: 22
      java build number: 0
      jdk.runtime.version: 22
      jdk version: 22
      jdk build number: 0
      minimum jdk version: 17
      minimum jdk build number: 35
      Java target version: 17
      GCC version: gcc13.2.0-OL6.4+1.0
      cmake version: 3.22.3
      ninja version: 1.8.2
      ant version: 1.10.5
      HAS_JAVAFX_MODULES: false
      STUB_RUNTIME: /usr/lib/jvm/java-22-openjdk
      CONF: Release
      NUM_COMPILE_THREADS: 16
      COMPILE_TARGETS: linux
      COMPILE_FLAGS_FILES: buildSrc/linux.gradle
      HUDSON_JOB_NAME: not_hudson
      HUDSON_BUILD_NUMBER: 0000
      PROMOTED_BUILD_NUMBER: 0
      PRODUCT_NAME: OpenJFX
      BUILD_TIMESTAMP: 2024-07-04-024630
      RELEASE_VERSION: 22.0.1
      RELEASE_SUFFIX: -internal
      RELEASE_VERSION_SHORT: 22.0.1-internal
      RELEASE_VERSION_LONG: 22.0.1-internal+0-2024-07-04-024630
      RELEASE_VERSION_PADDED: 22.0.1.0
      MAVEN_PUBLISH: false
      MAVEN_VERSION:
      UPDATE_STUB_CACHE: false
      Building Webkit configuration /Release/ into /home/ademers/projects/Arch/java-openjfx/src/jfx22u-22.0.1-7/modules/javafx.web/build/linux
      module: project ':apps' (buildModule=NO)
      module: project ':base' (buildModule=YES)
      module: project ':controls' (buildModule=YES)
      module: project ':fxml' (buildModule=YES)
      module: project ':graphics' (buildModule=YES)
      module: project ':media' (buildModule=YES)
      module: project ':swing' (buildModule=YES)
      module: project ':swt' (buildModule=NO)
      module: project ':systemTests' (buildModule=NO)
      module: project ':web' (buildModule=YES)

      > Task :controls:processResources FAILED
      Error occurred during initialization of boot layer
      java.lang.module.FindException: Module javafx.base not found

      CUSTOMER SUBMITTED WORKAROUND :
      Build without any parallel work.

      FREQUENCY : always


            kcr Kevin Rushforth
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: