-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
8
-
generic
-
generic
+ cd build/linux-x86_64-normal-server-fastdebug/hotspot/linux_amd64_compiler2/generated
+ bash -c '/home/yansendao/software/gcc/gcc-13.2.0-binary/bin/g++ -DLINUX -D_GNU_SOURCE -DAMD64 -DASSERT -DCHECK_UNHANDLED_OOPS -I. -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm/prims -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm/precompiled -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/cpu/x86/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/os_cpu/linux_x86/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/os/linux/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.412-b00\"" -DHOTSPOT_BUILD_TARGET="\"fastdebug\"" -DHOTSPOT_BUILD_USER="\"yansendao\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DINCLUDE_JFR=1 -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64 -pipe -fno-strict-aliasing -fno-omit-frame-pointer -O3 -g -DVM_LITTLE_ENDIAN -D_LP64=1 -Werror -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wreturn-type -fstack-protector -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -DDTRACE_ENABLED -c -MMD -MP -MF ../generated/dependencies/concurrentMark.o.d -fpch-deps -o concurrentMark.o /home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp'
/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp: In member function ‘void ConcurrentMark::print_reachable(const char*, VerifyOption, bool)’:
/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp:2939:26: error: ‘%s’ directive writing up to 4095 bytes into a region of size between 1 and 4096 [-Werror=format-overflow=]
2939 | sprintf(file_name, "%s.%s", G1PrintReachableBaseFile, str);
| ^~
/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp:2939:10: note: ‘sprintf’ output between 2 and 8192 bytes into a destination of size 4097
2939 | sprintf(file_name, "%s.%s", G1PrintReachableBaseFile, str);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
+ bash -c '/home/yansendao/software/gcc/gcc-13.2.0-binary/bin/g++ -DLINUX -D_GNU_SOURCE -DAMD64 -DASSERT -DCHECK_UNHANDLED_OOPS -I. -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm/prims -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm/precompiled -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/cpu/x86/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/os_cpu/linux_x86/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/os/linux/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.412-b00\"" -DHOTSPOT_BUILD_TARGET="\"fastdebug\"" -DHOTSPOT_BUILD_USER="\"yansendao\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DINCLUDE_JFR=1 -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64 -pipe -fno-strict-aliasing -fno-omit-frame-pointer -O3 -g -DVM_LITTLE_ENDIAN -D_LP64=1 -Werror -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wreturn-type -fstack-protector -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -DDTRACE_ENABLED -c -MMD -MP -MF ../generated/dependencies/concurrentMark.o.d -fpch-deps -o concurrentMark.o /home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp'
/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp: In member function ‘void ConcurrentMark::print_reachable(const char*, VerifyOption, bool)’:
/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp:2939:26: error: ‘%s’ directive writing up to 4095 bytes into a region of size between 1 and 4096 [-Werror=format-overflow=]
2939 | sprintf(file_name, "%s.%s", G1PrintReachableBaseFile, str);
| ^~
/home/yansendao/git/riscv-port-jdk8u-ysd-build/hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp:2939:10: note: ‘sprintf’ output between 2 and 8192 bytes into a destination of size 4097
2939 | sprintf(file_name, "%s.%s", G1PrintReachableBaseFile, str);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
- relates to
-
JDK-8286562 GCC 12 reports some compiler warnings
-
- Resolved
-