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

FREE_SPACE check in install/make/common/Sanity.gmk fails on MacOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 9
    • 8
    • infrastructure
    • x86
    • os_x

      The macro DF is undefined in the MacOS build, resulting in two bogus warnings in the build log.

      First warning caused by evaluating "$(shell $(DF) -kP $(OUTPUTDIR) | $(TAIL) -1 | $(NAWK) '{print $$4;}')"

      /bin/sh: - : invalid option
      Usage: /bin/sh [GNU long option] [option] ...
      /bin/sh [GNU long option] [option] script-file ...
      GNU long options:
      --debug
      --debugger
      --dump-po-strings
      --dump-strings
      --help
      --init-file
      --login
      --noediting
      --noprofile
      --norc
      --posix
      --protected
      --rcfile
      --restricted
      --verbose
      --version
      --wordexp
      Shell options:
      -irsD or -c command or -O shopt_option (invocation only)
      -abefhkmnptuvxBCHP or -o option


      FREE_SPACE has no value due to the first warning.

      Second warning is caused by evaluating "@if [ -d $(OUTPUTDIR) -a $(FREE_SPACE) -lt $(MIN_FREE_DISK) ]; then"

      /bin/sh: line 0: [: too many arguments



      Both are generated by the free disk space checking in install/make/common/Sanity.gmk:

            tbell Tim Bell
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: