Bug#1097478: nrn-iv: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:40:19 GMT 2025


Package: src:nrn-iv
Version: 3.1+git20221204-2
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/nrn-iv_3.1+git20221204-2_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

[...]
cd /build/reproducible-path/nrn-iv-3.1+git20221204/obj-x86_64-linux-gnu/src/lib && /usr/bin/cc -DHAVE_CONFIG_H -I/build/reproducible-path/nrn-iv-3.1+git20221204/src/include -I/build/reproducible-path/nrn-iv-3.1+git20221204/obj-x86_64-linux-gnu/src/lib -I/build/reproducible-path/nrn-iv-3.1+git20221204/src/include/TIFF -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nrn-iv-3.1+git20221204=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -g -DNDEBUG -fPIC -DCOLORIMETRY_SUPPORT -DJPEG_SUPPORT -DYCBCR_SUPPORT -DCMYK_SUPPORT -DHAVE_IEEEFP=1 -DUSE_VARARGS=0 -DUSE_PROTOTYPES=1 -DUSE_CONST=1 -MD -MT src/lib/CMakeFiles/interviews.dir/TIFF/tif_ccittrle.c.o -MF CMakeFiles/interviews.dir/TIFF/tif_ccittrle.c.o.d -o CMakeFiles/interviews.dir/TIFF/tif_ccittrle.c.o -c /build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_ccittrle.c
[ 43%] Building C object src/lib/CMakeFiles/interviews.dir/TIFF/tif_close.c.o
cd /build/reproducible-path/nrn-iv-3.1+git20221204/obj-x86_64-linux-gnu/src/lib && /usr/bin/cc -DHAVE_CONFIG_H -I/build/reproducible-path/nrn-iv-3.1+git20221204/src/include -I/build/reproducible-path/nrn-iv-3.1+git20221204/obj-x86_64-linux-gnu/src/lib -I/build/reproducible-path/nrn-iv-3.1+git20221204/src/include/TIFF -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nrn-iv-3.1+git20221204=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -g -DNDEBUG -fPIC -DCOLORIMETRY_SUPPORT -DJPEG_SUPPORT -DYCBCR_SUPPORT -DCMYK_SUPPORT -DHAVE_IEEEFP=1 -DUSE_VARARGS=0 -DUSE_PROTOTYPES=1 -DUSE_CONST=1 -MD -MT src/lib/CMakeFiles/interviews.dir/TIFF/tif_close.c.o -MF CMakeFiles/interviews.dir/TIFF/tif_close.c.o.d -o CMakeFiles/interviews.dir/TIFF/tif_close.c.o -c /build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_close.c
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_ccittrle.c: In function ‘TIFFInitCCITTRLE’:
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_ccittrle.c:43:5: warning: old-style function definition [-Wold-style-definition]
   43 | int TIFFInitCCITTRLE(tif)
      |     ^~~~~~~~~~~~~~~~
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_ccittrle.c:49:28: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(TIFF *, u_char *, int,  u_int)’ {aka ‘int (*)(struct tiff *, unsigned char *, int,  unsigned int)’} [-Wincompatible-pointer-types]
   49 |         tif->tif_encoderow = TIFFNoRowEncode;
      |                            ^
