#1096516 dee: ftbfs with GCC-15

Package:
src:dee
Source:
src:dee
Submitter:
Matthias Klose
Date:
2025-09-04 22:07:44 UTC
Severity:
normal
Tags:
#1096516#5
Date:
2025-02-17 17:09:42 UTC
From:
To:
[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/dee_1.2.7+17.10.20170616-7_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

[...]
make[5]: Leaving directory '/build/reproducible-path/dee-1.2.7+17.10.20170616/doc/reference'
make[4]: Leaving directory '/build/reproducible-path/dee-1.2.7+17.10.20170616/doc/reference'
make[4]: Entering directory '/build/reproducible-path/dee-1.2.7+17.10.20170616/doc'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/build/reproducible-path/dee-1.2.7+17.10.20170616/doc'
make[3]: Leaving directory '/build/reproducible-path/dee-1.2.7+17.10.20170616/doc'
Making all in examples
make[3]: Entering directory '/build/reproducible-path/dee-1.2.7+17.10.20170616/examples'
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../src -g -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -pthread  -Wall -Wcast-align -Wno-uninitialized -Wempty-body -Wformat-security -Winit-self -Wno-error=deprecated-declarations -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dee-1.2.7+17.10.20170616=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o master-model.o master-model.c
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../src -g -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -pthread  -Wall -Wcast-align -Wno-uninitialized -Wempty-body -Wformat-security -Winit-self -Wno-error=deprecated-declarations -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dee-1.2.7+17.10.20170616=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o peers.o peers.c
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../src -g -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -pthread  -Wall -Wcast-align -Wno-uninitialized -Wempty-body -Wformat-security -Winit-self -Wno-error=deprecated-declarations -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dee-1.2.7+17.10.20170616=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o slave-model.o slave-model.c
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dee-1.2.7+17.10.20170616=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection  -Wl,-z,relro -Wl,-z,now -o peers peers.o ../src/libdee-1.0.la -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dee-1.2.7+17.10.20170616=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection  -Wl,-z,relro -Wl,-z,now -o master-model master-model.o ../src/libdee-1.0.la -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
libtool: link: gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dee-1.2.7+17.10.20170616=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/peers peers.o  ../src/.libs/libdee-1.0.so -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -pthread
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dee-1.2.7+17.10.20170616=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection  -Wl,-z,relro -Wl,-z,now -o slave-model slave-model.o ../src/libdee-1.0.la -lgthread-2.0 -pthread -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
libtool: link: gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dee-1.2.7+17.10.20170616=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/master-model master-model.o  ../src/.libs/libdee-1.0.so -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -pthread
libtool: link: gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dee-1.2.7+17.10.20170616=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/slave-model slave-model.o  ../src/.libs/libdee-1.0.so -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -pthread
make[3]: Leaving directory '/build/reproducible-path/dee-1.2.7+17.10.20170616/examples'
Making all in tools
make[3]: Entering directory '/build/reproducible-path/dee-1.2.7+17.10.20170616/tools'
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../src -g -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -pthread  -Wall -Wcast-align -Wno-uninitialized -Wempty-body -Wformat-security -Winit-self -Wno-error=deprecated-declarations -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dee-1.2.7+17.10.20170616=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o dee-tool.o dee-tool.c
dee-tool.c: In function ‘on_model_trasaction_begin’:
dee-tool.c:98:3: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
   98 |   GTimeVal  time_val;
      |   ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from dee-tool.c:21:
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
dee-tool.c:101:3: warning: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations]
  101 |   g_get_current_time (&time_val);
      |   ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/giochannel.h:35,
                 from /usr/include/glib-2.0/glib.h:56:
/usr/include/glib-2.0/glib/gmain.h:825:8: note: declared here
  825 | void   g_get_current_time                 (GTimeVal       *result);
      |        ^~~~~~~~~~~~~~~~~~
dee-tool.c:102:3: warning: ‘g_time_val_to_iso8601’ is deprecated: Use 'g_date_time_format' instead [-Wdeprecated-declarations]
  102 |   time_str = g_time_val_to_iso8601 (&time_val);
      |   ^~~~~~~~
In file included from /usr/include/glib-2.0/glib.h:92:
/usr/include/glib-2.0/glib/gtimer.h:75:10: note: declared here
   75 | gchar*   g_time_val_to_iso8601   (GTimeVal    *time_) G_GNUC_MALLOC;
      |          ^~~~~~~~~~~~~~~~~~~~~
dee-tool.c: In function ‘dump_peer’:
dee-tool.c:242:31: error: passing argument 2 of ‘g_timeout_add_seconds’ from incompatible pointer type [-Wincompatible-pointer-types]
  242 |     g_timeout_add_seconds (1, _timeout_cb, NULL);
      |                               ^~~~~~~~~~~
      |                               |
      |                               gboolean (*)(void) {aka int (*)(void)}
/usr/include/glib-2.0/glib/gmain.h:946:54: note: expected ‘GSourceFunc’ {aka ‘int (*)(void *)’} but argument is of type ‘gboolean (*)(void)’ {aka ‘int (*)(void)’}
  946 |                                      GSourceFunc     function,
      |                                      ~~~~~~~~~~~~~~~~^~~~~~~~
dee-tool.c:207:1: note: ‘_timeout_cb’ declared here
  207 | _timeout_cb ()
      | ^~~~~~~~~~~
/usr/include/glib-2.0/glib/gmain.h:199:20: note: ‘GSourceFunc’ declared here
  199 | typedef gboolean (*GSourceFunc)       (gpointer user_data);
      |                    ^~~~~~~~~~~
make[3]: *** [Makefile:467: dee-tool.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/dee-1.2.7+17.10.20170616/tools'
make[2]: *** [Makefile:532: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/dee-1.2.7+17.10.20170616'
make[1]: *** [Makefile:438: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/dee-1.2.7+17.10.20170616'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:14: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2