Bug#1075069: hplip: ftbfs with GCC-14
Package: src:hplip
Version: 3.22.10+dfsg0-5
Severity: important
Tags: sid trixie
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-14
[This bug is targeted to the upcoming trixie release]
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
The package fails to build in a test rebuild on at least amd64 with
gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.
The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/hplip_3.22.10+dfsg0-5_unstable_gccexp.log
The last lines of the build log are at the end of this report.
To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-14/porting_to.html
[...]
prnt/hpcups/genPCLm.cpp:1261:60: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 237 [-Wformat-truncation=]
1261 | snprintf(pOutStr,OUT_STR_SIZE,"%% media-type: %s\n",m_pPCLmSSettings->userMediaType); writeStr2OutBuff(pOutStr);
| ^~
In function ‘int snprintf(char*, size_t, const char*, ...)’,
inlined from ‘void PCLmGenerator::writeJobTicket()’ at prnt/hpcups/genPCLm.cpp:1261:10:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:35: note: ‘__builtin___snprintf_chk’ output between 21 and 276 bytes into a destination of size 256
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
prnt/hpcups/genPCLm.cpp: In member function ‘void PCLmGenerator::writeJobTicket()’:
prnt/hpcups/genPCLm.cpp:1262:62: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 235 [-Wformat-truncation=]
1262 | snprintf(pOutStr,OUT_STR_SIZE,"%% media-source: %s\n",inputBin); writeStr2OutBuff(pOutStr);
| ^~ ~~~~~~~~
In function ‘int snprintf(char*, size_t, const char*, ...)’,
inlined from ‘void PCLmGenerator::writeJobTicket()’ at prnt/hpcups/genPCLm.cpp:1262:10:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:35: note: ‘__builtin___snprintf_chk’ output between 23 and 278 bytes into a destination of size 256
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
prnt/hpcups/genPCLm.cpp: In member function ‘void PCLmGenerator::writeJobTicket()’:
prnt/hpcups/genPCLm.cpp:1263:55: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 242 [-Wformat-truncation=]
1263 | snprintf(pOutStr,OUT_STR_SIZE,"%% sides: %s\n",duplex); writeStr2OutBuff(pOutStr);
| ^~ ~~~~~~
In function ‘int snprintf(char*, size_t, const char*, ...)’,
inlined from ‘void PCLmGenerator::writeJobTicket()’ at prnt/hpcups/genPCLm.cpp:1263:10:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:35: note: ‘__builtin___snprintf_chk’ output between 16 and 271 bytes into a destination of size 256
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
prnt/hpcups/genPCLm.cpp: In member function ‘void PCLmGenerator::writeJobTicket()’:
prnt/hpcups/genPCLm.cpp:1265:60: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 237 [-Wformat-truncation=]
1265 | snprintf(pOutStr,OUT_STR_SIZE,"%% output-bin: %s\n",outputBin); writeStr2OutBuff(pOutStr);
| ^~ ~~~~~~~~~
In function ‘int snprintf(char*, size_t, const char*, ...)’,
inlined from ‘void PCLmGenerator::writeJobTicket()’ at prnt/hpcups/genPCLm.cpp:1265:10:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:35: note: ‘__builtin___snprintf_chk’ output between 21 and 276 bytes into a destination of size 256
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
prnt/hpcups/genPCLm.cpp: In member function ‘void PCLmGenerator::writeJobTicket()’:
prnt/hpcups/genPCLm.cpp:1297:72: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 225 [-Wformat-truncation=]
1297 | snprintf(pOutStr,OUT_STR_SIZE,"%% print-rendering-intent: %s\n",colorthemes); writeStr2OutBuff(pOutStr);
| ^~ ~~~~~~~~~~~
In function ‘int snprintf(char*, size_t, const char*, ...)’,
inlined from ‘void PCLmGenerator::writeJobTicket()’ at prnt/hpcups/genPCLm.cpp:1297:10:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:35: note: ‘__builtin___snprintf_chk’ output between 33 and 288 bytes into a destination of size 256
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make[1]: *** [debian/rules:95: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:35: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: