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

Build needs additional flags to compile with GCC 6

    Details

    • 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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: