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

Syntax error in TOOLCHAIN_CHECK_COMPILER_VERSION

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • infrastructure
    • None
    • b131
    • generic
    • generic

      Configuring JDK build on Linux, I see the following messages in the output:

      <path/to/hs>/closed/autoconf/generated-configure.sh: line 51600: test: -ge: unary operator expected
      <path/to/hs>/closed/autoconf/generated-configure.sh: line 51886: test: -ge: unary operator expected

      The lines correspond to this line in TOOLCHAIN_CHECK_COMPILER_VERSION:

        if test [$]ARG_PREFIX[COMPARABLE_ACTUAL_VERSION] -ge $COMPARABLE_REFERENCE_VERSION ; then

      which looks like this in the generated-configure.sh:

        if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then

      This is on Ubuntu 14.04 - bash 4.3.11, in case that matters.

            andrew Andrew Hughes
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: