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

(fs) Files.getFileStore fails with "Mount point not found" in chroot environment

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b137

      Description

      Matthias Klose reports an issue building JDK 9 on Linux in a chroot environment then the kernel is >= 3.19

      http://mail.openjdk.java.net/pipermail/jdk9-dev/2016-August/004770.html

      It manifests as a build failure because jlink uses FileStore.

        Issue Links

          Activity

          Hide
          bpb Brian Burkhalter added a comment -
          I was able to reproduce the failure in a chroot on Ubuntu 16.04 desktop amd64 following the instructions at https://help.ubuntu.com/community/BasicChroot with

          sudo mount -o bind /proc /var/chroot/proc

          in the "Setting-up the chroot" section replaced with

          sudo mount -t proc none /var/chroot/proc

          and doing 'make images':

          Error: jdk.tools.jlink.plugin.PluginException: java.io.IOException: Mount point not found
          InterimImage.gmk:47: recipe for target '/home/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java' failed
          make[3]: *** [/home/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java] Error 1
          make[3]: *** Deleting file '/home/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java'
          make[2]: *** [interim-image] Error 1
          make[2]: *** Waiting for unfinished jobs....
          make/Main.gmk:386: recipe for target 'interim-image' failed

          In the foregoing "/home" is actually "/var/chroot/home."
          Show
          bpb Brian Burkhalter added a comment - I was able to reproduce the failure in a chroot on Ubuntu 16.04 desktop amd64 following the instructions at https://help.ubuntu.com/community/BasicChroot with sudo mount -o bind /proc /var/chroot/proc in the "Setting-up the chroot" section replaced with sudo mount -t proc none /var/chroot/proc and doing 'make images': Error: jdk.tools.jlink.plugin.PluginException: java.io.IOException: Mount point not found InterimImage.gmk:47: recipe for target '/home/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java' failed make[3]: *** [/home/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java] Error 1 make[3]: *** Deleting file '/home/jdk9-dev/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java' make[2]: *** [interim-image] Error 1 make[2]: *** Waiting for unfinished jobs.... make/Main.gmk:386: recipe for target 'interim-image' failed In the foregoing "/home" is actually "/var/chroot/home."
          Show
          bpb Brian Burkhalter added a comment - - edited Review thread: http://mail.openjdk.java.net/pipermail/nio-dev/2016-September/003876.html Thread where issue was reported continues here: http://mail.openjdk.java.net/pipermail/jdk9-dev/2016-September/004895.html
          Hide
          bpb Brian Burkhalter added a comment -
          The patch fixes the build failure but does not address the inability to obtain a FileStore. A separate issue JDK-8166162 was filed to track that specific problem.
          Show
          bpb Brian Burkhalter added a comment - The patch fixes the build failure but does not address the inability to obtain a FileStore. A separate issue JDK-8166162 was filed to track that specific problem.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/2e1e4c9c8af2
          User: bpb
          Date: 2016-09-15 20:27:51 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/2e1e4c9c8af2 User: bpb Date: 2016-09-15 20:27:51 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/2e1e4c9c8af2
          User: lana
          Date: 2016-09-21 20:18:03 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/2e1e4c9c8af2 User: lana Date: 2016-09-21 20:18:03 +0000

            People

            • Assignee:
              bpb Brian Burkhalter
              Reporter:
              alanb Alan Bateman
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: