Bug#853712: xmoto: ftbfs with GCC-7

Matthias Klose doko at debian.org
Tue Jan 31 09:36:52 UTC 2017


Package: src:xmoto
Version: 0.5.11+dfsg-6
Severity: normal
Tags: sid buster
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-7

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-7/g++-7, but succeeds to build with gcc-6/g++-6. The
severity of this report may be raised before the buster release.
There is no need to fix this issue in time for the stretch release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc7-20170126/xmoto_0.5.11+dfsg-6_unstable_gcc7.log
The last lines of the build log are at the end of this report.

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

[...]
                 from Theme.cpp:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: format output between 3 and 4 bytes into a destination of size 3
        __bos (__s), __fmt, __va_arg_pack ());
                                            ^
Theme.cpp: In member function 'void Theme::newAnimationSpriteFromXML(xmlNodePtr, bool, const char*)':
Theme.cpp:399:6: warning: '%02i' directive output may be truncated writing between 2 and 10 bytes into a region of size 3 [-Wformat-truncation=]
 void Theme::newAnimationSpriteFromXML(xmlNodePtr pElem, bool v_isTexture, const char* fileDir) {
      ^~~~~
Theme.cpp:399:6: note: directive argument in the range [0, 2147483646]
In file included from /usr/include/stdio.h:938:0,
                 from /usr/include/c++/7/cstdio:42,
                 from /usr/include/c++/7/ext/string_conversions.h:43,
                 from /usr/include/c++/7/bits/basic_string.h:6142,
                 from /usr/include/c++/7/string:52,
                 from Theme.h:24,
                 from Theme.cpp:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: format output between 3 and 11 bytes into a destination of size 3
        __bos (__s), __fmt, __va_arg_pack ());
                                            ^
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xmoto\" -DVERSION=\"0.5.11\" -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 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DXMOTO_LITTLE_ENDIAN=1 -DHAVE_SQLITE3_H=1 -DHAVE_LIBSQLITE3=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBPNG=1 -DHAVE_XML2=1 -DHAVE_LIBBZ2=1 -DHAVE_LIBXDG_BASEDIR=1 -DHAVE_LIBGLU=1 -DHAVE_ICONV_H=1 -DHAVE_LIBSDL_MIXER=1 -DHAVE_LIBSDL_NET=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_PTHREAD=1 -DHAVE_LIBM=1 -DHAVE_LUA5_1_LUA_H=1 -DLUA_COMPAT_MODULE=1 -DHAVE_LIBCURL=1 -DHAVE_VISIBILITY=1 -DHAVE_STDINT_H_WITH_UINTMAX=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DINTDIV0_RAISES_SIGFPE=1 -DHAVE_INTTYPES_H_WIT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L_GETC_UNLOCKED=1 -DHAVE_LANGINFO_CODESET=1 -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libxml2 -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/xmoto-0.5.11+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include -DHAVEDGETCONFIGURATION=1 -DNOMMGR -Wall -DGAMEDATADIR=\"/usr/share/games/xmoto\" -DLOCALESDIR=\"/usr/share/games/locale\" -DASIAN_TTF_FILE=\"/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc\" -DALLOW_DEV=0 -DCONFIGURE_DEFAULT_THEME=\"Modern\" -pthread -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_OPENGL=1 -DUSE_SDLGFX=0 -D'SVN_REV=""'  -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/xmoto-0.5.11+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include -c -o WWW.o WWW.cpp
WWW.cpp: In static member function 'static void FSWeb::downloadFile(const string&, const string&, int (*)(void*, double, double, double, double), void*, const ProxySettings*)':
WWW.cpp:209:70: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   if( (v_destinationFile = fopen(v_local_file_tmp.c_str(), "wb")) == false) {
                                                                      ^~~~~
WWW.cpp: In static member function 'static void FSWeb::uploadReplay(const string&, const string&, const string&, const string&, const string&, WWWAppInterface*, const ProxySettings*, bool&, std::__cxx11::string&)':
WWW.cpp:323:66: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) {
                                                                  ^~~~~
WWW.cpp: In static member function 'static void FSWeb::sendVote(const string&, const string&, const string&, bool, const string&, const string&, const string&, WWWAppInterface*, const ProxySettings*, bool&, std::__cxx11::string&)':
WWW.cpp:481:66: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) {
                                                                  ^~~~~
WWW.cpp: In static member function 'static void FSWeb::sendReport(const string&, const string&, const string&, WWWAppInterface*, const ProxySettings*, bool&, std::__cxx11::string&)':
WWW.cpp:565:66: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) {
                                                                  ^~~~~
WWW.cpp: In static member function 'static void FSWeb::uploadDbSync(const string&, const string&, const string&, const string&, int, const string&, WWWAppInterface*, const ProxySettings*, bool&, std::__cxx11::string&, const string&)':
WWW.cpp:680:66: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   if( (v_destinationFile = fopen(p_answerFile.c_str(), "wb")) == false) {
                                                                  ^~~~~
Makefile:2075: recipe for target 'WWW.o' failed
make[2]: *** [WWW.o] Error 1
make[2]: Leaving directory '/<<BUILDDIR>>/xmoto-0.5.11+dfsg/src'
Makefile:518: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/<<BUILDDIR>>/xmoto-0.5.11+dfsg'
dh_auto_build: make -j1 returned exit code 2
debian/rules:9: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2



More information about the Pkg-games-devel mailing list