[Pkg-telepathy-maintainers] Bug#1075560: telepathy-haze: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:45:37 BST 2024


Package: src:telepathy-haze
Version: 0.8.1-0.1
Severity: important
Tags: sid trixie
User: debian-gcc at 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/telepathy-haze_0.8.1-0.1_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

[...]
  392 |     case TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL:
      |     ^~~~
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I.. -DG_LOG_DOMAIN=\"haze\" -Wall -Wextra -Wdeclaration-after-statement -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wsign-compare -Wnested-externs -Wpointer-arith -Wformat-security -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -Wno-deprecated-declarations -I/usr/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/telepathy-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -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 -pthread -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -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 -pthread  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o media-channel.o media-channel.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I.. -DG_LOG_DOMAIN=\"haze\" -Wall -Wextra -Wdeclaration-after-statement -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wsign-compare -Wnested-externs -Wpointer-arith -Wformat-security -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -Wno-deprecated-declarations -I/usr/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/telepathy-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -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 -pthread -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -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 -pthread  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o media-manager.o media-manager.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I.. -DG_LOG_DOMAIN=\"haze\" -Wall -Wextra -Wdeclaration-after-statement -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wsign-compare -Wnested-externs -Wpointer-arith -Wformat-security -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -Wno-deprecated-declarations -I/usr/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/telepathy-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -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 -pthread -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -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 -pthread  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o media-stream.o media-stream.c
sed -e 's,[@]libexecdir[@],/usr/lib/telepathy,' < telepathy-haze.8.in > telepathy-haze.8
media-backend.c:534:27: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
  534 |                           guint errno,
      |                           ^~~~~
media-backend.c: In function ‘session_handler_iface_init’:
media-backend.c:611:12: error: passing argument 2 of ‘tp_svc_media_session_handler_implement_error’ from incompatible pointer type [-Wincompatible-pointer-types]
  611 |     klass, haze_media_backend_##x)
      |            ^~~~~~~~~~~~~~~~~~~
      |            |
      |            void (*)(TpSvcMediaSessionHandler *, guint * (*)(), const gchar *, DBusGMethodInvocation *) {aka void (*)(struct _TpSvcMediaSessionHandler *, unsigned int * (*)(), const char *, struct _DBusGMethodInvocation *)}
media-backend.c:612:3: note: in expansion of macro ‘IMPLEMENT’
  612 |   IMPLEMENT(error);
      |   ^~~~~~~~~
In file included from /usr/include/telepathy-1.0/telepathy-glib/svc-media-interfaces.h:8,
                 from media-backend.c:27:
/usr/include/telepathy-1.0/telepathy-glib/_gen/tp-svc-media-session-handler.h:28:130: note: expected ‘tp_svc_media_session_handler_error_impl’ {aka ‘void (*)(struct _TpSvcMediaSessionHandler *, unsigned int,  const char *, struct _DBusGMethodInvocation *)’} but argument is of type ‘void (*)(TpSvcMediaSessionHandler *, guint * (*)(), const gchar *, DBusGMethodInvocation *)’ {aka ‘void (*)(struct _TpSvcMediaSessionHandler *, unsigned int * (*)(), const char *, struct _DBusGMethodInvocation *)’}
   28 | void tp_svc_media_session_handler_implement_error (TpSvcMediaSessionHandlerClass *klass, tp_svc_media_session_handler_error_impl impl);
      |                                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
make[3]: *** [Makefile:574: media-backend.o] Error 1
make[3]: *** Waiting for unfinished jobs....
media-manager.c:349:28: warning: ‘anon_channel_allowed_properties’ defined but not used [-Wunused-const-variable=]
  349 | static const gchar * const anon_channel_allowed_properties[] = {
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
media-channel.c: In function ‘pending_stream_request_maybe_satisfy’:
media-channel.c:250:41: warning: cast between incompatible function types from ‘void (*)(GValueArray *)’ {aka ‘void (*)(struct _GValueArray *)’} to ‘void (*)(void *, void *)’ [-Wcast-function-type]
  250 |               g_ptr_array_foreach (ret, (GFunc) g_value_array_free, NULL);
      |                                         ^
media-channel.c: In function ‘media_state_changed_cb’:
media-channel.c:460:15: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
  460 |               (GFunc) pending_stream_request_free, NULL);
      |               ^
media-channel.c: In function ‘haze_media_channel_list_streams’:
media-channel.c:1123:29: warning: cast between incompatible function types from ‘void (*)(GValueArray *)’ {aka ‘void (*)(struct _GValueArray *)’} to ‘void (*)(void *, void *)’ [-Wcast-function-type]
 1123 |   g_ptr_array_foreach (ret, (GFunc) g_value_array_free, NULL);
      |                             ^
media-channel.c: In function ‘haze_media_channel_get_session_handlers’:
media-channel.c:1719:29: warning: cast between incompatible function types from ‘void (*)(GValueArray *)’ {aka ‘void (*)(struct _GValueArray *)’} to ‘void (*)(void *, void *)’ [-Wcast-function-type]
 1719 |   g_ptr_array_foreach (ret, (GFunc) g_value_array_free, NULL);
      |                             ^
media-stream.c:852:32: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
  852 |                                guint errno,
      |                                ^~~~~
media-stream.c: In function ‘stream_handler_iface_init’:
media-stream.c:1385:12: error: passing argument 2 of ‘tp_svc_media_stream_handler_implement_error’ from incompatible pointer type [-Wincompatible-pointer-types]
 1385 |     klass, haze_media_stream_##x##suffix)
      |            ^~~~~~~~~~~~~~~~~~
      |            |
      |            void (*)(TpSvcMediaStreamHandler *, guint * (*)(), const gchar *, DBusGMethodInvocation *) {aka void (*)(struct _TpSvcMediaStreamHandler *, unsigned int * (*)(), const char *, struct _DBusGMethodInvocation *)}
media-stream.c:1387:3: note: in expansion of macro ‘IMPLEMENT’
 1387 |   IMPLEMENT(error,_async);
      |   ^~~~~~~~~
In file included from /usr/include/telepathy-1.0/telepathy-glib/svc-media-interfaces.h:9,
                 from media-stream.c:32:
/usr/include/telepathy-1.0/telepathy-glib/_gen/tp-svc-media-stream-handler.h:41:127: note: expected ‘tp_svc_media_stream_handler_error_impl’ {aka ‘void (*)(struct _TpSvcMediaStreamHandler *, unsigned int,  const char *, struct _DBusGMethodInvocation *)’} but argument is of type ‘void (*)(TpSvcMediaStreamHandler *, guint * (*)(), const gchar *, DBusGMethodInvocation *)’ {aka ‘void (*)(struct _TpSvcMediaStreamHandler *, unsigned int * (*)(), const char *, struct _DBusGMethodInvocation *)’}
   41 | void tp_svc_media_stream_handler_implement_error (TpSvcMediaStreamHandlerClass *klass, tp_svc_media_stream_handler_error_impl impl);
      |                                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
make[3]: *** [Makefile:574: media-stream.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:436: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:367: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:6: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-telepathy-maintainers mailing list