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

configure script fails to parse GCC version correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 8-pool
    • 8u172
    • infrastructure
    • generic
    • linux

      If we build GCC out of the box from source, it's version string is not correctly parsed by the configure scripts, this can lead to erroneous warnings and failure to pass the correct flags to GCC.

      For example, if we build GCC 7.3.0 from the gnu.org soruces, the version string will look like this:

      ===
      $ gcc --version
      gcc (GCC) 7.3.0
      Copyright (C) 2017 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions. There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      ===

      And our configure script will assign "g++ (GCC) 7.3.0" to CXX_VERSION. when I should have assigned "7.3.0".

      This does not appear to be an issue for JDK 9 and later.

            dbuck David Buck
            dbuck David Buck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: