Bug#1037865: spring: ftbfs with GCC-13

Matthias Klose doko at debian.org
Wed Jun 14 10:31:39 BST 2023


Package: src:spring
Version: 106.0+dfsg-1
Severity: normal
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-13

[This bug is targeted to the upcoming trixie 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-13/g++-13, but succeeds to build with gcc-12/g++-12. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2023/05/22/logs/spring_106.0+dfsg-1_unstable_gccexp.log
The last lines of the build log are at the end of this report.

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

[...]
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/rts/aGui && /usr/bin/c++ -DASIO_STANDALONE -DSPRING_DATADIR=\"/usr/share/games/spring:/usr/lib/spring\" -DSTREFLOP_SSE -DSYNCCHECK -DTHREADPOOL -D_GLIBCXX_USE_NANOSLEEP -D_RANDOM_TCC -I/<<PKGBUILDDIR>>/rts/lib/lua/include -I/<<PKGBUILDDIR>>/include/AL -I/<<PKGBUILDDIR>>/rts -I/usr/include/IL -I/<<PKGBUILDDIR>>/include/SDL2 -I/usr/include/SDL2 -I/<<PKGBUILDDIR>>/rts/lib/slimsig/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -std=c++17 -fdiagnostics-color=auto -march=x86-64 -msse -mfpmath=sse -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-avx -mno-fma -mno-fma4 -mno-xop -mno-lwp -mno-avx2 -fsingle-precision-constant -frounding-math -mieee-fp -pipe -fno-strict-aliasing  -fvisibility=hidden  -fvisibility-inlines-hidden -pthread  -O2      -Wformat -Wformat-security -DNDEBUG -g -MD -MT rts/aGui/CMakeFiles/engineaGui.dir/VerticalLayout.cpp.o -MF CMakeFiles/engineaGui.dir/VerticalLayout.cpp.o.d -o CMakeFiles/engineaGui.dir/VerticalLayout.cpp.o -c /<<PKGBUILDDIR>>/rts/aGui/VerticalLayout.cpp
In file included from /<<PKGBUILDDIR>>/rts/Rendering/GL/RenderDataBuffer.hpp:12,
                 from /<<PKGBUILDDIR>>/rts/Rendering/Fonts/glFont.h:12,
                 from /<<PKGBUILDDIR>>/rts/aGui/LineEdit.cpp:7:
/<<PKGBUILDDIR>>/rts/Rendering/Shaders/Shader.h:16:32: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
   16 | struct fast_hash : public std::unary_function<int, size_t>
      |                                ^~~~~~~~~~~~~~
In file included from /usr/include/c++/13/string:49,
                 from /<<PKGBUILDDIR>>/rts/aGui/LineEdit.h:6,
                 from /<<PKGBUILDDIR>>/rts/aGui/LineEdit.cpp:3:
/usr/include/c++/13/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
[  9%] Building CXX object rts/aGui/CMakeFiles/engineaGui.dir/Window.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/rts/aGui && /usr/bin/c++ -DASIO_STANDALONE -DSPRING_DATADIR=\"/usr/share/games/spring:/usr/lib/spring\" -DSTREFLOP_SSE -DSYNCCHECK -DTHREADPOOL -D_GLIBCXX_USE_NANOSLEEP -D_RANDOM_TCC -I/<<PKGBUILDDIR>>/rts/lib/lua/include -I/<<PKGBUILDDIR>>/include/AL -I/<<PKGBUILDDIR>>/rts -I/usr/include/IL -I/<<PKGBUILDDIR>>/include/SDL2 -I/usr/include/SDL2 -I/<<PKGBUILDDIR>>/rts/lib/slimsig/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -std=c++17 -fdiagnostics-color=auto -march=x86-64 -msse -mfpmath=sse -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-avx -mno-fma -mno-fma4 -mno-xop -mno-lwp -mno-avx2 -fsingle-precision-constant -frounding-math -mieee-fp -pipe -fno-strict-aliasing  -fvisibility=hidden  -fvisibility-inlines-hidden -pthread  -O2      -Wformat -Wformat-security -DNDEBUG -g -MD -MT rts/aGui/CMakeFiles/engineaGui.dir/Window.cpp.o -MF CMakeFiles/engineaGui.dir/Window.cpp.o.d -o CMakeFiles/engineaGui.dir/Window.cpp.o -c /<<PKGBUILDDIR>>/rts/aGui/Window.cpp
In file included from /<<PKGBUILDDIR>>/rts/Rendering/GL/RenderDataBuffer.hpp:12,
                 from /<<PKGBUILDDIR>>/rts/Rendering/Fonts/glFont.h:12,
                 from /<<PKGBUILDDIR>>/rts/aGui/List.cpp:7:
/<<PKGBUILDDIR>>/rts/Rendering/Shaders/Shader.h:16:32: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
   16 | struct fast_hash : public std::unary_function<int, size_t>
      |                                ^~~~~~~~~~~~~~
In file included from /usr/include/c++/13/string:49,
                 from /<<PKGBUILDDIR>>/rts/aGui/List.h:6,
                 from /<<PKGBUILDDIR>>/rts/aGui/List.cpp:3:
/usr/include/c++/13/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:3173: rts/Sim/CMakeFiles/engineSim.dir/all] Error 2
In file included from /<<PKGBUILDDIR>>/rts/Rendering/GL/RenderDataBuffer.hpp:12,
                 from /<<PKGBUILDDIR>>/rts/Rendering/Fonts/glFont.h:12,
                 from /<<PKGBUILDDIR>>/rts/aGui/TextElement.cpp:6:
