Bug#984004: briquolo: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:11:02 GMT 2021


Package: src:briquolo
Version: 0.5.7-9
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/briquolo_0.5.7-9_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.

[...]
                 from MOGL_ElementPanneau.cpp:23:
MOGL_PoliceTTF.h:142:25: warning: unnecessary parentheses in declaration of ‘_Correspondance’ [-Wparentheses]
  142 |     MOGL_Struct_Carac * (_Correspondance[256-32]);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
MOGL_PoliceTTF.h:142:25: note: remove parentheses
  142 |     MOGL_Struct_Carac * (_Correspondance[256-32]);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                         -                       -
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DSRCTOPDIR=\"/<<PKGBUILDDIR>>\"  -DDATADIR_BRIQUOLO=\"/usr/share/games/briquolo\" -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -I/usr/include/libpng16 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o MOGL_Fenetre.o MOGL_Fenetre.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DSRCTOPDIR=\"/<<PKGBUILDDIR>>\"  -DDATADIR_BRIQUOLO=\"/usr/share/games/briquolo\" -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -I/usr/include/libpng16 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o MOGL_FenetreKit.o MOGL_FenetreKit.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DSRCTOPDIR=\"/<<PKGBUILDDIR>>\"  -DDATADIR_BRIQUOLO=\"/usr/share/games/briquolo\" -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -I/usr/include/libpng16 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o MOGL_GenerateurParticule.o MOGL_GenerateurParticule.cpp
MOGL_EnsembleObjet.cpp: In member function ‘bool MOGL_EnsembleObjet::ChargerArmaturePeau(char*, MOGL_GestionnaireTexture)’:
MOGL_EnsembleObjet.cpp:260:16: warning: variable ‘PtNum’ set but not used [-Wunused-but-set-variable]
  260 |   unsigned int PtNum[3];
      |                ^~~~~
MOGL_Fenetre.cpp: In member function ‘bool MOGL_Fenetre::Initialiser()’:
MOGL_Fenetre.cpp:112:30: warning: variable ‘info’ set but not used [-Wunused-but-set-variable]
  112 |         const SDL_VideoInfo* info;
      |                              ^~~~
MOGL_Fenetre.cpp: In member function ‘bool MOGL_Fenetre::SetMode(int, int, bool)’:
MOGL_Fenetre.cpp:349:30: warning: variable ‘info’ set but not used [-Wunused-but-set-variable]
  349 |         const SDL_VideoInfo* info;
      |                              ^~~~
MOGL_Fenetre.cpp: In member function ‘void MOGL_Fenetre::_ManualResize(int, int)’:
MOGL_Fenetre.cpp:538:26: warning: variable ‘info’ set but not used [-Wunused-but-set-variable]
  538 |     const SDL_VideoInfo* info;
      |                          ^~~~
In file included from /usr/include/c++/11/map:60,
                 from MOGL_Fenetre.h:36,
                 from MOGL_Fenetre.cpp:22:
/usr/include/c++/11/bits/stl_tree.h: In instantiation of ‘static const _Key& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_S_key(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type) [with _Key = MOGL_Fenetre::MOGL_Resolution; _Val = MOGL_Fenetre::MOGL_Resolution; _KeyOfValue = std::_Identity<MOGL_Fenetre::MOGL_Resolution>; _Compare = MOGL_Fenetre::CompareResolution; _Alloc = std::allocator<MOGL_Fenetre::MOGL_Resolution>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const std::_Rb_tree_node<MOGL_Fenetre::MOGL_Resolution>*]’:
/usr/include/c++/11/bits/stl_tree.h:2069:47:   required from ‘std::pair<std::_Rb_tree_node_base*, std::_Rb_tree_node_base*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_unique_pos(const key_type&) [with _Key = MOGL_Fenetre::MOGL_Resolution; _Val = MOGL_Fenetre::MOGL_Resolution; _KeyOfValue = std::_Identity<MOGL_Fenetre::MOGL_Resolution>; _Compare = MOGL_Fenetre::CompareResolution; _Alloc = std::allocator<MOGL_Fenetre::MOGL_Resolution>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::key_type = MOGL_Fenetre::MOGL_Resolution]’
/usr/include/c++/11/bits/stl_tree.h:2122:4:   required from ‘std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = MOGL_Fenetre::MOGL_Resolution; _Key = MOGL_Fenetre::MOGL_Resolution; _Val = MOGL_Fenetre::MOGL_Resolution; _KeyOfValue = std::_Identity<MOGL_Fenetre::MOGL_Resolution>; _Compare = MOGL_Fenetre::CompareResolution; _Alloc = std::allocator<MOGL_Fenetre::MOGL_Resolution>]’
/usr/include/c++/11/bits/stl_set.h:521:25:   required from ‘std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = MOGL_Fenetre::MOGL_Resolution; _Compare = MOGL_Fenetre::CompareResolution; _Alloc = std::allocator<MOGL_Fenetre::MOGL_Resolution>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<MOGL_Fenetre::MOGL_Resolution, MOGL_Fenetre::MOGL_Resolution, std::_Identity<MOGL_Fenetre::MOGL_Resolution>, MOGL_Fenetre::CompareResolution, std::allocator<MOGL_Fenetre::MOGL_Resolution> >::const_iterator; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other = std::allocator<MOGL_Fenetre::MOGL_Resolution>; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<MOGL_Fenetre::MOGL_Resolution>, MOGL_Fenetre::MOGL_Resolution>::rebind<MOGL_Fenetre::MOGL_Resolution>; typename _Alloc::value_type = MOGL_Fenetre::MOGL_Resolution; std::set<_Key, _Compare, _Alloc>::value_type = MOGL_Fenetre::MOGL_Resolution]’
MOGL_Fenetre.cpp:70:66:   required from here
/usr/include/c++/11/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const
  770 |               is_invocable_v<const _Compare&, const _Key&, const _Key&>,
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/stl_tree.h:770:15: note: ‘std::is_invocable_v<const MOGL_Fenetre::CompareResolution&, const MOGL_Fenetre::MOGL_Resolution&, const MOGL_Fenetre::MOGL_Resolution&>’ evaluates to false
make[4]: *** [Makefile:482: MOGL_Fenetre.o] Error 1
make[4]: *** Waiting for unfinished jobs....
MOGL_FenetreKit.cpp: In member function ‘void MOGL_FenetreKit::Clavier(SDL_keysym*)’:
MOGL_FenetreKit.cpp:86:36: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
   86 |       _Fenetre.ScreenshotPrefixBMP("mogl");
      |                                    ^~~~~~
In file included from MOGL_GenerateurParticule.cpp:22:
MOGL_GenerateurParticule.h:55:20: warning: unnecessary parentheses in declaration of ‘_TabParticule’ [-Wparentheses]
   55 |     MOGL_Particule (*(* _TabParticule));
      |                    ^~~~~~~~~~~~~~~~~~~~
MOGL_GenerateurParticule.h:55:20: note: remove parentheses
   55 |     MOGL_Particule (*(* _TabParticule));
      |                    ^~~~~~~~~~~~~~~~~~~~
      |                    -                  -
MOGL_GenerateurParticule.h:55:22: warning: unnecessary parentheses in declaration of ‘_TabParticule’ [-Wparentheses]
   55 |     MOGL_Particule (*(* _TabParticule));
      |                      ^~~~~~~~~~~~~~~~~
MOGL_GenerateurParticule.h:55:22: note: remove parentheses
   55 |     MOGL_Particule (*(* _TabParticule));
      |                      ^~~~~~~~~~~~~~~~~
      |                      -               -
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/MOGL'
make[3]: *** [Makefile:509: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:291: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:227: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:7: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-games-devel mailing list