Bug#983994: bloboats: ftbfs with GCC-11
Matthias Klose
doko at debian.org
Wed Mar 3 16:10:52 GMT 2021
Package: src:bloboats
Version: 1.0.2+dfsg-3
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-11
[This bug is not targeted to the upcoming bullseye release]
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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.
The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/bloboats_1.0.2+dfsg-3_unstable_gcc11.log
The last lines of the build log are at the end of this report.
To build with GCC 11, either set CC=gcc-11 CXX=g++-11 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-11/porting_to.html
GCC 11 defaults to the GNU++17 standard. If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.
[...]
src/menu.cpp:3333:84: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3333 | menutext("C-CWISE"), menutext("CWISE"), menutext("JUMP"), menutext("TURN"),
| ^~~~~~
src/menu.cpp:3334:26: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3334 | menutext("ZOOM IN"), menutext("ZOOM OUT"), menutext("PAUSE"), menutext("BACK") };
| ^~~~~~~~~
src/menu.cpp:3334:47: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3334 | menutext("ZOOM IN"), menutext("ZOOM OUT"), menutext("PAUSE"), menutext("BACK") };
| ^~~~~~~~~~
src/menu.cpp:3334:69: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3334 | menutext("ZOOM IN"), menutext("ZOOM OUT"), menutext("PAUSE"), menutext("BACK") };
| ^~~~~~~
src/menu.cpp:3334:88: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3334 | menutext("ZOOM IN"), menutext("ZOOM OUT"), menutext("PAUSE"), menutext("BACK") };
| ^~~~~~
src/menu.cpp:3378:69: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3378 | setkey( KEY_THRUST, "*THRUST KEY?" );
| ^~~~~~~~~~~~~~
src/menu.cpp:3381:70: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3381 | setkey( KEY_REVERSE, "*REVERSE KEY?" );
| ^~~~~~~~~~~~~~~
src/menu.cpp:3384:66: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3384 | setkey( KEY_CCW, "*C-CWISE KEY?" );
| ^~~~~~~~~~~~~~~
src/menu.cpp:3387:65: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3387 | setkey( KEY_CW, "*CWISE KEY?" );
| ^~~~~~~~~~~~~
src/menu.cpp:3390:67: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3390 | setkey( KEY_JUMP, "*JUMP KEY?" );
| ^~~~~~~~~~~~
src/menu.cpp:3393:67: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3393 | setkey( KEY_TURN, "*TURN KEY?" );
| ^~~~~~~~~~~~
src/menu.cpp:3396:69: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3396 | setkey( KEY_ZOOMIN, "*ZOOM IN KEY?" );
| ^~~~~~~~~~~~~~~
src/menu.cpp:3399:70: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3399 | setkey( KEY_ZOOMOUT, "*ZOOM OUT KEY?" );
| ^~~~~~~~~~~~~~~~
src/menu.cpp:3402:68: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3402 | setkey( KEY_PAUSE, "*PAUSE KEY?" );
| ^~~~~~~~~~~~~
src/menu.cpp: In member function ‘void menu::soundoptions()’:
src/menu.cpp:3623:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3623 | menutext item[items]={ menutext("*SOUND OPTIONS:"), menutext(""), menutext(""), menutext("BACK") };
| ^~~~~~~~~~~~~~~~~
src/menu.cpp:3623:70: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3623 | menutext item[items]={ menutext("*SOUND OPTIONS:"), menutext(""), menutext(""), menutext("BACK") };
| ^~
src/menu.cpp:3623:84: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3623 | menutext item[items]={ menutext("*SOUND OPTIONS:"), menutext(""), menutext(""), menutext("BACK") };
| ^~
src/menu.cpp:3623:98: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
3623 | menutext item[items]={ menutext("*SOUND OPTIONS:"), menutext(""), menutext(""), menutext("BACK") };
| ^~~~~~
make[2]: *** [<builtin>: src/menu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
src/models/paatti.cpp: In constructor ‘paatti::paatti(double, double, double, double, char*)’:
src/models/paatti.cpp:53:25: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
53 | if (!loadmodel( "models/paatti.mdl" , cx, cy, angle, scale, hardness, -400.0) ) {
| ^~~~~~~~~~~~~~~~~~~
src/models/paatti.cpp:54:87: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
54 | fprintf (stderr, "Couldn't interpret \"%s\"! Critical!\n", Path->data("models/paatti.mdl") );
| ^~~~~~~~~~~~~~~~~~~
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 DATADIR=/usr/share/games/bloboats returned exit code 2
make[1]: *** [debian/rules:8: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
More information about the Pkg-games-devel
mailing list