Bug#1133450: cube2: ftbfs with GCC-16

Emanuele Rocca ema at debian.org
Mon Apr 13 14:02:22 BST 2026


Package: src:cube2
Version: 0.0.20201227+dfsg-2
Severity: important
Tags: sid forky ftbfs
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-16

Hi,

cube2 fails to build in a test rebuild on at least amd64 and arm64 with
gcc-16/g++-16, but builds properly with gcc-15/g++-15. The severity of this
report will be raised before the forky release.

The full build log can be found at:
https://people.debian.org/~ema/gcc-16-rebuilds/output-1/cube2_arm64.build.xz

The last lines of the build log are at the end of this report.

To build with GCC 16, either set CC=gcc-16 CXX=g++-16 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures include unused (but set) variables, array subscripts
partly outside array bounds, and new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-16/porting_to.html

Please only close this issue after double-checking that the package can be
built correctly with GCC 16.

Please do not reassign this bug to another package. If a fix in another package
is required, then file a bug for the other package (or clone), and mark this
bug as blocked by the bug in the other package.

[...]


                 from /usr/include/c++/16/cmath:3913,
                 from /usr/include/c++/16/math.h:36,
                 from shared/cube.h:9:
/usr/include/c++/16/new:168:7: note: ‘void* operator new(std::size_t, void*)’ previously defined here
  168 | void* operator new(std::size_t, void* __p)
      |       ^~~~~~~~
shared/tools.h:40:14: error: redefinition of ‘void* operator new [](size_t, void*)’
   40 | inline void *operator new[](size_t, void *p) { return p; }
      |              ^~~~~~~~
/usr/include/c++/16/new:172:7: note: ‘void* operator new [](std::size_t, void*)’ previously defined here
  172 | void* operator new[](std::size_t, void* __p)
      |       ^~~~~~~~
shared/tools.h:41:13: error: redefinition of ‘void operator delete(void*, void*)’
   41 | inline void operator delete(void *, void *) {}
      |             ^~~~~~~~
/usr/include/c++/16/new:177:35: note: ‘void operator delete(void*, void*)’ previously defined here
  177 | _GLIBCXX_PLACEMENT_CONSTEXPR void operator delete  (void*, void*)
      |                                   ^~~~~~~~
shared/tools.h:42:13: error: redefinition of ‘void operator delete [](void*, void*)’
   42 | inline void operator delete[](void *, void *) {}
      |             ^~~~~~~~
/usr/include/c++/16/new:180:35: note: ‘void operator delete [](void*, void*)’ previously defined here
  180 | _GLIBCXX_PLACEMENT_CONSTEXPR void operator delete[](void*, void*)
      |                                   ^~~~~~~~
make[2]: *** [Makefile:183: fpsgame/entities-standalone.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:183: shared/tools-standalone.o] Error 1
make[2]: *** [Makefile:183: engine/worldio-standalone.o] Error 1
make[2]: *** [Makefile:183: engine/server-standalone.o] Error 1
make[2]: *** [Makefile:183: shared/crypto-standalone.o] Error 1
make[2]: *** [Makefile:183: shared/stream-standalone.o] Error 1
make[2]: *** [Makefile:183: engine/command-standalone.o] Error 1
make[2]: *** [Makefile:183: fpsgame/server-standalone.o] Error 1
In file included from shared/cube.h:54:
shared/tools.h:39:14: error: redefinition of ‘void* operator new(size_t, void*)’
   39 | inline void *operator new(size_t, void *p) { return p; }
      |              ^~~~~~~~
In file included from /usr/include/c++/16/bits/stl_iterator.h:75,
                 from /usr/include/c++/16/bits/stl_algobase.h:66,
                 from /usr/include/c++/16/bits/specfun.h:44,
                 from /usr/include/c++/16/cmath:3913,
                 from /usr/include/c++/16/math.h:36,
                 from shared/cube.h:9:
/usr/include/c++/16/new:168:7: note: ‘void* operator new(std::size_t, void*)’ previously defined here
  168 | void* operator new(std::size_t, void* __p)
      |       ^~~~~~~~
shared/tools.h:40:14: error: redefinition of ‘void* operator new [](size_t, void*)’
   40 | inline void *operator new[](size_t, void *p) { return p; }
      |              ^~~~~~~~
/usr/include/c++/16/new:172:7: note: ‘void* operator new [](std::size_t, void*)’ previously defined here
  172 | void* operator new[](std::size_t, void* __p)
      |       ^~~~~~~~
shared/tools.h:41:13: error: redefinition of ‘void operator delete(void*, void*)’
   41 | inline void operator delete(void *, void *) {}
      |             ^~~~~~~~
/usr/include/c++/16/new:177:35: note: ‘void operator delete(void*, void*)’ previously defined here
  177 | _GLIBCXX_PLACEMENT_CONSTEXPR void operator delete  (void*, void*)
      |                                   ^~~~~~~~
shared/tools.h:42:13: error: redefinition of ‘void operator delete [](void*, void*)’
   42 | inline void operator delete[](void *, void *) {}
      |             ^~~~~~~~
/usr/include/c++/16/new:180:35: note: ‘void operator delete [](void*, void*)’ previously defined here
  180 | _GLIBCXX_PLACEMENT_CONSTEXPR void operator delete[](void*, void*)
      |                                   ^~~~~~~~
make[2]: *** [Makefile:179: shared/cube.h.gch] Error 1
make[2]: Leaving directory '/build/reproducible-path/cube2-0.0.20201227+dfsg'
dh_auto_build: error: make -j128 INSTALL="install --strip-program=true" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cube2-0.0.20201227+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2 -ffile-prefix-map=/build/reproducible-path/cube2-0.0.20201227+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-z,relro -Wl,-z,now" client server returned exit code 2
make[1]: *** [debian/rules:9: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/cube2-0.0.20201227+dfsg'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2



More information about the Pkg-games-devel mailing list