Bug#1097246: libpano13: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:33:01 GMT 2025


Package: src:libpano13
Version: 2.9.22+dfsg-1.1
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/libpano13_2.9.22+dfsg-1.1_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html

[...]
[ 19%] Building C object CMakeFiles/pano13.dir/dump.c.o
/usr/bin/cc -D__Ansi__ -Dpano13_EXPORTS -I/build/reproducible-path/libpano13-2.9.22+dfsg -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libpano13-2.9.22+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MT CMakeFiles/pano13.dir/dump.c.o -MF CMakeFiles/pano13.dir/dump.c.o.d -o CMakeFiles/pano13.dir/dump.c.o -c /build/reproducible-path/libpano13-2.9.22+dfsg/dump.c
[ 20%] Building C object CMakeFiles/pano13.dir/fftn.c.o
/usr/bin/cc -D__Ansi__ -Dpano13_EXPORTS -I/build/reproducible-path/libpano13-2.9.22+dfsg -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libpano13-2.9.22+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MT CMakeFiles/pano13.dir/fftn.c.o -MF CMakeFiles/pano13.dir/fftn.c.o.d -o CMakeFiles/pano13.dir/fftn.c.o -c /build/reproducible-path/libpano13-2.9.22+dfsg/fftn.c
/build/reproducible-path/libpano13-2.9.22+dfsg/adjust.c:2448:5: error: conflicting types for ‘fcnPano’; have ‘int(int,  int,  double *, double *, int *)’
 2448 | int fcnPano(int m, int n, double x[], double fvec[], int *iflag)
      |     ^~~~~~~
In file included from /build/reproducible-path/libpano13-2.9.22+dfsg/adjust.c:42:
/build/reproducible-path/libpano13-2.9.22+dfsg/filter.h:785:33: note: previous declaration of ‘fcnPano’ with type ‘int(void)’
  785 | PANO13_IMPEX int                fcnPano();
      |                                 ^~~~~~~
make[3]: *** [CMakeFiles/pano13.dir/build.make:96: CMakeFiles/pano13.dir/adjust.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/build/reproducible-path/libpano13-2.9.22+dfsg/correct.c: In function ‘getFrame’:
/build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:749:72: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 7 [-Wformat-truncation=]
  749 |                                 snprintf( percent, sizeof(percent)-1, "%d", (int) (xul * 100)/(dx>0?dx:1));
      |                                                                        ^~
/build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:749:71: note: directive argument in the range [0, 2147483647]
  749 |                                 snprintf( percent, sizeof(percent)-1, "%d", (int) (xul * 100)/(dx>0?dx:1));
      |                                                                       ^~~~
In file included from /usr/include/stdio.h:970,
                 from /build/reproducible-path/libpano13-2.9.22+dfsg/filter.h:26,
                 from /build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:35:
In function ‘snprintf’,
    inlined from ‘getFrame’ at /build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:749:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 2 and 11 bytes into a destination of size 7
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
/build/reproducible-path/libpano13-2.9.22+dfsg/correct.c: In function ‘getFrame’:
/build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:749:72: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 7 [-Wformat-truncation=]
  749 |                                 snprintf( percent, sizeof(percent)-1, "%d", (int) (xul * 100)/(dx>0?dx:1));
      |                                                                        ^~
/build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:749:71: note: directive argument in the range [0, 2147483647]
  749 |                                 snprintf( percent, sizeof(percent)-1, "%d", (int) (xul * 100)/(dx>0?dx:1));
      |                                                                       ^~~~
In file included from /usr/include/stdio.h:970,
                 from /build/reproducible-path/libpano13-2.9.22+dfsg/filter.h:26,
                 from /build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:35:
In function ‘snprintf’,
    inlined from ‘getFrame’ at /build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:749:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 2 and 11 bytes into a destination of size 7
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
/build/reproducible-path/libpano13-2.9.22+dfsg/ColourBrightness.c: In function ‘OutputCurves’:
/build/reproducible-path/libpano13-2.9.22+dfsg/ColourBrightness.c:535:3: warning: ‘__builtin_strncpy’ output may be truncated copying 500 bytes from a string of length 511 [-Wstringop-truncation]
  535 |   strncpy(outputFileName, panoFileName->name, 500);
      |   ^
/build/reproducible-path/libpano13-2.9.22+dfsg/ColourBrightness.c: In function ‘OutputCurves’:
/build/reproducible-path/libpano13-2.9.22+dfsg/ColourBrightness.c:535:3: warning: ‘__builtin_strncpy’ output may be truncated copying 500 bytes from a string of length 511 [-Wstringop-truncation]
  535 |   strncpy(outputFileName, panoFileName->name, 500);
      |   ^
make[3]: Leaving directory '/build/reproducible-path/libpano13-2.9.22+dfsg/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:258: CMakeFiles/pano13.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/build/reproducible-path/libpano13-2.9.22+dfsg/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:290: CMakeFiles/pano13a.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/libpano13-2.9.22+dfsg/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:169: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/libpano13-2.9.22+dfsg/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:28: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-phototools-devel mailing list