Bug#1075702: yorick-gy: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:49:52 BST 2024


Package: src:yorick-gy
Version: 0.0.5-2
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/yorick-gy_0.0.5-2_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

[...]
   71 |             fprintf(stderr, "single linked list", 0);
      |                             ^~~~~~~~~~~~~~~~~~~~
gy_object.c: In function ‘gy_Object_extract’:
gy_object.c:159:24: error: initialization of ‘GList *’ {aka ‘struct _GList *’} from incompatible pointer type ‘GObject *’ {aka ‘struct _GObject *’} [-Wincompatible-pointer-types]
  159 |           GList* lst = o->object;
      |                        ^
gy_object.c:165:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  165 |           while (lst=lst->next) ++sz;
      |                  ^~~
gy_object.c:192:27: error: assignment to ‘GObject *’ {aka ‘struct _GObject *’} from incompatible pointer type ‘GList *’ {aka ‘struct _GList *’} [-Wincompatible-pointer-types]
  192 |             out -> object = ((GList*) o->object) -> next;
      |                           ^
gy_object.c:194:27: error: assignment to ‘GObject *’ {aka ‘struct _GObject *’} from incompatible pointer type ‘GList *’ {aka ‘struct _GList *’} [-Wincompatible-pointer-types]
  194 |             out -> object = ((GList*) o->object) -> prev;
      |                           ^
gy_object.c:327:23: warning: duplicate ‘const’ declaration specifier [-Wduplicate-decl-specifier]
  327 |     static const char const * sigprefix = "signal_";
      |                       ^~~~~
gy_object.c: In function ‘gy_Object_eval’:
gy_object.c:395:18: error: initialization of ‘GList *’ {aka ‘struct _GList *’} from incompatible pointer type ‘GObject *’ {aka ‘struct _GObject *’} [-Wincompatible-pointer-types]
  395 |     GList* lst = o->object;
      |                  ^
gy_object.c:440:9: warning: ‘GParameter’ is deprecated [-Wdeprecated-declarations]
  440 |         GParameter *parameters=NULL;
      |         ^~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:28,
                 from /usr/include/glib-2.0/gobject/gbinding.h:31,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from /usr/include/gobject-introspection-1.0/girepository.h:26,
                 from gy.h:20,
                 from gy_object.c:20:
/usr/include/glib-2.0/gobject/gparam.h:278:8: note: declared here
  278 | struct _GParameter /* auxiliary structure for _setv() variants */
      |        ^~~~~~~~~~~
gy_object.c:442:11: warning: ‘GParameter’ is deprecated [-Wdeprecated-declarations]
  442 |           parameters=g_new0(GParameter, n_parameters);
      |           ^~~~~~~~~~
/usr/include/glib-2.0/gobject/gparam.h:278:8: note: declared here
  278 | struct _GParameter /* auxiliary structure for _setv() variants */
      |        ^~~~~~~~~~~
gy_object.c:442:11: warning: ‘GParameter’ is deprecated [-Wdeprecated-declarations]
  442 |           parameters=g_new0(GParameter, n_parameters);
      |           ^~~~~~~~~~
/usr/include/glib-2.0/gobject/gparam.h:278:8: note: declared here
  278 | struct _GParameter /* auxiliary structure for _setv() variants */
      |        ^~~~~~~~~~~
gy_object.c:455:73: warning: passing argument 2 of ‘gy_base_info_find_property_info’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  455 |             cur = gy_base_info_find_property_info(o->info, parameters[p].name);
      |                                                            ~~~~~~~~~~~~~^~~~~
gy.h:114:56: note: expected ‘char *’ but argument is of type ‘const gchar *’ {aka ‘const char *’}
  114 |                                                 char * name);
      |                                                 ~~~~~~~^~~~
gy_object.c:469:11: warning: ‘g_object_newv’ is deprecated: Use 'g_object_new_with_properties' instead [-Wdeprecated-declarations]
  469 |           g_object_newv(g_registered_type_info_get_g_type(o->info),
      |           ^~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gobject.h:444:13: note: declared here
  444 | gpointer    g_object_newv                     (GType           object_type,
      |             ^~~~~~~~~~~~~
make[1]: *** [<builtin>: gy_object.o] Error 1
gy_callback.c: In function ‘Y_gy_signal_connect’:
gy_callback.c:270:3: warning: ‘data’ may be used uninitialized [-Wmaybe-uninitialized]
  270 |   __gy_signal_connect(o->object, o->info, o->repo, sig, cmd, data);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gy_callback.c:267:9: note: ‘data’ was declared here
  267 |   void* data;
      |         ^~~~
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:4: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the debian-science-maintainers mailing list