Bug#957249: gamazons: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:00:54 BST 2020


Package: src:gamazons
Version: 0.83-9
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/gamazons_0.83-9_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

[...]
 2019 |   fscanf(theme_fd, "%s", buffer);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
moves.c:2025:3: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2025 |   fscanf(theme_fd, "%s", buffer);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
moves.c:2031:3: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2031 |   fscanf(theme_fd, "%s", buffer);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
moves.c:2037:3: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2037 |   fscanf(theme_fd, "%s", buffer);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
moves.c:2043:3: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2043 |   fscanf(theme_fd, "%s", buffer);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
moves.c:2049:3: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2049 |   fscanf(theme_fd, "%s", buffer);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,--as-needed -o gamazons  main.o support.o interface.o callbacks.o board.o bstate.o eval.o moves.o unit-test.o -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 
/usr/bin/ld: callbacks.o:./src/amazons.h:135: multiple definition of `heval_calls'; main.o:./src/amazons.h:135: first defined here
/usr/bin/ld: callbacks.o:./src/amazons.h:134: multiple definition of `tt_lookup_finds'; main.o:./src/amazons.h:134: first defined here
/usr/bin/ld: callbacks.o:./src/amazons.h:133: multiple definition of `tt_lookups'; main.o:./src/amazons.h:133: first defined here
/usr/bin/ld: callbacks.o:./src/amazons.h:132: multiple definition of `tt_updates'; main.o:./src/amazons.h:132: first defined here
/usr/bin/ld: callbacks.o:./src/amazons.h:130: multiple definition of `tt_stores'; main.o:./src/amazons.h:130: first defined here
/usr/bin/ld: callbacks.o:./src/amazons.h:129: multiple definition of `tt_overwrite'; main.o:./src/amazons.h:129: first defined here
/usr/bin/ld: callbacks.o:./src/amazons.h:78: multiple definition of `tt'; main.o:./src/amazons.h:78: first defined here
/usr/bin/ld: board.o:./src/amazons.h:135: multiple definition of `heval_calls'; main.o:./src/amazons.h:135: first defined here
/usr/bin/ld: board.o:./src/amazons.h:134: multiple definition of `tt_lookup_finds'; main.o:./src/amazons.h:134: first defined here
/usr/bin/ld: board.o:./src/amazons.h:133: multiple definition of `tt_lookups'; main.o:./src/amazons.h:133: first defined here
/usr/bin/ld: board.o:./src/amazons.h:132: multiple definition of `tt_updates'; main.o:./src/amazons.h:132: first defined here
/usr/bin/ld: board.o:./src/amazons.h:130: multiple definition of `tt_stores'; main.o:./src/amazons.h:130: first defined here
/usr/bin/ld: board.o:./src/amazons.h:129: multiple definition of `tt_overwrite'; main.o:./src/amazons.h:129: first defined here
/usr/bin/ld: board.o:./src/amazons.h:78: multiple definition of `tt'; main.o:./src/amazons.h:78: first defined here
/usr/bin/ld: bstate.o:./src/amazons.h:135: multiple definition of `heval_calls'; main.o:./src/amazons.h:135: first defined here
/usr/bin/ld: bstate.o:./src/amazons.h:134: multiple definition of `tt_lookup_finds'; main.o:./src/amazons.h:134: first defined here
/usr/bin/ld: bstate.o:./src/amazons.h:133: multiple definition of `tt_lookups'; main.o:./src/amazons.h:133: first defined here
/usr/bin/ld: bstate.o:./src/amazons.h:132: multiple definition of `tt_updates'; main.o:./src/amazons.h:132: first defined here
/usr/bin/ld: bstate.o:./src/amazons.h:130: multiple definition of `tt_stores'; main.o:./src/amazons.h:130: first defined here
/usr/bin/ld: bstate.o:./src/amazons.h:129: multiple definition of `tt_overwrite'; main.o:./src/amazons.h:129: first defined here
/usr/bin/ld: bstate.o:./src/amazons.h:78: multiple definition of `tt'; main.o:./src/amazons.h:78: first defined here
/usr/bin/ld: eval.o:./src/amazons.h:78: multiple definition of `tt'; main.o:./src/amazons.h:78: first defined here
/usr/bin/ld: eval.o:./src/amazons.h:133: multiple definition of `tt_lookups'; main.o:./src/amazons.h:133: first defined here
/usr/bin/ld: eval.o:./src/amazons.h:134: multiple definition of `tt_lookup_finds'; main.o:./src/amazons.h:134: first defined here
/usr/bin/ld: eval.o:./src/amazons.h:130: multiple definition of `tt_stores'; main.o:./src/amazons.h:130: first defined here
/usr/bin/ld: eval.o:./src/amazons.h:129: multiple definition of `tt_overwrite'; main.o:./src/amazons.h:129: first defined here
/usr/bin/ld: eval.o:./src/amazons.h:132: multiple definition of `tt_updates'; main.o:./src/amazons.h:132: first defined here
/usr/bin/ld: eval.o:./src/amazons.h:135: multiple definition of `heval_calls'; main.o:./src/amazons.h:135: first defined here
/usr/bin/ld: moves.o:./src/amazons.h:129: multiple definition of `tt_overwrite'; main.o:./src/amazons.h:129: first defined here
/usr/bin/ld: moves.o:./src/amazons.h:130: multiple definition of `tt_stores'; main.o:./src/amazons.h:130: first defined here
/usr/bin/ld: moves.o:./src/amazons.h:132: multiple definition of `tt_updates'; main.o:./src/amazons.h:132: first defined here
/usr/bin/ld: moves.o:./src/amazons.h:133: multiple definition of `tt_lookups'; main.o:./src/amazons.h:133: first defined here
/usr/bin/ld: moves.o:./src/amazons.h:134: multiple definition of `tt_lookup_finds'; main.o:./src/amazons.h:134: first defined here
/usr/bin/ld: moves.o:./src/amazons.h:135: multiple definition of `heval_calls'; main.o:./src/amazons.h:135: first defined here
/usr/bin/ld: moves.o:./src/amazons.h:78: multiple definition of `tt'; main.o:./src/amazons.h:78: first defined here
/usr/bin/ld: unit-test.o:./src/amazons.h:135: multiple definition of `heval_calls'; main.o:./src/amazons.h:135: first defined here
/usr/bin/ld: unit-test.o:./src/amazons.h:134: multiple definition of `tt_lookup_finds'; main.o:./src/amazons.h:134: first defined here
/usr/bin/ld: unit-test.o:./src/amazons.h:133: multiple definition of `tt_lookups'; main.o:./src/amazons.h:133: first defined here
/usr/bin/ld: unit-test.o:./src/amazons.h:132: multiple definition of `tt_updates'; main.o:./src/amazons.h:132: first defined here
/usr/bin/ld: unit-test.o:./src/amazons.h:130: multiple definition of `tt_stores'; main.o:./src/amazons.h:130: first defined here
/usr/bin/ld: unit-test.o:./src/amazons.h:129: multiple definition of `tt_overwrite'; main.o:./src/amazons.h:129: first defined here
/usr/bin/ld: unit-test.o:./src/amazons.h:78: multiple definition of `tt'; main.o:./src/amazons.h:78: first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:205: gamazons] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:161: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:311: all-recursive-am] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:5: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-games-devel mailing list