Bug#984238: minetest: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:15:32 GMT 2021


Package: src:minetest
Version: 5.3.0+repack-2
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/minetest_5.3.0+repack-2_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.

[...]
      |                       ^~~~~~~~
[ 78%] Building CXX object src/CMakeFiles/minetest.dir/util/string.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DUSE_CMAKE_CONFIG_H -I/usr/include/postgresql -I/usr/include/leveldb -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/src -I/usr/include/irrlicht -I/usr/include/AL -I/usr/include/luajit-2.1 -I/usr/include/jsoncpp -I/<<PKGBUILDDIR>>/src/script -I/usr/include/freetype2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -DNDEBUG -Wall   -Wall -pipe -funroll-loops -O3 -fomit-frame-pointer -fno-math-errno -fno-trapping-math -ffinite-math-only -fno-signed-zeros -std=gnu++11 -o CMakeFiles/minetest.dir/util/string.cpp.o -c /<<PKGBUILDDIR>>/src/util/string.cpp
[ 78%] Building CXX object src/CMakeFiles/minetest.dir/util/timetaker.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DUSE_CMAKE_CONFIG_H -I/usr/include/postgresql -I/usr/include/leveldb -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/src -I/usr/include/irrlicht -I/usr/include/AL -I/usr/include/luajit-2.1 -I/usr/include/jsoncpp -I/<<PKGBUILDDIR>>/src/script -I/usr/include/freetype2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -DNDEBUG -Wall   -Wall -pipe -funroll-loops -O3 -fomit-frame-pointer -fno-math-errno -fno-trapping-math -ffinite-math-only -fno-signed-zeros -std=gnu++11 -o CMakeFiles/minetest.dir/util/timetaker.cpp.o -c /<<PKGBUILDDIR>>/src/util/timetaker.cpp
[ 78%] Building CXX object src/CMakeFiles/minetest.dir/ban.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DUSE_CMAKE_CONFIG_H -I/usr/include/postgresql -I/usr/include/leveldb -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/src -I/usr/include/irrlicht -I/usr/include/AL -I/usr/include/luajit-2.1 -I/usr/include/jsoncpp -I/<<PKGBUILDDIR>>/src/script -I/usr/include/freetype2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -DNDEBUG -Wall   -Wall -pipe -funroll-loops -O3 -fomit-frame-pointer -fno-math-errno -fno-trapping-math -ffinite-math-only -fno-signed-zeros -std=gnu++11 -o CMakeFiles/minetest.dir/ban.cpp.o -c /<<PKGBUILDDIR>>/src/ban.cpp
[ 78%] Building CXX object src/CMakeFiles/minetest.dir/chat.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DUSE_CMAKE_CONFIG_H -I/usr/include/postgresql -I/usr/include/leveldb -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/src -I/usr/include/irrlicht -I/usr/include/AL -I/usr/include/luajit-2.1 -I/usr/include/jsoncpp -I/<<PKGBUILDDIR>>/src/script -I/usr/include/freetype2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -DNDEBUG -Wall   -Wall -pipe -funroll-loops -O3 -fomit-frame-pointer -fno-math-errno -fno-trapping-math -ffinite-math-only -fno-signed-zeros -std=gnu++11 -o CMakeFiles/minetest.dir/chat.cpp.o -c /<<PKGBUILDDIR>>/src/chat.cpp
[ 78%] Building CXX object src/CMakeFiles/minetest.dir/clientiface.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DUSE_CMAKE_CONFIG_H -I/usr/include/postgresql -I/usr/include/leveldb -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/src -I/usr/include/irrlicht -I/usr/include/AL -I/usr/include/luajit-2.1 -I/usr/include/jsoncpp -I/<<PKGBUILDDIR>>/src/script -I/usr/include/freetype2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -DNDEBUG -Wall   -Wall -pipe -funroll-loops -O3 -fomit-frame-pointer -fno-math-errno -fno-trapping-math -ffinite-math-only -fno-signed-zeros -std=gnu++11 -o CMakeFiles/minetest.dir/clientiface.cpp.o -c /<<PKGBUILDDIR>>/src/clientiface.cpp
[ 78%] Building CXX object src/CMakeFiles/minetest.dir/collision.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DUSE_CMAKE_CONFIG_H -I/usr/include/postgresql -I/usr/include/leveldb -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/src -I/usr/include/irrlicht -I/usr/include/AL -I/usr/include/luajit-2.1 -I/usr/include/jsoncpp -I/<<PKGBUILDDIR>>/src/script -I/usr/include/freetype2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -DNDEBUG -Wall   -Wall -pipe -funroll-loops -O3 -fomit-frame-pointer -fno-math-errno -fno-trapping-math -ffinite-math-only -fno-signed-zeros -std=gnu++11 -o CMakeFiles/minetest.dir/collision.cpp.o -c /<<PKGBUILDDIR>>/src/collision.cpp
In file included from /<<PKGBUILDDIR>>/src/clientiface.cpp:21:
/<<PKGBUILDDIR>>/src/clientiface.h:437:36: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
  437 |         ClientInterface(const std::shared_ptr<con::Connection> &con);
      |                                    ^~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/clientiface.cpp:21:
