Package: src:cups-filters
Version: 1.28.17-7
Severity: important
Tags: sid forky ftbfs
User: [email protected]
Usertags: ftbfs-gcc-16

Hi,

cups-filters fails to build in a test rebuild on at least amd64 and arm64 with
gcc-16/g++-16, but builds properly with gcc-15/g++-15. The severity of this
report will be raised before the forky release.

The full build log can be found at:
https://people.debian.org/~ema/gcc-16-rebuilds/output-1/cups-filters_arm64.build.xz

The last lines of the build log are at the end of this report.

To build with GCC 16, either set CC=gcc-16 CXX=g++-16 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures include unused (but set) variables, array subscripts
partly outside array bounds, and new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-16/porting_to.html

Please only close this issue after double-checking that the package can be
built correctly with GCC 16.

Please do not reassign this bug to another package. If a fix in another package
is required, then file a bug for the other package (or clone), and mark this
bug as blocked by the bug in the other package.

[...]


 1440 |       if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
      |                   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:400:26: note: declared here
  400 | extern ppd_attr_t       *ppdFindAttr(ppd_file_t *ppd, const char *name,
      |                          ^~~~~~~~~~~
filter/rastertopdf.cpp:1448:30: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, 
const char*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends 
instead. [-Wdeprecated-declarations]
 1448 |       if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
      |                   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:400:26: note: declared here
  400 | extern ppd_attr_t       *ppdFindAttr(ppd_file_t *ppd, const char *name,
      |                          ^~~~~~~~~~~
filter/rastertopdf.cpp:1468:30: warning: ‘ppd_attr_t* ppdFindAttr(ppd_file_t*, 
const char*, const char*)’ is deprecated: Use cupsCopyDestInfo and friends 
instead. [-Wdeprecated-declarations]
 1468 |       if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
      |                   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/ppd.h:400:26: note: declared here
  400 | extern ppd_attr_t       *ppdFindAttr(ppd_file_t *ppd, const char *name,
      |                          ^~~~~~~~~~~
filter/pdftopdf/qpdf_xobject.cc: In function ‘QPDFObjectHandle 
makeXObject(QPDF*, QPDFObjectHandle)’:
filter/pdftopdf/qpdf_xobject.cc:141:105: warning: 
‘PointerHolder<T>::PointerHolder(T*) [with T = 
QPDFObjectHandle::StreamDataProvider]’ is deprecated: use std::shared_ptr<T> 
instead [-Wdeprecated-declarations]
  141 |   auto ph=PointerHolder<QPDFObjectHandle::StreamDataProvider>(new 
CombineFromContents_Provider(contents));
      |                                                                         
                                ^
In file included from filter/pdftopdf/qpdf_xobject.cc:4:
/usr/include/qpdf/PointerHolder.hh:160:9: note: declared here
  160 |         PointerHolder(T* pointer = 0) :
      |         ^~~~~~~~~~~~~
utils/cups-browsed.c: In function ‘update_netifs’:
utils/cups-browsed.c:9281:21: warning: ‘__builtin_snprintf’ output may be 
truncated before the last format character [-Wformat-truncation=]
 9281 |                  "%s", ifa->ifa_name);
      |                     ^
In file included from /usr/include/stdio.h:970,
                 from /usr/include/resolv.h:58,
                 from utils/cups-browsed.c:34:
In function ‘snprintf’,
    inlined from ‘update_netifs’ at utils/cups-browsed.c:9280:2:
/usr/include/aarch64-linux-gnu/bits/stdio2.h:68:10: note: ‘__builtin_snprintf’ 
output between 1 and 65536 bytes into a destination of size 65535
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 
-D_PPD_DEPRECATED= -I/usr/include/libpng16 -I/usr/include/dbus-1.0 
-I/usr/lib/aarch64-linux-gnu/dbus-1.0/include -DHAVE_DBUS -g -O2 
-Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/cups-filters-1.28.17=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -Wall -std=gnu11 
-D_GNU_SOURCE -c cupsfilters/ppdgenerator.c -o 
cupsfilters/libcupsfilters_la-ppdgenerator.o >/dev/null 2>&1
In file included from /usr/include/features.h:523,
                 from /usr/include/ctype.h:25,
                 from utils/cups-browsed.c:24:
In function ‘inet_pton’,
    inlined from ‘resolve_callback’ at utils/cups-browsed.c:10249:8:
/usr/include/aarch64-linux-gnu/bits/inet-fortified.h:56:10: warning: call to 
‘__inet_pton_chk_warn’ declared with attribute warning: inet_pton called with a 
destination buffer size too small [-Wattribute-warning]
   56 |   return __glibc_fortify (inet_pton, __sz, sizeof (char),
      |          ^~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:970,
                 from filter/rastertopdf.cpp:27:
In function ‘int fprintf(FILE*, const char*, ...)’,
    inlined from ‘int main(int, char**)’ at filter/rastertopdf.cpp:1521:16:
/usr/include/aarch64-linux-gnu/bits/stdio2.h:111:24: warning: ‘profile_name’ 
may be used uninitialized [-Wmaybe-uninitialized]
  111 |   return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
      |          ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  112 |                         __va_arg_pack ());
      |                         ~~~~~~~~~~~~~~~~~
filter/rastertopdf.cpp: In function ‘int main(int, char**)’:
filter/rastertopdf.cpp:1318:25: note: ‘profile_name’ was declared here
 1318 |     const char*         profile_name;   /* IPP Profile Name */
      |                         ^~~~~~~~~~~~
make[3]: Leaving directory '/build/reproducible-path/cups-filters-1.28.17'
make[2]: *** [Makefile:4840: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/cups-filters-1.28.17'
make[1]: *** [Makefile:2102: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/cups-filters-1.28.17'
dh_auto_build: error: make -j128 returned exit code 2
make: *** [debian/rules:18: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2

Reply via email to