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

Martin Michlmayr tbm at hpe.com
Wed Jan 20 00:36:04 UTC 2016


Package: scorched3d
Version: 43.3.d+dfsg-1.1
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
...
> g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"scorched3d\" -DVERSION=\"43\" -DHAVE_OGG=1 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 -DHAVE_VASPRINTF=1 -DHAVE_ASPRINTF=1 -DHAVE_ICONV=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ICONV_H=1 -I.  -I../../common/porting -I../../common -I../../client -I../../server  -I/usr/include -I/usr/include -I/usr/include/AL -I/usr/include/AL -I/usr/include/freetype2 -I/usr/include -I/usr/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/X11R6/include -I/usr/X11R6 -I/usr/local/include  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -DS3D_DOCDIR=\"/usr/share/doc/scorched3d\" -DS3D_DATADIR=\"/usr/share/games/scorched3d\" -DS
> 3D_BINDIR=\"/usr/games\" -MT WeaponDelay.o -MD -MP -MF .deps/WeaponDelay.Tpo -c -o WeaponDelay.o `test -f '../../common/weapons/WeaponDelay.cpp' || echo './'`../../common/weapons/WeaponDelay.cpp
> ../../common/weapons/AccessoryStore.cpp: In member function 'AccessoryPart* AccessoryStore::createAccessoryPart(AccessoryCreateContext&, Accessory*, XMLNode*)':
> ../../common/weapons/AccessoryStore.cpp:158:64: error: cannot convert 'bool' to 'AccessoryPart*' in return
>   if (!currentNode->getNamedParameter("type", typeNode)) return false;
>                                                                 ^~~~~
> 

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



More information about the Pkg-games-devel mailing list