/<<PKGBUILDDIR>>/src/clientiface.h:33:1: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
   32 | #include <set>
  +++ |+#include <memory>
   33 | #include <mutex>
In file included from /<<PKGBUILDDIR>>/src/clientiface.cpp:21:
/<<PKGBUILDDIR>>/src/clientiface.h:437:46: error: expected ‘,’ or ‘...’ before ‘<’ token
  437 |         ClientInterface(const std::shared_ptr<con::Connection> &con);
      |                                              ^
/<<PKGBUILDDIR>>/src/clientiface.h:510:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
  510 |         std::shared_ptr<con::Connection> m_con;
      |              ^~~~~~~~~~
/<<PKGBUILDDIR>>/src/clientiface.h:510:9: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
  510 |         std::shared_ptr<con::Connection> m_con;
      |         ^~~
/<<PKGBUILDDIR>>/src/clientiface.cpp:626:1: error: no declaration matches ‘ClientInterface::ClientInterface(const std::shared_ptr<con::Connection>&)’
  626 | ClientInterface::ClientInterface(const std::shared_ptr<con::Connection> & con)
      | ^~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/clientiface.cpp:21:
/<<PKGBUILDDIR>>/src/clientiface.h:432:7: note: candidates are: ‘ClientInterface::ClientInterface(const ClientInterface&)’
  432 | class ClientInterface {
      |       ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/clientiface.h:437:9: note:                 ‘ClientInterface::ClientInterface(int)’
  437 |         ClientInterface(const std::shared_ptr<con::Connection> &con);
      |         ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/clientiface.h:432:7: note: ‘class ClientInterface’ defined here
  432 | class ClientInterface {
      |       ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/clientiface.cpp: In member function ‘void ClientInterface::send(session_t, irr::u8, NetworkPacket*, bool)’:
/<<PKGBUILDDIR>>/src/clientiface.cpp:723:9: error: ‘m_con’ was not declared in this scope; did you mean ‘con’?
  723 |         m_con->Send(peer_id, channelnum, pkt, reliable);
      |         ^~~~~
      |         con
/<<PKGBUILDDIR>>/src/clientiface.cpp: In member function ‘void ClientInterface::sendToAll(NetworkPacket*)’:
/<<PKGBUILDDIR>>/src/clientiface.cpp:733:25: error: ‘m_con’ was not declared in this scope; did you mean ‘con’?
  733 |                         m_con->Send(client->peer_id,
      |                         ^~~~~
      |                         con
/<<PKGBUILDDIR>>/src/clientiface.cpp: In member function ‘void ClientInterface::sendToAllCompat(NetworkPacket*, NetworkPacket*, irr::u16)’:
/<<PKGBUILDDIR>>/src/clientiface.cpp:758:17: error: ‘m_con’ was not declared in this scope; did you mean ‘con’?
  758 |                 m_con->Send(client->peer_id,
      |                 ^~~~~
      |                 con
make[3]: *** [src/CMakeFiles/minetest.dir/build.make:3023: src/CMakeFiles/minetest.dir/clientiface.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:486: src/CMakeFiles/minetest.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:174: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j4 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:46: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2



More information about the Pkg-games-devel mailing list