Bug#957409: koules: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:03:46 BST 2020


Package: src:koules
Version: 1.4-26
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/koules_1.4-26_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

[...]
      |                                                                    int *
In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:269,
                 from sock.c:22:
/usr/include/x86_64-linux-gnu/bits/socket2.h:65:49: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’
   65 |    __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len)
      |                           ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
server.c: In function ‘contact’:
server.c:681:19: warning: variable ‘in_host’ set but not used [-Wunused-but-set-variable]
  681 |   char           *in_host, version = 1;
      |                   ^~~~~~~
gcc -g -O2 -fno-strict-aliasing    -Ixlib     -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO   -DONLYANSI -DSOUND -DJOYSTICK -DNETSUPPORT -DMITSHM -DHAVEUSLEEP -Wall -fomit-frame-pointer -O6  -ffast-math  -Ixlib	 -DASSEMBLY	-DSOUNDSERVER=\"/usr/lib/games/koules/koules.sndsrv.linux\" 	-DSOUNDDIR=\"/usr/lib/games/koules\" 	-DSOUNDDEV=\"/dev/dsp\"  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o objectsio.o objectsio.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from koules.h:23,
                 from objectsio.c:20:
/usr/include/features.h:185:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  185 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
gcc -g -O2 -fno-strict-aliasing    -Ixlib     -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO   -DONLYANSI -DSOUND -DJOYSTICK -DNETSUPPORT -DMITSHM -DHAVEUSLEEP -Wall -fomit-frame-pointer -O6  -ffast-math  -Ixlib	 -DASSEMBLY	-DSOUNDSERVER=\"/usr/lib/games/koules/koules.sndsrv.linux\" 	-DSOUNDDIR=\"/usr/lib/games/koules\" 	-DSOUNDDEV=\"/dev/dsp\"  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o mygetopt.o mygetopt.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/string.h:26,
                 from mygetopt.c:38:
/usr/include/features.h:185:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  185 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
gcc -g -O2 -fno-strict-aliasing    -Ixlib     -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO   -DONLYANSI -DSOUND -DJOYSTICK -DNETSUPPORT -DMITSHM -DHAVEUSLEEP -Wall -fomit-frame-pointer -O6  -ffast-math  -Ixlib	 -DASSEMBLY	-DSOUNDSERVER=\"/usr/lib/games/koules/koules.sndsrv.linux\" 	-DSOUNDDIR=\"/usr/lib/games/koules\" 	-DSOUNDDEV=\"/dev/dsp\"  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o koules.sndsrv.linux.o koules.sndsrv.linux.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from koules.sndsrv.linux.c:12:
/usr/include/features.h:185:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  185 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
koules.sndsrv.linux.c: In function ‘do_everything’:
koules.sndsrv.linux.c:247:15: warning: pointer targets in assignment from ‘signed char *’ to ‘char *’ differ in signedness [-Wpointer-sign]
  247 |        sample = sound_buffer[playing[i]] + position[i] * fragsize;
      |               ^
koules.sndsrv.linux.c: In function ‘read_sound’:
koules.sndsrv.linux.c:169:3: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  169 |   read (fd, sound_buffer[k], size);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
koules.sndsrv.linux.c: In function ‘do_everything’:
koules.sndsrv.linux.c:265:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  265 |       write (dsp, final, fragsize);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
rm -f koules.sndsrv.linux
gcc -o koules.sndsrv.linux -g -O2 -fno-strict-aliasing        koules.sndsrv.linux.o       
server.c: In function ‘Outro’:
server.c:560:21: warning: array subscript 12 is above array bounds of ‘long int[12]’ [-Warray-bounds]
  560 |   sizes[message[0]] += size;
      |                     ^~
server.c:79:17: note: while referencing ‘sizes’
   79 | static long     sizes[MAXPACKET];
      |                 ^~~~~
server.c:560:21: warning: array subscript 12 is above array bounds of ‘long int[12]’ [-Warray-bounds]
  560 |   sizes[message[0]] += size;
      |   ~~~~~~~~~~~~~~~~~~^~~~~~~
server.c:79:17: note: while referencing ‘sizes’
   79 | static long     sizes[MAXPACKET];
      |                 ^~~~~
rm -f xkoules
gcc -o xkoules -g -O2 -fno-strict-aliasing       koules.o menu.o gameplan.o font.o intro.o  rcfiles.o        framebuffer.o cmap-x11.o sound.o nas_sound.o rsound.o client.o server.o sock.o objectsio.o mygetopt.o util/libutils.a xlib/libxlib.a  -lXext -lX11   -lm      
/usr/bin/ld: server.o:(.bss+0x10000): multiple definition of `controls'; koules.o:/<<PKGBUILDDIR>>/koules.c:53: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1113: xkoules] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" KOULESDIR=/usr/games SOUNDDIR=/usr/lib/games/koules MANDIR=/usr/share/man/man6 returned exit code 2
make[1]: *** [debian/rules:15: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-games-devel mailing list