/<<PKGBUILDDIR>>/rts/Rendering/Shaders/Shader.h:16:32: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
   16 | struct fast_hash : public std::unary_function<int, size_t>
      |                                ^~~~~~~~~~~~~~
In file included from /usr/include/c++/13/string:49,
                 from /<<PKGBUILDDIR>>/rts/aGui/TextElement.h:6,
                 from /<<PKGBUILDDIR>>/rts/aGui/TextElement.cpp:3:
/usr/include/c++/13/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/rts/Rendering/GL/RenderDataBuffer.hpp:12,
                 from /<<PKGBUILDDIR>>/rts/Rendering/Fonts/glFont.h:12,
                 from /<<PKGBUILDDIR>>/rts/aGui/Window.cpp:11:
/<<PKGBUILDDIR>>/rts/Rendering/Shaders/Shader.h:16:32: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
   16 | struct fast_hash : public std::unary_function<int, size_t>
      |                                ^~~~~~~~~~~~~~
In file included from /usr/include/c++/13/string:49,
                 from /<<PKGBUILDDIR>>/rts/aGui/Window.h:6,
                 from /<<PKGBUILDDIR>>/rts/aGui/Window.cpp:5:
/usr/include/c++/13/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:3121: rts/System/Sound/CMakeFiles/sound.dir/all] Error 2
[  9%] Linking CXX static library libengineaGui.a
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/rts/aGui && /usr/bin/cmake -P CMakeFiles/engineaGui.dir/cmake_clean_target.cmake
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/rts/aGui && /usr/bin/cmake -E cmake_link_script CMakeFiles/engineaGui.dir/link.txt --verbose=1
/usr/bin/ar qc libengineaGui.a CMakeFiles/engineaGui.dir/Button.cpp.o CMakeFiles/engineaGui.dir/Gui.cpp.o CMakeFiles/engineaGui.dir/GuiElement.cpp.o CMakeFiles/engineaGui.dir/HorizontalLayout.cpp.o CMakeFiles/engineaGui.dir/LineEdit.cpp.o CMakeFiles/engineaGui.dir/List.cpp.o CMakeFiles/engineaGui.dir/Picture.cpp.o CMakeFiles/engineaGui.dir/TextElement.cpp.o CMakeFiles/engineaGui.dir/VerticalLayout.cpp.o CMakeFiles/engineaGui.dir/Window.cpp.o
/usr/bin/ranlib libengineaGui.a
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[  9%] Built target engineaGui
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [Makefile:149: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make[1]: *** [debian/rules:41: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:20: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-games-devel mailing list