Bug#1052729: cogl: FTBFS: ../config.h:20:25: error: missing binary operator before token "~"

Lucas Nussbaum lucas at debian.org
Tue Sep 26 13:36:14 BST 2023


Source: cogl
Version: 1.22.8-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230925 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I.. -I./deprecated -I./winsys -I./driver/gl -I./driver/gl/gl -I./driver/gl/gles  -DG_LOG_DOMAIN=\"Cogl\" -DCOGL_COMPILATION -DCOGL_GL_LIBNAME=\"libGL.so.1\" -DCOGL_GLES1_LIBNAME=\"\" -DCOGL_GLES2_LIBNAME=\"libGLESv2.so.2\" -DCOGL_LOCALEDIR=\""/usr/share/locale"\"  -DCOGL_DEFAULT_DRIVER=\"gl\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/libdrm   -DCOGL_GL_DEBUG -DCOGL_OBJECT_DEBUG -DCOGL_ENABLE_DEBUG -Wall -Wcast-align -Wformat -Wformat-security -Werror=uninitialized -Werror=empty-body -Werror=init-self -Werror=undef -Werror=declaration-after-statement -Werror=vla -Werror=pointer-arith -Werror=missing-declarations -Werror=maybe-uninitialized -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cogl-enum-types.lo cogl-enum-types.c
> winsys/cogl-winsys-egl-kms.c: In function ‘crtc_copy’:
> winsys/cogl-winsys-egl-kms.c:636:3: warning: ‘g_memdup’ is deprecated: Use 'g_memdup2' instead [-Wdeprecated-declarations]
>   636 |   new->connectors = g_memdup (from->connectors, from->count * sizeof(uint32_t));
>       |   ^~~
> In file included from /usr/include/glib-2.0/glib/gstring.h:37,
>                  from /usr/include/glib-2.0/glib/giochannel.h:36,
>                  from /usr/include/glib-2.0/glib.h:56,
>                  from winsys/cogl-winsys-egl-kms.c:49:
> /usr/include/glib-2.0/glib/gstrfuncs.h:350:23: note: declared here
>   350 | gpointer              g_memdup         (gconstpointer mem,
>       |                       ^~~~~~~~
> In file included from ../cogl/cogl-macros.h:36,
>                  from ../cogl/cogl-texture.h:52,
>                  from ../cogl/cogl-framebuffer.h:60,
>                  from ../cogl/cogl-primitive.h:48,
>                  from ../cogl/cogl-context.h:47,
>                  from ./cogl-onscreen.h:41,
>                  from winsys/cogl-winsys-private.h:35,
>                  from winsys/cogl-winsys-egl-kms-private.h:36,
>                  from winsys/cogl-winsys-egl-kms.c:55:
> winsys/cogl-winsys-egl-kms.c: In function ‘_cogl_winsys_onscreen_swap_buffers_with_damage’:
> ../config.h:20:25: error: missing binary operator before token "~"
>    20 | #define COGL_GBM_MICRO 0~rc4
>       |                         ^
> ../cogl/cogl-version.h:159:7: note: in definition of macro ‘COGL_VERSION_ENCODE’
>   159 |    | (micro))
>       |       ^~~~~
> winsys/cogl-winsys-egl-kms.c:920:59: note: in expansion of macro ‘COGL_GBM_MICRO’
>   920 | #if (COGL_VERSION_ENCODE (COGL_GBM_MAJOR, COGL_GBM_MINOR, COGL_GBM_MICRO) >= \
>       |                                                           ^~~~~~~~~~~~~~
> winsys/cogl-winsys-egl-kms.c:924:12: warning: implicit declaration of function ‘gbm_bo_get_pitch’; did you mean ‘gbm_bo_get_width’? [-Wimplicit-function-declaration]
>   924 |   stride = gbm_bo_get_pitch (kms_onscreen->next_bo);
>       |            ^~~~~~~~~~~~~~~~
>       |            gbm_bo_get_width
> make[5]: *** [Makefile:1786: winsys/cogl-winsys-egl-kms.lo] Error 1


The full build log is available from:
http://qa-logs.debian.net/2023/09/25/cogl_1.22.8-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230925;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230925&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the pkg-gnome-maintainers mailing list