In file included from /build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_ccittrle.c:38:
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tiffioP.h:316:13: note: ‘TIFFNoRowEncode’ declared here
  316 | extern  int TIFFNoRowEncode(TIFF*, u_char*, int, u_int);
      |             ^~~~~~~~~~~~~~~
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_ccittrle.c:50:30: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(TIFF *, u_char *, int,  u_int)’ {aka ‘int (*)(struct tiff *, unsigned char *, int,  unsigned int)’} [-Wincompatible-pointer-types]
   50 |         tif->tif_encodestrip = TIFFNoStripEncode;
      |                              ^
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tiffioP.h:317:13: note: ‘TIFFNoStripEncode’ declared here
  317 | extern  int TIFFNoStripEncode(TIFF*, u_char*, int, u_int);
      |             ^~~~~~~~~~~~~~~~~
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_ccittrle.c:51:29: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(TIFF *, u_char *, int,  u_int)’ {aka ‘int (*)(struct tiff *, unsigned char *, int,  unsigned int)’} [-Wincompatible-pointer-types]
   51 |         tif->tif_encodetile = TIFFNoTileEncode;
      |                             ^
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tiffioP.h:318:13: note: ‘TIFFNoTileEncode’ declared here
  318 | extern  int TIFFNoTileEncode(TIFF*, u_char*, int, u_int);
      |             ^~~~~~~~~~~~~~~~
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_ccittrle.c: In function ‘TIFFInitCCITTRLEW’:
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_ccittrle.c:63:5: warning: old-style function definition [-Wold-style-definition]
   63 | int TIFFInitCCITTRLEW(tif)
      |     ^~~~~~~~~~~~~~~~~
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_ccittrle.c:69:28: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(TIFF *, u_char *, int,  u_int)’ {aka ‘int (*)(struct tiff *, unsigned char *, int,  unsigned int)’} [-Wincompatible-pointer-types]
   69 |         tif->tif_encoderow = TIFFNoRowEncode;
      |                            ^
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tiffioP.h:316:13: note: ‘TIFFNoRowEncode’ declared here
  316 | extern  int TIFFNoRowEncode(TIFF*, u_char*, int, u_int);
      |             ^~~~~~~~~~~~~~~
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_ccittrle.c:70:30: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(TIFF *, u_char *, int,  u_int)’ {aka ‘int (*)(struct tiff *, unsigned char *, int,  unsigned int)’} [-Wincompatible-pointer-types]
   70 |         tif->tif_encodestrip = TIFFNoStripEncode;
      |                              ^
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tiffioP.h:317:13: note: ‘TIFFNoStripEncode’ declared here
  317 | extern  int TIFFNoStripEncode(TIFF*, u_char*, int, u_int);
      |             ^~~~~~~~~~~~~~~~~
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_ccittrle.c:71:29: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(TIFF *, u_char *, int,  u_int)’ {aka ‘int (*)(struct tiff *, unsigned char *, int,  unsigned int)’} [-Wincompatible-pointer-types]
   71 |         tif->tif_encodetile = TIFFNoTileEncode;
      |                             ^
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tiffioP.h:318:13: note: ‘TIFFNoTileEncode’ declared here
  318 | extern  int TIFFNoTileEncode(TIFF*, u_char*, int, u_int);
      |             ^~~~~~~~~~~~~~~~
make[3]: *** [src/lib/CMakeFiles/interviews.dir/build.make:1752: src/lib/CMakeFiles/interviews.dir/TIFF/tif_ccittrle.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_close.c: In function ‘TIFFClose’:
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_close.c:45:1: warning: old-style function definition [-Wold-style-definition]
   45 | TIFFClose(tif)
      | ^~~~~~~~~
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_close.c:54:18: error: too many arguments to function ‘tif->tif_cleanup’; expected 0, have 1
   54 |                 (*tif->tif_cleanup)(tif);
      |                 ~^~~~~~~~~~~~~~~~~~ ~~~
In file included from /build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tif_close.c:36:
/build/reproducible-path/nrn-iv-3.1+git20221204/src/lib/TIFF/tiffioP.h:265:19: note: declared here
  265 |         int     (*tif_cleanup)();       /* routine called to cleanup state */
      |                   ^~~~~~~~~~~
make[3]: *** [src/lib/CMakeFiles/interviews.dir/build.make:1766: src/lib/CMakeFiles/interviews.dir/TIFF/tif_close.c.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/nrn-iv-3.1+git20221204/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:176: src/lib/CMakeFiles/interviews.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/nrn-iv-3.1+git20221204/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/nrn-iv-3.1+git20221204/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:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list