[Debichem-devel] Bug#1078386: gnome-chemistry-utils: FTBFS: gunicode.h:809:34: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

Lucas Nussbaum lucas at debian.org
Sat Aug 10 06:52:19 BST 2024


Source: gnome-chemistry-utils
Version: 0.14.17-6.2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240809 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=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  -I../.. -I../../libs -I/usr/include/libgoffice-0.10 -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/libgsf-1 -I/usr/include/libxml2 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/librsvg-2.0 -pthread  -Wall -Wextra -Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o wedge.lo wedge.cc
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../libs -I/usr/include/libgoffice-0.10 -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/libgsf-1 -I/usr/include/libxml2 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/librsvg-2.0 -pthread -Wall -Wextra -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c wedge.cc  -fPIC -DPIC -o .libs/wedge.o
> In file included from /usr/include/glib-2.0/glib/gstring.h:35,
>                  from /usr/include/glib-2.0/glib/giochannel.h:36,
>                  from /usr/include/glib-2.0/glib.h:56,
>                  from /usr/include/libgoffice-0.10/goffice/goffice.h:24,
>                  from ../../libs/gcu/macros.h:28,
>                  from canvas.h:28,
>                  from text.cc:26:
> text.cc: In member function 'bool gccv::Text::OnKeyPressed(GdkEventKey*)':
> /usr/include/glib-2.0/glib/gunicode.h:809:34: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
>   809 | #define g_utf8_next_char(p) ((p) + g_utf8_skip[*(const guchar *)(p)])
>       |                             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>       |                                  |
>       |                                  const char*
> text.cc:1129:35: note: in expansion of macro 'g_utf8_next_char'
>  1129 |                         char *p = g_utf8_next_char (s + m_CurPos);
>       |                                   ^~~~~~~~~~~~~~~~
> /usr/include/glib-2.0/glib/gunicode.h:809:34: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
>   809 | #define g_utf8_next_char(p) ((p) + g_utf8_skip[*(const guchar *)(p)])
>       |                             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>       |                                  |
>       |                                  const char*
> text.cc:1140:35: note: in expansion of macro 'g_utf8_next_char'
>  1140 |                         char *p = g_utf8_next_char (s + m_CurPos);
>       |                                   ^~~~~~~~~~~~~~~~
> /usr/include/glib-2.0/glib/gunicode.h:809:34: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
>   809 | #define g_utf8_next_char(p) ((p) + g_utf8_skip[*(const guchar *)(p)])
>       |                             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>       |                                  |
>       |                                  const char*
> text.cc:1227:27: note: in expansion of macro 'g_utf8_next_char'
>  1227 |                 char *p = g_utf8_next_char (s + m_CurPos);
>       |                           ^~~~~~~~~~~~~~~~
> make[4]: *** [Makefile:630: text.lo] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/08/09/gnome-chemistry-utils_0.14.17-6.2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240809;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240809&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 Debichem-devel mailing list