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

Build failure due to __clang_major__ is not defined after JDK-8214976

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 19
    • hotspot
    • b26

      Build failure was observered when build on a machine without clang.
      ```
      * For target hotspot_variant-server_libjvm_objs_precompiled_precompiled.hpp.gch:
      In file included from /root/jdk/src/hotspot/share/utilities/compilerWarnings.hpp:32,
                       from /root/jdk/src/hotspot/share/utilities/globalDefinitions.hpp:28,
                       from /root/jdk/src/hotspot/share/memory/allocation.hpp:29,
                       from /root/jdk/src/hotspot/share/classfile/classLoaderData.hpp:28,
                       from /root/jdk/src/hotspot/share/precompiled/precompiled.hpp:34:
      /root/jdk/src/hotspot/share/utilities/compilerWarnings_gcc.hpp:66:25: error: "__clang_major__" is not defined, evaluates to 0 [-Werror=undef]
       #if (__GNUC__ >= 9) || (__clang_major__ >= 14)
                               ^~~~~~~~~~~~~~~
      cc1plus: all warnings being treated as errors
      ```

            jiefu Jie Fu
            jiefu Jie Fu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: