Package: src:libkf5libkleo
Version: 4:21.12.3-2
Severity: normal
Tags: sid bookworm
User: debian-...@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/libkf5libkleo_21.12.3-2_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.

[...]
[ 17%] Building CXX object 
src/CMakeFiles/KF5Libkleo.dir/models/keylistsortfilterproxymodel.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBOOST_ALL_NO_LIB 
-DGPGMEPP_ERR_SOURCE_DEFAULT=13 -DHAVE_PIMTEXTEDIT -DKCOREADDONS_LIB 
-DKF5Libkleo_EXPORTS -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055800 
-DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB 
-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII 
-DQT_NO_DEBUG -DQT_NO_EMIT -DQT_NO_KEYWORDS 
-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_URL_CAST_FROM_STRING 
-DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB 
-DTRANSLATION_DOMAIN=\"libkleopatra\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/KF5Libkleo_autogen/include 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -isystem /usr/include/qgpgme -isystem 
/usr/include/gpgme++ -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtCore -isystem 
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem 
 /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/KF5/KI18n 
-isystem /usr/include/KF5 -isystem /usr/include/KF5/KCompletion -isystem 
/usr/include/KF5/KConfig -isystem /usr/include/KF5/KConfigCore -isystem 
/usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KWidgetsAddons -isystem 
/usr/include/KF5/KItemModels -isystem /usr/include/KF5/KCodecs -isystem 
/usr/include/KF5/KPIMTextEdit -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -fno-operator-names -Wall -Wextra -Wcast-align 
-Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef 
-Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self 
-Wvla -Wdate-time -Wsuggest-override -Wlogical-op -pedantic 
-Wzero-as-null-pointer-constant -Wmissing-include-dirs -fexceptions -fPIC 
-fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=c++17 -MD -MT src/C
 MakeFiles/KF5Libkleo.dir/models/keylistsortfilterproxymodel.cpp.o -MF 
CMakeFiles/KF5Libkleo.dir/models/keylistsortfilterproxymodel.cpp.o.d -o 
CMakeFiles/KF5Libkleo.dir/models/keylistsortfilterproxymodel.cpp.o -c 
/<<PKGBUILDDIR>>/src/models/keylistsortfilterproxymodel.cpp
[ 18%] Building CXX object 
src/CMakeFiles/KF5Libkleo.dir/models/keyrearrangecolumnsproxymodel.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBOOST_ALL_NO_LIB 
-DGPGMEPP_ERR_SOURCE_DEFAULT=13 -DHAVE_PIMTEXTEDIT -DKCOREADDONS_LIB 
-DKF5Libkleo_EXPORTS -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055800 
-DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB 
-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII 
-DQT_NO_DEBUG -DQT_NO_EMIT -DQT_NO_KEYWORDS 
-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_URL_CAST_FROM_STRING 
-DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB 
-DTRANSLATION_DOMAIN=\"libkleopatra\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/KF5Libkleo_autogen/include 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -isystem /usr/include/qgpgme -isystem 
/usr/include/gpgme++ -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtCore -isystem 
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem 
 /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/KF5/KI18n 
-isystem /usr/include/KF5 -isystem /usr/include/KF5/KCompletion -isystem 
/usr/include/KF5/KConfig -isystem /usr/include/KF5/KConfigCore -isystem 
/usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KWidgetsAddons -isystem 
/usr/include/KF5/KItemModels -isystem /usr/include/KF5/KCodecs -isystem 
/usr/include/KF5/KPIMTextEdit -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -fno-operator-names -Wall -Wextra -Wcast-align 
-Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef 
-Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self 
-Wvla -Wdate-time -Wsuggest-override -Wlogical-op -pedantic 
-Wzero-as-null-pointer-constant -Wmissing-include-dirs -fexceptions -fPIC 
-fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=c++17 -MD -MT src/C
 MakeFiles/KF5Libkleo.dir/models/keyrearrangecolumnsproxymodel.cpp.o -MF 
