Bug#1096448: cogl: ftbfs with GCC-15

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


Package: src:cogl
Version: 1.22.8-5
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/cogl_1.22.8-5_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

[...]
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cogl-path.c:67:1: note: in expansion of macro 'COGL_GTYPE_DEFINE_CLASS'
   67 | COGL_GTYPE_DEFINE_CLASS (Path, path);
      | ^~~~~~~~~~~~~~~~~~~~~~~
cogl-path.c: In function '_cogl_path_build_fill_attribute_buffer':
cogl-path.c:1361:20: error: passing argument 3 of 'gluTessCallback' from incompatible pointer type [-Wincompatible-pointer-types]
 1361 |                    _cogl_path_tesselator_begin);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                    |
      |                    void (*)(GLenum,  CoglPathTesselator *) {aka void (*)(unsigned int,  struct _CoglPathTesselator *)}
In file included from cogl-path.c:49:
tesselator/tesselator.h:57:70: note: expected 'void (*)(void)' but argument is of type 'void (*)(GLenum,  CoglPathTesselator *)' {aka 'void (*)(unsigned int,  struct _CoglPathTesselator *)'}
   57 | void gluTessCallback (GLUtesselator* tess, GLenum which, _GLUfuncptr CallBackFunc);
      |                                                          ~~~~~~~~~~~~^~~~~~~~~~~~
cogl-path.c:1094:1: note: '_cogl_path_tesselator_begin' declared here
 1094 | _cogl_path_tesselator_begin (GLenum type,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cogl-path.c:1363:20: error: passing argument 3 of 'gluTessCallback' from incompatible pointer type [-Wincompatible-pointer-types]
 1363 |                    _cogl_path_tesselator_vertex);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                    |
      |                    void (*)(void *, CoglPathTesselator *) {aka void (*)(void *, struct _CoglPathTesselator *)}
tesselator/tesselator.h:57:70: note: expected 'void (*)(void)' but argument is of type 'void (*)(void *, CoglPathTesselator *)' {aka 'void (*)(void *, struct _CoglPathTesselator *)'}
   57 | void gluTessCallback (GLUtesselator* tess, GLenum which, _GLUfuncptr CallBackFunc);
      |                                                          ~~~~~~~~~~~~^~~~~~~~~~~~
cogl-path.c:1164:1: note: '_cogl_path_tesselator_vertex' declared here
 1164 | _cogl_path_tesselator_vertex (void *vertex_data,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cogl-path.c:1365:20: error: passing argument 3 of 'gluTessCallback' from incompatible pointer type [-Wincompatible-pointer-types]
 1365 |                    _cogl_path_tesselator_end);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                    |
      |                    void (*)(CoglPathTesselator *) {aka void (*)(struct _CoglPathTesselator *)}
tesselator/tesselator.h:57:70: note: expected 'void (*)(void)' but argument is of type 'void (*)(CoglPathTesselator *)' {aka 'void (*)(struct _CoglPathTesselator *)'}
   57 | void gluTessCallback (GLUtesselator* tess, GLenum which, _GLUfuncptr CallBackFunc);
      |                                                          ~~~~~~~~~~~~^~~~~~~~~~~~
cogl-path.c:1223:1: note: '_cogl_path_tesselator_end' declared here
 1223 | _cogl_path_tesselator_end (CoglPathTesselator *tess)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
cogl-path.c:1367:20: error: passing argument 3 of 'gluTessCallback' from incompatible pointer type [-Wincompatible-pointer-types]
 1367 |                    _cogl_path_tesselator_combine);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                    |
      |                    void (*)(double *, void **, float *, void **, CoglPathTesselator *) {aka void (*)(double *, void **, float *, void **, struct _CoglPathTesselator *)}
tesselator/tesselator.h:57:70: note: expected 'void (*)(void)' but argument is of type 'void (*)(double *, void **, float *, void **, CoglPathTesselator *)' {aka 'void (*)(double *, void **, float *, void **, struct _CoglPathTesselator *)'}
   57 | void gluTessCallback (GLUtesselator* tess, GLenum which, _GLUfuncptr CallBackFunc);
      |                                                          ~~~~~~~~~~~~^~~~~~~~~~~~
cogl-path.c:1229:1: note: '_cogl_path_tesselator_combine' declared here
 1229 | _cogl_path_tesselator_combine (double coords[3],
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:910: libcogl_path_la-cogl-path.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
tesselator/tess.c:415:46: warning: argument 2 of type 'double[3]' with mismatched bound [-Warray-parameter=]
  415 | gluTessVertex( GLUtesselator *tess, GLdouble coords[3], void *data )
In file included from ./tesselator/GL/glu.h:33,
                 from tesselator/tess.h:38,
                 from tesselator/tess.c:40:
./tesselator/GL/../tesselator.h:62:50: note: previously declared as 'double *'
   62 | void gluTessVertex (GLUtesselator* tess, double *location, GLvoid* data);
      |                                          ~~~~~~~~^~~~~~~~
make[4]: Leaving directory '/build/reproducible-path/cogl-1.22.8/cogl-path'
make[3]: *** [Makefile:685: all] Error 2
make[3]: Leaving directory '/build/reproducible-path/cogl-1.22.8/cogl-path'
make[2]: *** [Makefile:608: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/cogl-1.22.8'
make[1]: *** [Makefile:535: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/cogl-1.22.8'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the pkg-gnome-maintainers mailing list