RFR: 8341586: RISC-V: build fail with gcc9

Ludovic Henry luhenry at openjdk.org
Mon Oct 7 08:15:36 UTC 2024


On Sun, 6 Oct 2024 13:28:30 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> The `src/hotspot/cpu/riscv/icache_riscv.cpp` build fails `riscv_flush_icache.cpp:51:29: error: requested alignment 64 is larger than 16 [-Werror=attributes]` with gcc9. Alignment 16 will be enough, though the [NR_riscv_flush_icache syscall](https://github.com/torvalds/linux/blob/master/tools/arch/riscv/include/uapi/asm/unistd.h) doesn't reqiure alignment.
> 
> Addiontional testing:
> 
> - [x] riscv native build with release conf and slowdebug conf
> - [ ] jtreg tier1 tests with release build

In which cases do we care for GCC 9 for RISC-V? Given how fast the development of the RISC-V platform and spec is, such an old version of GCC will not have good support for RISC-V. Not completely opposed to the change, but I just think we would want to motivate such support.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/21376#issuecomment-2396223723


More information about the hotspot-runtime-dev mailing list