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

Build needs additional flags to compile with GCC 6

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u72, 9
    • Fix Version/s: 9
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b112
    • CPU:
      generic
    • OS:
      linux

      Backports

        Description

        A number of additional flags need to be passed to the C and C++ compiler for OpenJDK to compile with GCC 6:

        1. The C++ standard needs to be explicitly lowered to the old default of gnu++98. With the new GCC default of C++14, the build fails, due to the way C++ is used in HotSpot and the JDK native code. Long term, it might be good to fix the code itself, in OpenJDK 9 or 10, but we need an interim solution to make OpenJDK buildable and one we can backport to existing supported version (6, 7 and 8).
        2. A number of optimisations in GCC 6 lead to a broken JVM. We need to add -fno-delete-null-pointer-checks and -fno-lifetime-dse to get a working JVM.

          Issue Links

            Activity

            Hide
            andrew Andrew Hughes added a comment -
            Patch written and about to be posted to mailing list.
            Show
            andrew Andrew Hughes added a comment - Patch written and about to be posted to mailing list.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/rev/9d77f922d694
            User: andrew
            Date: 2016-03-19 01:31:06 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/rev/9d77f922d694 User: andrew Date: 2016-03-19 01:31:06 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/rev/9d77f922d694
            User: lana
            Date: 2016-03-30 18:37:56 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/rev/9d77f922d694 User: lana Date: 2016-03-30 18:37:56 +0000

              People

              • Assignee:
                andrew Andrew Hughes
                Reporter:
                andrew Andrew Hughes
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: