Bug#1013042: spring: ftbfs with GCC-12
Matthias Klose
doko at debian.org
Thu Jun 16 13:14:08 BST 2022
Package: src:spring
Version: 105.0.1+dfsg-4
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-12
[This bug is targeted to the upcoming bookworm 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-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.
The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/spring_105.0.1+dfsg-4_unstable_gcc12.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.
[...]
/<<PKGBUILDDIR>>/rts/Lua/LuaObjectRendering.h:168:82: error: ‘static int LuaObjectRenderingImpl::SetForwardMaterialUniform(lua_State*)’ is private within this context
168 | const int ret = LuaObjectRenderingImpl::SetForwardMaterialUniform(L);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/<<PKGBUILDDIR>>/rts/Lua/LuaObjectRendering.h:46:20: note: declared private here
46 | static int SetForwardMaterialUniform(lua_State* L);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/rts/Lua/LuaObjectRendering.h: In static member function ‘static int LuaObjectRendering<T>::ClearDeferredMaterialUniform(lua_State*)’:
/<<PKGBUILDDIR>>/rts/Lua/LuaObjectRendering.h:175:85: error: ‘static int LuaObjectRenderingImpl::ClearDeferredMaterialUniform(lua_State*)’ is private within this context
175 | const int ret = LuaObjectRenderingImpl::ClearDeferredMaterialUniform(L);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/<<PKGBUILDDIR>>/rts/Lua/LuaObjectRendering.h:47:20: note: declared private here
47 | static int ClearDeferredMaterialUniform(lua_State* L);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/rts/Lua/LuaObjectRendering.h: In static member function ‘static int LuaObjectRendering<T>::ClearForwardMaterialUniform(lua_State*)’:
/<<PKGBUILDDIR>>/rts/Lua/LuaObjectRendering.h:181:84: error: ‘static int LuaObjectRenderingImpl::ClearForwardMaterialUniform(lua_State*)’ is private within this context
181 | const int ret = LuaObjectRenderingImpl::ClearForwardMaterialUniform(L);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/<<PKGBUILDDIR>>/rts/Lua/LuaObjectRendering.h:48:20: note: declared private here
48 | static int ClearForwardMaterialUniform(lua_State* L);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/rts/Lua/LuaObjectRendering.h: In static member function ‘static int LuaObjectRendering<T>::Debug(lua_State*)’:
/<<PKGBUILDDIR>>/rts/Lua/LuaObjectRendering.h:207:62: error: ‘static int LuaObjectRenderingImpl::Debug(lua_State*)’ is private within this context
207 | const int ret = LuaObjectRenderingImpl::Debug(L);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/<<PKGBUILDDIR>>/rts/Lua/LuaObjectRendering.h:54:20: note: declared private here
54 | static int Debug(lua_State* L);
| ^~~~~
[ 69%] Building CXX object rts/builds/headless/CMakeFiles/engine-headless.dir/__/__/Lua/LuaOpenGLUtils.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/rts/builds/headless && /usr/bin/c++ -DASIO_STANDALONE -DBITMAP_NO_OPENGL -DHEADLESS -DNO_SOUND -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>>/rts/lib/assimp/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src-generated/engine -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/rts/lib/gflags/include -I/usr/include/AL -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/include/SDL2 -I/usr/include/SDL2 -I/<<PKGBUILDDIR>>/rts/lib/asio/include -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/builds/headless/CMakeFiles/engine-headless.dir/__/__/Lua/LuaOpenGLUtils.cpp.o -MF CMakeFiles/engine-headless.dir/__/__/Lua/LuaOpenGLUtils.cpp.o.d -o CMakeFiles/engine-headless.dir/__/__/Lua/LuaOpenGLUtils.cpp.o -c /<<PKGBUILDDIR>>/rts/Lua/LuaOpenGLUtils.cpp
[ 69%] Building CXX object rts/builds/headless/CMakeFiles/engine-headless.dir/__/__/Lua/LuaParser.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/rts/builds/headless && /usr/bin/c++ -DASIO_STANDALONE -DBITMAP_NO_OPENGL -DHEADLESS -DNO_SOUND -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>>/rts/lib/assimp/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src-generated/engine -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/rts/lib/gflags/include -I/usr/include/AL -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/include/SDL2 -I/usr/include/SDL2 -I/<<PKGBUILDDIR>>/rts/lib/asio/include -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/builds/headless/CMakeFiles/engine-headless.dir/__/__/Lua/LuaParser.cpp.o -MF CMakeFiles/engine-headless.dir/__/__/Lua/LuaParser.cpp.o.d -o CMakeFiles/engine-headless.dir/__/__/Lua/LuaParser.cpp.o -c /<<PKGBUILDDIR>>/rts/Lua/LuaParser.cpp
In file included from /<<PKGBUILDDIR>>/rts/Rendering/GL/RenderDataBuffer.hpp:12,
from /<<PKGBUILDDIR>>/rts/Rendering/Fonts/glFont.h:12,
from /<<PKGBUILDDIR>>/rts/Lua/LuaFonts.h:6,
from /<<PKGBUILDDIR>>/rts/Lua/LuaOpenGL.cpp:14:
/<<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++/12/bits/refwrap.h:39,
from /usr/include/c++/12/vector:66,
from /<<PKGBUILDDIR>>/rts/Rendering/GL/MatrixState.hpp:12,
from /<<PKGBUILDDIR>>/rts/Rendering/GL/myGL.h:20,
from /<<PKGBUILDDIR>>/rts/Lua/LuaOpenGL.cpp:4:
/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here
117 | struct unary_function
| ^~~~~~~~~~~~~~
make[4]: *** [rts/builds/headless/CMakeFiles/engine-headless.dir/build.make:1507: rts/builds/headless/CMakeFiles/engine-headless.dir/__/__/Lua/LuaObjectRendering.cpp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from /<<PKGBUILDDIR>>/rts/Rendering/GL/RenderDataBuffer.hpp:12,
from /<<PKGBUILDDIR>>/rts/Game/UI/MiniMap.h:11,
from /<<PKGBUILDDIR>>/rts/Lua/LuaOpenGLUtils.cpp:10:
/<<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++/12/string:48,
from /<<PKGBUILDDIR>>/rts/Lua/LuaOpenGLUtils.h:6,
from /<<PKGBUILDDIR>>/rts/Lua/LuaOpenGLUtils.cpp:5:
/usr/include/c++/12/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:3561: rts/builds/headless/CMakeFiles/engine-headless.dir/all] Error 2
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