Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 839921 - kde-apps/libkleo-21.12.3: fails to build with GCC 12 (src/utils/algorithm.h:35:30: error: no matching function for call to ‘begin(QStringList&)’)
Summary: kde-apps/libkleo-21.12.3: fails to build with GCC 12 (src/utils/algorithm.h:3...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL: https://invent.kde.org/pim/libkleo/-/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-04-21 14:10 UTC by Sam James
Modified: 2022-04-22 20:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (file_839921.txt,102.06 KB, text/plain)
2022-04-21 14:10 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-21 14:10:40 UTC
Created attachment 772643 [details]
build.log

FAILED: src/CMakeFiles/KF5Libkleo.dir/kleo/keyserverconfig.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -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/var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3_build/src -I/var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3/src -I/var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3_build/src/KF5Libkleo_autogen/include -I/var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3_build -isystem /usr/include/qgpgme -isystem /usr/include/gpgme++ -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/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  -DQT_NO_DEBUG -O2 -pipe -march=native -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 -fdiagnostics-color=always -fexceptions -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=c++17 -MD -MT src/CMakeFiles/KF5Libkleo.dir/kleo/keyserverconfig.cpp.o -MF src/CMakeFiles/KF5Libkleo.dir/kleo/keyserverconfig.cpp.o.d -o src/CMakeFiles/KF5Libkleo.dir/kleo/keyserverconfig.cpp.o -c /var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3/src/kleo/keyserverconfig.cpp
In file included from /var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3/src/kleo/keyserverconfig.cpp:13:
/var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3/src/utils/algorithm.h: In instantiation of ‘Container Kleo::transformInPlace(Container&&, UnaryOperation) [with Container = QStringList; UnaryOperation = KeyserverConfig::fromUrl(const QUrl&)::<lambda(const auto:1&)>]’:
/var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3/src/kleo/keyserverconfig.cpp:73:44:   required from here
/var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3/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/lib/gcc/x86_64-pc-linux-gnu/12.0.1/include/g++-v12/bits/algorithmfwd.h:39,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/12.0.1/include/g++-v12/bits/stl_algo.h:59,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/12.0.1/include/g++-v12/algorithm:61,
                 from /var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3/src/utils/algorithm.h:13:
/usr/lib/gcc/x86_64-pc-linux-gnu/12.0.1/include/g++-v12/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/lib/gcc/x86_64-pc-linux-gnu/12.0.1/include/g++-v12/initializer_list:90:5: note:   template argument deduction/substitution failed:
/var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3/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);
      |                    ~~~~~~~~~~^~~
/var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3/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/lib/gcc/x86_64-pc-linux-gnu/12.0.1/include/g++-v12/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/lib/gcc/x86_64-pc-linux-gnu/12.0.1/include/g++-v12/initializer_list:101:5: note:   template argument deduction/substitution failed:
/var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3/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);
      |                                   ~~~~~~~~^~~
/var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3/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/lib/gcc/x86_64-pc-linux-gnu/12.0.1/include/g++-v12/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/lib/gcc/x86_64-pc-linux-gnu/12.0.1/include/g++-v12/initializer_list:90:5: note:   template argument deduction/substitution failed:
/var/tmp/portage/kde-apps/libkleo-21.12.3/work/libkleo-21.12.3/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);
      |                                                ~~~~~~~~~~^~~

----

Portage 3.0.30 (python 3.9.12-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12.0.1, glibc-2.35-r2, 5.15.34-gentoo-dist-hardened x86_64)
=================================================================
System uname: Linux-5.15.34-gentoo-dist-hardened-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.35
KiB Mem:    65831304 total,  25337900 free
KiB Swap:   25067512 total,  24959480 free
Timestamp of repository gentoo: Thu, 21 Apr 2022 13:23:48 +0000
sh dash 0.5.11.5
ld GNU ld (Gentoo 2.38 p4) 2.38
ccache version 4.6 [disabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r1::gentoo
dev-lang/python:           3.9.12::gentoo, 3.10.4::gentoo
dev-lang/rust-bin:         1.60.0::gentoo
dev-util/ccache:           4.6-r1::gentoo
dev-util/cmake:            3.23.1::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo, 14.0.1-r1::gentoo
sys-devel/gcc:             12.0.1_pre20220417::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.17::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf plasma png policykit ppds qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tiff timidity truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Larry the Git Cow gentoo-dev 2022-04-21 17:12:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b78c30e912f0b7deadcf9614339ab3f17dfaffb

commit 4b78c30e912f0b7deadcf9614339ab3f17dfaffb
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2022-04-21 16:54:44 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-04-21 17:09:44 +0000

    kde-apps/libkleo: Fix build with GCC-12
    
    Closes: https://bugs.gentoo.org/839921
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../libkleo/files/libkleo-21.12.3-gcc-12.patch     | 32 ++++++++++++++++++++++
 kde-apps/libkleo/libkleo-21.12.3.ebuild            |  2 ++
 2 files changed, 34 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2022-04-22 20:19:39 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37c5d6152b1cd16fc8f47dc817a02b9c39a6a5e7

commit 37c5d6152b1cd16fc8f47dc817a02b9c39a6a5e7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-04-22 20:19:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-22 20:19:32 +0000

    kde-apps/libkleo: add GCC 12 patch to 22.04.0 too
    
    Bug: https://bugs.gentoo.org/839921
    Signed-off-by: Sam James <sam@gentoo.org>

 kde-apps/libkleo/libkleo-22.04.0.ebuild | 2 ++
 1 file changed, 2 insertions(+)