JDK-8220070 : Clean up GCC 8.3 errors
  • Type: Task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 13
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2019-03-04
  • Updated: 2021-08-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8220074 :  
Description
GCC 8.2 compiles jdk After all fixes related to JDK-8213153, but there are few more warnings reported by GCC 8.3:
In java.base:
src/java.base/unix/native/libjava/canonicalize_md.c:214:9: error: 'strncpy' specified bound 4097 equals destination size [-Werror=stringop-truncation]
         strncpy(path, original, sizeof(path));
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
And also in LittleCMS.
Comments
[~vaivanov] that long standing issue is now being handled under JDK-8254270
05-11-2020

One more warning reported for the gcc8.3.0 to build 32-bit binaries on the RHEL for the WS version 790d6e2d2539e0e75c587543e83cf8d73c11e1e7: === Output from failing command(s) repeated here === * For target support_native_jdk.jdwp.agent_libjdwp_log_messages.o: /home/smbuser/localwdir/tmp/jdk.git_master/src/jdk.jdwp.agent/share/native/libjdwp/log_messages.c: In function 'log_message_end': /home/smbuser/localwdir/tmp/jdk.git_master/src/jdk.jdwp.agent/share/native/libjdwp/log_messages.c:82:29: error: '%s' directive output may be truncated writing up to 56 bytes into a region of size between 52 and 76 [-Werror=format-truncation=] "%s.%.3d %s", timestamp_date_time, ^~ (int)(millisecs), timestamp_timezone); ~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:937, from /home/smbuser/localwdir/tmp/jdk.git_master/src/jdk.jdwp.agent/share/native/libjdwp/util.h:30, from /home/smbuser/localwdir/tmp/jdk.git_master/src/jdk.jdwp.agent/share/native/libjdwp/log_messages.c:26: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 6 and 86 bytes into a destination of size 81 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors * All command lines available in /home/smbuser/localwdir/tmp/jdk.git_master/build/linux-x86-server-fastdebug/make-support/failure-logs. === End of repeated output ===
28-10-2020