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

$(JDK_IMAGE_DIR)/db/README-JDK.html - need to create directory first

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 8
    • None
    • infrastructure

      I saw a failure in my JPRT build (using full JDK 8 + closed repos):

      JPRT: [east] job notification - FAILED with job 2013-08-21-215214.iklam.8003420_dict_pd_base
      ===========================
      ------------------------------------------------------------------------------
      linux_x64_2.6-product (details from log file)
      /bin/echo Copying 'images/j2sdk-image/db/3RDPARTY'
      Copying images/j2sdk-image/db/3RDPARTY
      /bin/sh: /opt/jprt/T/P1/215214.iklam/s/build/linux-x86_64-normal-server-release/images/j2sdk-image/db/README-JDK.html: No such file or directory
      /bin/cat /opt/jprt/T/P1/215214.iklam/s/jdk/src/closed/share/db/3RDPARTY | /bin/sed "s/XXXX/2013/" > /opt/jprt/T/P1/215214.iklam/s/build/linux-x86_64-normal-server-release/images/j2sdk-image/db/3RDPARTY
      cd /opt/jprt/T/P1/215214.iklam/s/build/linux-x86_64-normal-server-release/images/j2sdk-image/db && /usr/bin//unzip -q -o /opt/jprt/T/P1/215214.iklam/s/jdk/src/closed/share/db/db-derby-10.10.1.1-bin.zip -x */index.html
        */KEYS */test/* *javadoc/* */docs/* */demo/* 2> /dev/null
      gmake[3]: *** [/opt/jprt/T/P1/215214.iklam/s/build/linux-x86_64-normal-server-release/images/j2sdk-image/db/README-JDK.html] Error 1
      gmake[3]: *** Waiting for unfinished jobs....
      cd /opt/jprt/T/P1/215214.iklam/s/build/linux-x86_64-normal-server-release/images/j2sdk-image/db && /bin/mv db-derby-*-bin/* . && /bin/rm -f -r db-derby-*-bin
      /bin/mkdir -p /opt/jprt/T/P1/215214.iklam/s/build/linux-x86_64-normal-server-release/images/_unzip
      /bin/touch /opt/jprt/T/P1/215214.iklam/s/build/linux-x86_64-normal-server-release/images/_unzip/db-derby-10.10.1.1-bin.zip.unzipped
      gmake[3]: Leaving directory `/opt/jprt/T/P1/215214.iklam/s/jdk/makefiles'
      gmake[2]: *** [images] Error 2
      gmake[2]: Leaving directory `/opt/jprt/T/P1/215214.iklam/s/jdk/makefiles'
      make[1]: *** [images-only] Error 2
      make[1]: Leaving directory `/opt/jprt/T/P1/215214.iklam/s'
      make: *** [bridgeBuild] Error 2
      ========================================

      Looks like a parallel build is happening, and the "$(JDK_IMAGE_DIR)/db/README-JDK.html target" (in jdk/makefiles/Images.gmk) was executed before the "$(MKDIR) -p $(JDK_IMAGE_DIR)/db" was executed in the "$(IMAGES_OUTPUTDIR)/_unzip/%.unzipped" target.

      The fix would be to ensure that the destination directory is created before trying to create the file.

      The same problem happens with the $(JDK_IMAGE_DIR)/db/3RDPARTY rules as well.

            Unassigned Unassigned
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: