[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#984274: openclonk: ftbfs with GCC-11



Package: src:openclonk
Version: 8.1-2
Severity: normal
Tags: sid bookworm
User: debian-gcc@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/openclonk_8.1-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.

[...]
/<<PKGBUILDDIR>>/src/script/C4AulCompiler.cpp:1100:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1100 |                         AddBCC(n->loc, AB_CFUNCTION, reinterpret_cast<intptr_t>(v._getFunction()));
      |                         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/script/C4AulCompiler.cpp:1101:17: note: here
 1101 |                 default:
      |                 ^~~~~~~
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build'
[ 15%] Built target c4group
[ 17%] Building CXX object CMakeFiles/libc4script.dir/src/script/C4AulFunc.cpp.o
/usr/bin/c++ -DCOMPILED_AS_C4LIBRARY -DHAVE_CONFIG_H -DNDEBUG -DOC_SYSTEM_DATA_DIR=\"/usr/share/games/openclonk\" -I/<<PKGBUILDDIR>>/build -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/build/libc4script_autogen/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/<<PKGBUILDDIR>>/src -isystem /usr/include/SDL2 -isystem /<<PKGBUILDDIR>>/thirdparty -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wall -Wextra -Wredundant-decls -Wendif-labels -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Winit-self -Wsign-promo -Wno-reorder -Wno-unused-parameter -Wnon-virtual-dtor -Woverloaded-virtual -Wformat-security -std=gnu++14 -o CMakeFiles/libc4script.dir/src/script/C4AulFunc.cpp.o -c /<<PKGBUILDDIR>>/src/script/C4AulFunc.cpp
/<<PKGBUILDDIR>>/src/script/C4AulExec.cpp: In member function ‘void C4AulProfiler::Show()’:
/<<PKGBUILDDIR>>/src/script/C4AulExec.cpp:1004:36: warning: typedef ‘EntryList’ locally defined but not used [-Wunused-local-typedefs]
 1004 |         typedef std::vector<Entry> EntryList;
      |                                    ^~~~~~~~~
[ 17%] Building CXX object CMakeFiles/libc4script.dir/src/script/C4AulLink.cpp.o
/usr/bin/c++ -DCOMPILED_AS_C4LIBRARY -DHAVE_CONFIG_H -DNDEBUG -DOC_SYSTEM_DATA_DIR=\"/usr/share/games/openclonk\" -I/<<PKGBUILDDIR>>/build -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/build/libc4script_autogen/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/<<PKGBUILDDIR>>/src -isystem /usr/include/SDL2 -isystem /<<PKGBUILDDIR>>/thirdparty -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wall -Wextra -Wredundant-decls -Wendif-labels -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Winit-self -Wsign-promo -Wno-reorder -Wno-unused-parameter -Wnon-virtual-dtor -Woverloaded-virtual -Wformat-security -std=gnu++14 -o CMakeFiles/libc4script.dir/src/script/C4AulLink.cpp.o -c /<<PKGBUILDDIR>>/src/script/C4AulLink.cpp
[ 17%] Building CXX object CMakeFiles/libc4script.dir/src/script/C4AulParse.cpp.o
/usr/bin/c++ -DCOMPILED_AS_C4LIBRARY -DHAVE_CONFIG_H -DNDEBUG -DOC_SYSTEM_DATA_DIR=\"/usr/share/games/openclonk\" -I/<<PKGBUILDDIR>>/build -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/build/libc4script_autogen/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/<<PKGBUILDDIR>>/src -isystem /usr/include/SDL2 -isystem /<<PKGBUILDDIR>>/thirdparty -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wall -Wextra -Wredundant-decls -Wendif-labels -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Winit-self -Wsign-promo -Wno-reorder -Wno-unused-parameter -Wnon-virtual-dtor -Woverloaded-virtual -Wformat-security -std=gnu++14 -o CMakeFiles/libc4script.dir/src/script/C4AulParse.cpp.o -c /<<PKGBUILDDIR>>/src/script/C4AulParse.cpp
[ 17%] Building CXX object CMakeFiles/libc4script.dir/src/script/C4AulScriptFunc.cpp.o
/usr/bin/c++ -DCOMPILED_AS_C4LIBRARY -DHAVE_CONFIG_H -DNDEBUG -DOC_SYSTEM_DATA_DIR=\"/usr/share/games/openclonk\" -I/<<PKGBUILDDIR>>/build -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/build/libc4script_autogen/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/<<PKGBUILDDIR>>/src -isystem /usr/include/SDL2 -isystem /<<PKGBUILDDIR>>/thirdparty -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wall -Wextra -Wredundant-decls -Wendif-labels -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Winit-self -Wsign-promo -Wno-reorder -Wno-unused-parameter -Wnon-virtual-dtor -Woverloaded-virtual -Wformat-security -std=gnu++14 -o CMakeFiles/libc4script.dir/src/script/C4AulScriptFunc.cpp.o -c /<<PKGBUILDDIR>>/src/script/C4AulScriptFunc.cpp
In file included from /<<PKGBUILDDIR>>/src/script/C4AulDebug.h:21,
                 from /<<PKGBUILDDIR>>/src/script/C4AulParse.cpp:22:
/<<PKGBUILDDIR>>/src/network/C4NetIO.h: In member function ‘void C4NetIOPacket::SetAddr(const addr_t&)’:
/<<PKGBUILDDIR>>/src/network/C4NetIO.h:327:61: warning: implicitly-declared ‘constexpr C4NetIO::EndpointAddress& C4NetIO::EndpointAddress::operator=(const C4NetIO::EndpointAddress&)’ is deprecated [-Wdeprecated-copy]
  327 |         void SetAddr(const C4NetIO::addr_t &naddr) { addr = naddr; }
      |                                                             ^~~~~
/<<PKGBUILDDIR>>/src/network/C4NetIO.h:140:17: note: because ‘C4NetIO::EndpointAddress’ has user-provided ‘C4NetIO::EndpointAddress::EndpointAddress(const C4NetIO::EndpointAddress&)’
  140 |                 EndpointAddress(const EndpointAddress &other) : HostAddress() { SetAddress(other); }
      |                 ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/network/C4NetIO.h: In member function ‘void C4NetIOUDP::Peer::SetAltAddr(const addr_t&)’:
/<<PKGBUILDDIR>>/src/network/C4NetIO.h:818:74: warning: implicitly-declared ‘constexpr C4NetIO::EndpointAddress& C4NetIO::EndpointAddress::operator=(const C4NetIO::EndpointAddress&)’ is deprecated [-Wdeprecated-copy]
  818 |                 void SetAltAddr(const C4NetIO::addr_t &naddr2) { addr2 = naddr2; }
      |                                                                          ^~~~~~
/<<PKGBUILDDIR>>/src/network/C4NetIO.h:140:17: note: because ‘C4NetIO::EndpointAddress’ has user-provided ‘C4NetIO::EndpointAddress::EndpointAddress(const C4NetIO::EndpointAddress&)’
  140 |                 EndpointAddress(const EndpointAddress &other) : HostAddress() { SetAddress(other); }
      |                 ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/script/C4AulParse.cpp: In member function ‘std::unique_ptr<aul::ast::Expr> C4AulParse::Parse_Expression(int)’:
/<<PKGBUILDDIR>>/src/script/C4AulParse.cpp:1608:95: error: ‘numeric_limits’ is not a member of ‘std’
 1608 |                                                 end = ::aul::ast::IntLit::New(TokenSPos, std::numeric_limits<int32_t>::max());
      |                                                                                               ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/script/C4AulParse.cpp:1608:117: error: expected primary-expression before ‘>’ token
 1608 |                                                 end = ::aul::ast::IntLit::New(TokenSPos, std::numeric_limits<int32_t>::max());
      |                                                                                                                     ^
/<<PKGBUILDDIR>>/src/script/C4AulParse.cpp:1608:120: error: ‘::max’ has not been declared; did you mean ‘std::max’?
 1608 |                                                 end = ::aul::ast::IntLit::New(TokenSPos, std::numeric_limits<int32_t>::max());
      |                                                                                                                        ^~~
      |                                                                                                                        std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from /<<PKGBUILDDIR>>/src/C4Include.h:41,
                 from /<<PKGBUILDDIR>>/src/script/C4AulParse.cpp:18:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/<<PKGBUILDDIR>>/src/script/C4AulParse.cpp:1388:20: warning: unused variable ‘FoundFn’ [-Wunused-variable]
 1388 |         C4AulFunc *FoundFn = nullptr;
      |                    ^~~~~~~
/<<PKGBUILDDIR>>/src/script/C4AulParse.cpp: At global scope:
/<<PKGBUILDDIR>>/src/script/C4AulParse.cpp:1376:13: warning: ‘bool GetPropertyByS(const C4PropList*, const char*, C4Value&)’ defined but not used [-Wunused-function]
 1376 | static bool GetPropertyByS(const C4PropList * p, const char * s, C4Value & v)
      |             ^~~~~~~~~~~~~~
make[3]: *** [CMakeFiles/libc4script.dir/build.make:241: CMakeFiles/libc4script.dir/src/script/C4AulParse.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[2]: *** [CMakeFiles/Makefile2:198: CMakeFiles/libc4script.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[1]: *** [Makefile:174: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/build'
dh_auto_build: error: cd build && make -j4 VERBOSE=1 returned exit code 2
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: