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

RISC-V: cross buid fails orderAccess_linux_riscv.hpp:74 extension `zifencei' required with gcc13/14 after JDK-8339771

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • tbd
    • 24
    • hotspot
    • riscv
    • linux

      build log snippet:
      === Output from failing command(s) repeated here ===
      * For target hotspot_variant-server_libjvm_objs_barrierSetNMethod.o:
      src/hotspot/os_cpu/linux_riscv/orderAccess_linux_riscv.hpp: Assembler messages:
      src/hotspot/os_cpu/linux_riscv/orderAccess_linux_riscv.hpp:74: Error: unrecognized opcode `fence.i', extension `zifencei' required
      src/hotspot/os_cpu/linux_riscv/orderAccess_linux_riscv.hpp:74: Error: unrecognized opcode `fence.i', extension `zifencei' required
      src/hotspot/os_cpu/linux_riscv/orderAccess_linux_riscv.hpp:74: Error: unrecognized opcode `fence.i', extension `zifencei' required

      gcc version:
      riscv64-unknown-linux-gnu-gcc -v
      Using built-in specs.
      COLLECT_GCC=riscv64-unknown-linux-gnu-gcc
      COLLECT_LTO_WRAPPER=/home/yansendao/software/riscv64-glibc2.38/bin/../libexec/gcc/riscv64-unknown-linux-gnu/13.3.1/lto-wrapper
      Target: riscv64-unknown-linux-gnu
      Configured with: /home/yansendao/git/riscv-gnu-toolchain/gcc/configure --target=riscv64-unknown-linux-gnu --prefix=/home/yansendao/software/riscv64 --with-sysroot=/home/yansendao/software/riscv64/sysroot --with-pkgversion=g85f323c2dc3 --with-system-zlib --enable-shared --enable-tls --enable-languages=c,c++,fortran --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libsanitizer --disable-nls --disable-bootstrap --src=.././gcc --disable-default-pie --disable-multilib --with-abi=lp64d --with-arch=rv64imafdc --with-tune=rocket --with-isa-spec=20191213 'CFLAGS_FOR_TARGET=-O2 -mcmodel=medlow' 'CXXFLAGS_FOR_TARGET=-O2 -mcmodel=medlow'
      Thread model: posix
      Supported LTO compression algorithms: zlib zstd
      gcc version 13.3.1 20240901 (g85f323c2dc3)

            syan Sendao Yan
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: