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

Fix AArch64 OpenJDK build failure with gcc-5

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Resolved In Build:
      b25
    • CPU:
      aarch64
    • OS:
      linux

      Description

      OpenJDK build failed on AArch64 with gcc-5:

      ---
      For target hotspot_variant-server_libjvm_objs_vm_version_linux_aarch64.o:
      ./src/hotspot/os_cpu/linux_aarch64/vm_version_linux_aarch64.cpp: In static member function 'static void VM_Version::get_os_cpu_info()':
      ./src/hotspot/os_cpu/linux_aarch64/vm_version_linux_aarch64.cpp:96:40: error: expected ',' before ')' token
      static_assert(CPU_FP == HWCAP_FP);
      ^
      ./src/hotspot/os_cpu/linux_aarch64/vm_version_linux_aarch64.cpp:96:40: error: expected string-literal before ')' token
      ./src/hotspot/os_cpu/linux_aarch64/vm_version_linux_aarch64.cpp:97:43: error: expected ',' before ')' token
      static_assert(CPU_ASIMD == HWCAP_ASIMD);
      ^

      As one C++17 feature, the argument 'message' of static_assert can be optional. This feature, i.e. static_assert with no message, is supported by gcc-6 or higher.[1]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              njian Ningsheng Jian
              Reporter:
              njian Ningsheng Jian
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: