Bug#983971: asc: ftbfs with GCC-11
Matthias Klose
doko at debian.org
Wed Mar 3 16:10:25 GMT 2021
Package: src:asc
Version: 2.6.1.0-7
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/asc_2.6.1.0-7_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.
[...]
/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I../../../source/libs/loki-0.1.6/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-sign-compare -D_UNIX_ -D_SDL_ -I/usr/include/freetype2 -I/usr/include/libpng16 -DSIZE_T_not_identical_to_INT -c -o Singleton.lo ./src/Singleton.cpp
/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I../../../source/libs/loki-0.1.6/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-sign-compare -D_UNIX_ -D_SDL_ -I/usr/include/freetype2 -I/usr/include/libpng16 -DSIZE_T_not_identical_to_INT -c -o SmartPtr.lo ./src/SmartPtr.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I../../../source/libs/loki-0.1.6/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-sign-compare -D_UNIX_ -D_SDL_ -I/usr/include/freetype2 -I/usr/include/libpng16 -DSIZE_T_not_identical_to_INT -c ./src/SmartPtr.cpp -o SmartPtr.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I../../../source/libs/loki-0.1.6/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-sign-compare -D_UNIX_ -D_SDL_ -I/usr/include/freetype2 -I/usr/include/libpng16 -DSIZE_T_not_identical_to_INT -c ./src/SmallObj.cpp -o SmallObj.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I../../../source/libs/loki-0.1.6/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-sign-compare -D_UNIX_ -D_SDL_ -I/usr/include/freetype2 -I/usr/include/libpng16 -DSIZE_T_not_identical_to_INT -c ./src/Singleton.cpp -o Singleton.o
In file included from ./src/Singleton.cpp:19:
../../../source/libs/loki-0.1.6/include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T*, unsigned int, Destroyer)’:
../../../source/libs/loki-0.1.6/include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
158 | std::auto_ptr<LifetimeTracker>
| ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
from ../../../source/libs/loki-0.1.6/include/loki/Singleton.h:30,
from ./src/Singleton.cpp:19:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
57 | template<typename> class auto_ptr;
| ^~~~~~~~
In file included from ../../../source/libs/loki-0.1.6/include/loki/SmallObj.h:23,
from ../../../source/libs/loki-0.1.6/include/loki/SmartPtr.h:33,
from ./src/SmartPtr.cpp:20:
../../../source/libs/loki-0.1.6/include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T*, unsigned int, Destroyer)’:
../../../source/libs/loki-0.1.6/include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
158 | std::auto_ptr<LifetimeTracker>
| ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
from ../../../source/libs/loki-0.1.6/include/loki/Singleton.h:30,
from ../../../source/libs/loki-0.1.6/include/loki/SmallObj.h:23,
from ../../../source/libs/loki-0.1.6/include/loki/SmartPtr.h:33,
from ./src/SmartPtr.cpp:20:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
57 | template<typename> class auto_ptr;
| ^~~~~~~~
In file included from ../../../source/libs/loki-0.1.6/include/loki/SmallObj.h:23,
from ./src/SmallObj.cpp:19:
../../../source/libs/loki-0.1.6/include/loki/Singleton.h: In function ‘void Loki::SetLongevity(T*, unsigned int, Destroyer)’:
../../../source/libs/loki-0.1.6/include/loki/Singleton.h:158:14: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
158 | std::auto_ptr<LifetimeTracker>
| ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
from ../../../source/libs/loki-0.1.6/include/loki/Singleton.h:30,
from ../../../source/libs/loki-0.1.6/include/loki/SmallObj.h:23,
from ./src/SmallObj.cpp:19:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
57 | template<typename> class auto_ptr;
| ^~~~~~~~
In file included from ../../../source/libs/loki-0.1.6/include/loki/SmartPtr.h:33,
from ./src/SmartPtr.cpp:20:
../../../source/libs/loki-0.1.6/include/loki/SmallObj.h: At global scope:
../../../source/libs/loki-0.1.6/include/loki/SmallObj.h:462:57: error: ISO C++17 does not allow dynamic exception specifications
462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc )
| ^~~~~
In file included from ./src/SmallObj.cpp:19:
../../../source/libs/loki-0.1.6/include/loki/SmallObj.h: At global scope:
../../../source/libs/loki-0.1.6/include/loki/SmallObj.h:462:57: error: ISO C++17 does not allow dynamic exception specifications
462 | static void * operator new ( std::size_t size ) throw ( std::bad_alloc )
| ^~~~~
make[5]: *** [Makefile:462: SmartPtr.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [Makefile:462: SmallObj.lo] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/source/libs/loki-0.1.6'
make[4]: *** [Makefile:427: all-recursive] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/source/libs'
make[3]: *** [Makefile:428: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/source'
make[2]: *** [Makefile:538: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:441: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:6: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
More information about the Pkg-games-devel
mailing list