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

Fix AArch64 OpenJDK build failure with gcc-5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 16
    • hotspot
    • None
    • b25
    • aarch64
    • linux

      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]

            njian Ningsheng Jian (Inactive)
            njian Ningsheng Jian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: