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

hotspot fastdebug builds broken on fedora 19 after JDK-8047734

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: infrastructure
    • Labels:
      None
    • Environment:

      fedora 19 x86_64

    • Subcomponent:
    • Introduced In Build:
      b18
    • Introduced In Version:
      9
    • Resolved In Build:
      b29
    • OS:
      linux

      Backports

        Description

        JDK-8032045 breaks fastdebug builds of hotspot (only) on fedora 19 and later. Those releases require optimization to be on whenever _FORTIFY_SOURCE is > 0. Example error:

        In file included from /usr/include/stdio.h:27:0,
        ... more nested includes ...
                         from .../src/share/vm/runtime/sharedRuntimeTrig.cpp:25:
        /usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE requires compilin
        g with optimization (-O) [-Werror=cpp]
         # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
            ^

        which fails because features.h has:

        #if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0
        # if !defined __OPTIMIZE__ || __OPTIMIZE__ <= 0
        # warning _FORTIFY_SOURCE requires compiling with optimization (-O)

        Note that sharedRuntimeTrig.cpp and sharedRuntimeTrans.cpp both fail to compile because of this problem. Both those files have special "per-file" optimization settings in make/linux/makefiles/*.make which disable optimization by using -O0.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mduigou Mike Duigou
                  Reporter:
                  jcoomes John Coomes
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: