Bug#957864: teg: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:11:58 BST 2020


Package: src:teg
Version: 0.11.2+debian-8
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-10

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-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/teg_0.11.2+debian-8_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 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-10/porting_to.html

[...]
In file included from /usr/include/string.h:495,
                 from inputfd.c:25:
In function ‘strncpy’,
    inlined from ‘clitok_reconnect’ at inputfd.c:866:4:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 49 bytes from a string of length 49 [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../intl -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -DBINDIR=\"/usr/games\" -DTHEMEDIR=\"/usr/share/pixmaps/teg_pix/themes/\"  -Wdate-time -D_FORTIFY_SOURCE=2 -isystem /usr/include -isystem /usr/local/include  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -Wall -c -o themes.o themes.c
gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../intl -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -DBINDIR=\"/usr/games\" -DTHEMEDIR=\"/usr/share/pixmaps/teg_pix/themes/\"  -Wdate-time -D_FORTIFY_SOURCE=2 -isystem /usr/include -isystem /usr/local/include  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -Wall -c -o metaserver.o metaserver.c
In function ‘strncpy’,
    inlined from ‘clitok_newplayer’ at inputfd.c:921:3:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 49 bytes from a string of length 49 [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../intl -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -DBINDIR=\"/usr/games\" -DTHEMEDIR=\"/usr/share/pixmaps/teg_pix/themes/\"  -Wdate-time -D_FORTIFY_SOURCE=2 -isystem /usr/include -isystem /usr/local/include  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -Wall -c -o ggz_client.o ggz_client.c
metaserver.c: In function ‘parse_server_entry’:
metaserver.c:57:9: warning: pointer targets in assignment from ‘xmlChar *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness [-Wpointer-sign]
   57 |    name = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
      |         ^
metaserver.c:66:9: warning: pointer targets in assignment from ‘xmlChar *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness [-Wpointer-sign]
   66 |    port = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
      |         ^
metaserver.c:75:12: warning: pointer targets in assignment from ‘xmlChar *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness [-Wpointer-sign]
   75 |    version = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
      |            ^
metaserver.c:84:12: warning: pointer targets in assignment from ‘xmlChar *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness [-Wpointer-sign]
   84 |    comment = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
      |            ^
metaserver.c: In function ‘metaserver_parse_xml’:
metaserver.c:134:16: warning: pointer targets in assignment from ‘xmlChar *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness [-Wpointer-sign]
  134 |  theme_version = xmlGetProp(cur, (const xmlChar *) "version");
      |                ^
metaserver.c: In function ‘metaserver_get_servers’:
metaserver.c:222:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  222 |       (void *)s, XML_CHAR_ENCODING_NONE);
      |       ^
themes.c: In function ‘theme_enum_themes’:
themes.c:799:32: warning: ‘%s’ directive output may be truncated writing up to 2999 bytes into a region of size 999 [-Wformat-truncation=]
  799 |    snprintf(buf,sizeof(buf)-1,"%s/%s/teg_theme.xml",lugares[i],e->d_name);
      |                                ^~
In file included from /usr/include/stdio.h:867,
                 from themes.c:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 16 and 3270 bytes into a destination of size 999
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rm -f libclient.a
ar cru libclient.a globals.o player.o misc.o inputfd.o outputfd.o countries.o helper.o fichas.o attack.o reagrupe.o ejer2.o canje.o themes.o metaserver.o ggz_client.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libclient.a
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -Wall  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -L/usr/lib -L/usr/local/lib -o tegclient main.o gui-gnome/libguiclient.a -lgoocanvas-2.0 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lcairo   libclient.a  ../common/libtegcommon.a   -lglib-2.0 -lxml2 
libtool: link: gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -Wall -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o tegclient main.o  -L/usr/lib -L/usr/local/lib gui-gnome/libguiclient.a -lgoocanvas-2.0 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lcairo libclient.a ../common/libtegcommon.a -lglib-2.0 -lxml2
/usr/bin/ld: gui-gnome/libguiclient.a(priv.o):(.bss+0x10): multiple definition of `gui_private'; gui-gnome/libguiclient.a(gui.o):(.bss+0x100): first defined here
/usr/bin/ld: gui-gnome/libguiclient.a(armies.o):./client/gui-gnome/armies.c:58: multiple definition of `item_x'; gui-gnome/libguiclient.a(g_country.o):./client/gui-gnome/g_country.c:52: first defined here
/usr/bin/ld: gui-gnome/libguiclient.a(armies.o):./client/gui-gnome/armies.c:58: multiple definition of `item_y'; gui-gnome/libguiclient.a(g_country.o):./client/gui-gnome/g_country.c:52: first defined here
/usr/bin/ld: gui-gnome/libguiclient.a(armies.o):./client/gui-gnome/armies.c:57: multiple definition of `new_x'; gui-gnome/libguiclient.a(g_country.o):./client/gui-gnome/g_country.c:51: first defined here
/usr/bin/ld: gui-gnome/libguiclient.a(armies.o):./client/gui-gnome/armies.c:57: multiple definition of `new_y'; gui-gnome/libguiclient.a(g_country.o):./client/gui-gnome/g_country.c:51: first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:553: tegclient] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/client'
make[3]: *** [Makefile:618: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/client'
make[2]: *** [Makefile:471: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:403: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:7: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-games-devel mailing list