Bug#811617: FTBFS with GCC 6: cannot convert x to y

Martin Michlmayr tbm at hpe.com
Wed Jan 20 00:21:55 UTC 2016


Package: supertransball2
Version: 1.5-7
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-cannot-convert

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> c++ -c -g3 -O3 auxiliar.cpp -o auxiliar.o -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -I/usr/local/include/SDL
> auxiliar.cpp: In function 'SDL_Surface* load_maskedimage(char*, char*, char*)':
> auxiliar.cpp:51:19: error: cannot convert 'bool' to 'SDL_Surface*' in return
>    mask==0) return false;
>                    ^~~~~
> 
> Makefile:17: recipe for target 'auxiliar.o' failed
> make[2]: *** [auxiliar.o] Error 1

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the Pkg-games-devel mailing list