JDK-8315794 : RISC-V: build fails with GCC 12.3
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P4
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • OS: linux
  • CPU: riscv
  • Submitted: 2023-09-06
  • Updated: 2023-10-23
  • Resolved: 2023-10-23
Related Reports
Duplicate :  
Relates :  
Description
When building on RISC-V with GCC 12.3 I get the error:

writing 8 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=] 

for two files:

xPageAllocator.cpp
zPageAllocator.cpp
Comments
The issue seems to have somehow been resolved. The current HEAD builds cleanly with GCC 12.3. I'm going to close this.
23-10-2023

Seems to be the same issue as JDK-8299580.
07-09-2023

The fix for JDK-8294031 was to make various error reporting functions `[[noreturn]]`. Is there perhaps a missing `[[noreturn]]` in the RISC-V code? Or is there some other statically apparent but never actually taken code path? Also, does the failure happen in release builds, or only (fast)debug builds? More details about the failure would be helpful.
07-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15593 Date: 2023-09-06 14:29:56 +0000
06-09-2023

This is a similar issue to JDK-8294031. The fix is to add: DISABLED_WARNINGS_gcc_xPageAllocator.cpp := stringop-overflow, \ DISABLED_WARNINGS_gcc_zPageAllocator.cpp := stringop-overflow, \
06-09-2023