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

hotspot fastdebug builds broken on fedora 19 after JDK-8047734

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • infrastructure
    • None
    • fedora 19 x86_64

    • b18
    • 9
    • b29
    • linux

        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.

              mduigou Mike Duigou
              jcoomes John Coomes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: