[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/kakoune_2021.11.08-1_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.
[...]
In file included from unicode.hh:8,
from utf8.hh:5,
from string.hh:7,
from display_buffer.hh:8:
ranges.hh: At global scope:
ranges.hh:106:28: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
106 | struct Iterator : std::iterator<std::forward_iterator_tag,
| ^~~~~~~~
In file included from /usr/include/c++/12/iterator:61,
from array_view.hh:5,
from constexpr_utils.hh:8,
from client.hh:4:
/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
127 | struct _GLIBCXX17_DEPRECATED iterator
| ^~~~~~~~
ranges.hh:164:28: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
164 | struct Iterator : std::iterator<std::forward_iterator_tag,
| ^~~~~~~~
/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
127 | struct _GLIBCXX17_DEPRECATED iterator
| ^~~~~~~~
ranges.hh:301:28: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
301 | struct Iterator : std::iterator<std::forward_iterator_tag, ValueType>
| ^~~~~~~~
/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
127 | struct _GLIBCXX17_DEPRECATED iterator
| ^~~~~~~~
ranges.hh:398:28: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
398 | struct Iterator : std::iterator<std::forward_iterator_tag, ValueType>
| ^~~~~~~~
/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
127 | struct _GLIBCXX17_DEPRECATED iterator
| ^~~~~~~~
make[3]: *** [Makefile:105: .changes.debug.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:105: .assert.debug.o] Error 1
In file included from parameters_parser.hh:11,
from highlighter.hh:13,
from highlighter_group.hh:6,
from scope.hh:6,
from buffer.hh:12,
from selection.hh:4,
from context.hh:4,
from input_handler.hh:6,
from client.hh:7:
string_utils.hh:71:28: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
71 | struct Iterator : std::iterator<std::forward_iterator_tag, StringView>
| ^~~~~~~~
/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
127 | struct _GLIBCXX17_DEPRECATED iterator
| ^~~~~~~~
parameters_parser.hh:83:28: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
83 | struct iterator : std::iterator<std::forward_iterator_tag, String>
| ^~~~~~~~
/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
127 | struct _GLIBCXX17_DEPRECATED iterator
| ^~~~~~~~
make[3]: *** [Makefile:105: .buffer_utils.debug.o] Error 1
make[3]: *** [Makefile:105: .buffer_manager.debug.o] Error 1
make[3]: *** [Makefile:105: .buffer.debug.o] Error 1
make[3]: *** [Makefile:105: .client.debug.o] Error 1
make[3]: *** [Makefile:105: .client_manager.debug.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:2: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" all man returned exit code 2
make[1]: *** [debian/rules:19: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:25: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2