CMakeFiles/KF5Libkleo.dir/models/keyrearrangecolumnsproxymodel.cpp.o.d -o 
CMakeFiles/KF5Libkleo.dir/models/keyrearrangecolumnsproxymodel.cpp.o -c 
/<<PKGBUILDDIR>>/src/models/keyrearrangecolumnsproxymodel.cpp
In file included from /<<PKGBUILDDIR>>/src/kleo/keyserverconfig.cpp:13:
/<<PKGBUILDDIR>>/src/utils/algorithm.h: In instantiation of ‘Container 
Kleo::transformInPlace(Container&&, UnaryOperation) [with Container = 
QStringList; UnaryOperation = KeyserverConfig::fromUrl(const 
QUrl&)::<lambda(const auto:1&)>]’:
/<<PKGBUILDDIR>>/src/kleo/keyserverconfig.cpp:73:44:   required from here
/<<PKGBUILDDIR>>/src/utils/algorithm.h:35:30: error: no matching function for 
call to ‘begin(QStringList&)’
   35 |     std::transform(std::begin(c), std::end(c), std::begin(c), op);
      |                    ~~~~~~~~~~^~~
In file included from /usr/include/c++/12/bits/algorithmfwd.h:39,
                 from /usr/include/c++/12/bits/stl_algo.h:59,
                 from /usr/include/c++/12/algorithm:61,
                 from /<<PKGBUILDDIR>>/src/utils/algorithm.h:13:
/usr/include/c++/12/initializer_list:90:5: note: candidate: ‘template<class 
_Tp> constexpr const _Tp* std::begin(initializer_list<_Tp>)’
   90 |     begin(initializer_list<_Tp> __ils) noexcept
      |     ^~~~~
/usr/include/c++/12/initializer_list:90:5: note:   template argument 
deduction/substitution failed:
/<<PKGBUILDDIR>>/src/utils/algorithm.h:35:30: note:   ‘QStringList’ is not 
derived from ‘std::initializer_list<_Tp>’
   35 |     std::transform(std::begin(c), std::end(c), std::begin(c), op);
      |                    ~~~~~~~~~~^~~
/<<PKGBUILDDIR>>/src/utils/algorithm.h:35:43: error: no matching function for 
call to ‘end(QStringList&)’
   35 |     std::transform(std::begin(c), std::end(c), std::begin(c), op);
      |                                   ~~~~~~~~^~~
/usr/include/c++/12/initializer_list:101:5: note: candidate: ‘template<class 
_Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)’
  101 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
/usr/include/c++/12/initializer_list:101:5: note:   template argument 
deduction/substitution failed:
/<<PKGBUILDDIR>>/src/utils/algorithm.h:35:43: note:   ‘QStringList’ is not 
derived from ‘std::initializer_list<_Tp>’
   35 |     std::transform(std::begin(c), std::end(c), std::begin(c), op);
      |                                   ~~~~~~~~^~~
/<<PKGBUILDDIR>>/src/utils/algorithm.h:35:58: error: no matching function for 
call to ‘begin(QStringList&)’
   35 |     std::transform(std::begin(c), std::end(c), std::begin(c), op);
      |                                                ~~~~~~~~~~^~~
/usr/include/c++/12/initializer_list:90:5: note: candidate: ‘template<class 
_Tp> constexpr const _Tp* std::begin(initializer_list<_Tp>)’
   90 |     begin(initializer_list<_Tp> __ils) noexcept
      |     ^~~~~
/usr/include/c++/12/initializer_list:90:5: note:   template argument 
deduction/substitution failed:
/<<PKGBUILDDIR>>/src/utils/algorithm.h:35:58: note:   ‘QStringList’ is not 
derived from ‘std::initializer_list<_Tp>’
   35 |     std::transform(std::begin(c), std::end(c), std::begin(c), op);
      |                                                ~~~~~~~~~~^~~
make[3]: *** [src/CMakeFiles/KF5Libkleo.dir/build.make:247: 
src/CMakeFiles/KF5Libkleo.dir/kleo/keyserverconfig.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/<<PKGBUILDDIR>>/src/models/keycache.cpp:809:33: warning: ‘template<class _Arg, 
class _Result> struct std::unary_function’ is deprecated 
[-Wdeprecated-declarations]
  809 | struct ready_for_signing : std::unary_function<Key, bool> {
      |                                 ^~~~~~~~~~~~~~
In file included from /usr/include/c++/12/string:48,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qbytearray.h:52,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:50,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QObject:1,
                 from /<<PKGBUILDDIR>>/src/models/keycache.h:12,
                 from /<<PKGBUILDDIR>>/src/models/keycache.cpp:13:
/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/models/keycache.cpp:828:36: warning: ‘template<class _Arg, 
class _Result> struct std::unary_function’ is deprecated 
[-Wdeprecated-declarations]
  828 | struct ready_for_encryption : std::unary_function<Key, bool> {
      |                                    ^~~~~~~~~~~~~~
/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:609: src/CMakeFiles/KF5Libkleo.dir/all] 
Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: 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: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Reply via email to