Bug#881824: openjdk-7-jre-dcevm: FTBFS due to -Werror=format-overflow

Andreas Beckmann anbe at debian.org
Wed Nov 15 15:25:38 UTC 2017


Source: openjdk-7-jre-dcevm
Version: 7u79-4
Severity: serious
Justification: fails to build from source (but built successfully in the past)

Hi,

openjdk-7-jre-dcevm FTBFS in a current sid+experimental environment:

Compiling /build/openjdk-7-jre-dcevm-7u79/src/share/vm/adlc/output_c.cpp
rm -f ../generated/adfiles/output_c.o
g++ -DLINUX -D_GNU_SOURCE -DIA32 -I/build/openjdk-7-jre-dcevm-7u79/src/share/vm/prims -I/build/openjdk-7-jre-dcevm-7u79/src/share/vm -I/build/openjdk-7-jre-dcevm-7u79/src/share/vm/precompiled -I/build/openjdk-7-jr
e-dcevm-7u79/src/cpu/x86/vm -I/build/openjdk-7-jre-dcevm-7u79/src/os_cpu/linux_x86/vm -I/build/openjdk-7-jre-dcevm-7u79/src/os/linux/vm -I/build/openjdk-7-jre-dcevm-7u79/src/os/posix/vm -I/build/openjdk-7-jre-dcev
m-7u79/src/share/vm/adlc -I../generated -DASSERT -g -O2 -fdebug-prefix-map=/build/openjdk-7-jre-dcevm-7u79=. -fstack-protector-strong -Wformat -Werror=format-security -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DT
ARGET_ARCH_MODEL_x86_32 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_32 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1  -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m32 -ma
rch=i586 -pipe -g -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_32 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_32 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1  -fno-rtti -fno-
exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m32 -march=i586 -pipe -g -Werror -c -o ../generated/adfiles/output_c.o /build/openjdk-7-jre-dcevm-7u79/src/share/vm/adlc/output_c.cpp 
/build/openjdk-7-jre-dcevm-7u79/src/share/vm/adlc/output_c.cpp: In member function 'void ArchDesc::build_pipe_classes(FILE*)':
/build/openjdk-7-jre-dcevm-7u79/src/share/vm/adlc/output_c.cpp:601:6: error: '%*d' directive output between 1 and 2147483647 bytes may cause result to exceed 'INT_MAX' [-Werror=format-overflow=]
 void ArchDesc::build_pipe_classes(FILE *fp_cpp) {
      ^~~~~~~~
/build/openjdk-7-jre-dcevm-7u79/src/share/vm/adlc/output_c.cpp:601:6: note: directive argument in the range [0, 2147483647]
cc1plus: all warnings being treated as errors
/build/openjdk-7-jre-dcevm-7u79/make/linux/makefiles/adlc.make:214: recipe for target '../generated/adfiles/output_c.o' failed
make[6]: *** [../generated/adfiles/output_c.o] Error 1

This is likely a new warning in the current gcc.


Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openjdk-7-jre-dcevm_7u79-4.log.gz
Type: application/gzip
Size: 18601 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20171115/293ab285/attachment-0001.bin>


More information about the pkg-java-maintainers mailing list