Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 772161 - kde-plasma/plasma-desktop-5.21.2 with gcc-11: kcms/autostart/autostartmodel.cpp:53:13: error: ‘optional’ in namespace ‘std’ does not name a template type
Summary: kde-plasma/plasma-desktop-5.21.2 with gcc-11: kcms/autostart/autostartmodel.c...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://invent.kde.org/plasma/plasma-...
Whiteboard: fixed in 5.21.3
Keywords: PATCH
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-02-22 13:25 UTC by Kobboi
Modified: 2021-03-07 12:44 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,564.42 KB, text/plain)
2021-02-22 13:28 UTC, Kobboi
Details
plasma-desktop-5.21.0-gcc-11_include.patch (file_772161.txt,437 bytes, text/plain)
2021-02-22 21:07 UTC, andy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2021-02-22 13:25:55 UTC
[228/566] /usr/bin/x86_64-pc-linux-gnu-g++ -DKCOREADDONS_LIB -DKF_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_URL_CAST_FROM_STRING -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DTRANSLATION_DOMAIN=\"kcm_autostart\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Dkcm_autostart_EXPORTS -Ikcms/autostart -I/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart -Ikcms/autostart/kcm_autostart_autogen/include -I. -isystem /usr/include/KF5/KI18n -isystem /usr/include/KF5 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/KF5/KIOCore -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KService -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtDBus -isystem /usr/include/KF5/KIOWidgets -isystem /usr/include/KF5/KIOGui -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/KF5/KJobWidgets -isystem /usr/include/KF5/KCompletion -isystem /usr/include/KF5/KWidgetsAddons -isystem /usr/include/KF5/KDeclarative -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQmlModels -isystem /usr/include/qt5/QtQml  -DQT_NO_DEBUG -O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always -pedantic -Wzero-as-null-pointer-constant -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=gnu++17 -MD -MT kcms/autostart/CMakeFiles/kcm_autostart.dir/autostartmodel.cpp.o -MF kcms/autostart/CMakeFiles/kcm_autostart.dir/autostartmodel.cpp.o.d -o kcms/autostart/CMakeFiles/kcm_autostart.dir/autostartmodel.cpp.o -c /var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp
FAILED: kcms/autostart/CMakeFiles/kcm_autostart.dir/autostartmodel.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DKCOREADDONS_LIB -DKF_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_URL_CAST_FROM_STRING -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DTRANSLATION_DOMAIN=\"kcm_autostart\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Dkcm_autostart_EXPORTS -Ikcms/autostart -I/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart -Ikcms/autostart/kcm_autostart_autogen/include -I. -isystem /usr/include/KF5/KI18n -isystem /usr/include/KF5 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/KF5/KIOCore -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KService -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtDBus -isystem /usr/include/KF5/KIOWidgets -isystem /usr/include/KF5/KIOGui -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/KF5/KJobWidgets -isystem /usr/include/KF5/KCompletion -isystem /usr/include/KF5/KWidgetsAddons -isystem /usr/include/KF5/KDeclarative -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQmlModels -isystem /usr/include/qt5/QtQml  -DQT_NO_DEBUG -O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always -pedantic -Wzero-as-null-pointer-constant -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=gnu++17 -MD -MT kcms/autostart/CMakeFiles/kcm_autostart.dir/autostartmodel.cpp.o -MF kcms/autostart/CMakeFiles/kcm_autostart.dir/autostartmodel.cpp.o.d -o kcms/autostart/CMakeFiles/kcm_autostart.dir/autostartmodel.cpp.o -c /var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp
/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp:53:13: error: ‘optional’ in namespace ‘std’ does not name a template type
   53 | static std::optional<AutostartEntry> loadDesktopEntry(const QString &fileName)
      |             ^~~~~~~~
/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp:37:1: note: ‘std::optional’ is defined in header ‘<optional>’; did you forget to ‘#include <optional>’?
   36 | #include <KPropertiesDialog>
  +++ |+#include <optional>
   37 | 
/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp: In member function ‘void AutostartModel::load()’:
/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp:123:20: error: ‘optional’ in namespace ‘std’ does not name a template type
  123 |         const std::optional<AutostartEntry> entry = loadDesktopEntry(fi.absoluteFilePath());
      |                    ^~~~~~~~
/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp:123:15: note: ‘std::optional’ is defined in header ‘<optional>’; did you forget to ‘#include <optional>’?
  123 |         const std::optional<AutostartEntry> entry = loadDesktopEntry(fi.absoluteFilePath());
      |               ^~~
/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp:125:14: error: ‘entry’ was not declared in this scope
  125 |         if (!entry) {
      |              ^~~~~
/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp:129:29: error: ‘entry’ was not declared in this scope
  129 |         m_entries.push_back(entry.value());
      |                             ^~~~~
/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp: In member function ‘bool AutostartModel::reloadEntry(const QModelIndex&, const QString&)’:
/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp:178:16: error: ‘optional’ in namespace ‘std’ does not name a template type
  178 |     const std::optional<AutostartEntry> newEntry = loadDesktopEntry(fileName);
      |                ^~~~~~~~
/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp:178:11: note: ‘std::optional’ is defined in header ‘<optional>’; did you forget to ‘#include <optional>’?
  178 |     const std::optional<AutostartEntry> newEntry = loadDesktopEntry(fileName);
      |           ^~~
/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp:180:10: error: ‘newEntry’ was not declared in this scope
  180 |     if (!newEntry) {
      |          ^~~~~~~~
/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp:184:36: error: ‘newEntry’ was not declared in this scope
  184 |     m_entries.replace(index.row(), newEntry.value());
      |                                    ^~~~~~~~
/var/tmp/portage/kde-plasma/plasma-desktop-5.21.0-r1/work/plasma-desktop-5.21.0/kcms/autostart/autostartmodel.cpp:172:75: warning: unused parameter ‘fileName’ [-Wunused-parameter]
  172 | bool AutostartModel::reloadEntry(const QModelIndex &index, const QString &fileName)
      |                                                            ~~~~~~~~~~~~~~~^~~~~~~~


Reproducible: Always
Comment 1 Kobboi 2021-02-22 13:26:21 UTC
Portage 3.0.14 (python 3.8.8-final-0, !../../var/db/repos/kobboi-linux/profiles/kobboi/samsonov, gcc-11.0.0, glibc-2.32-r7, 5.4.99 x86_64)
=================================================================
System uname: Linux-5.4.99-x86_64-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-glibc2.2.5
KiB Mem:    32776896 total,    317444 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 22 Feb 2021 08:52:23 +0000
Head commit of repository gentoo: cf92a84119edd660cbbc6f1e0d4a710acbe45183

Timestamp of repository brother-overlay: Sat, 23 Jan 2021 10:41:31 +0000
Head commit of repository brother-overlay: fe35aa6732459e8430d9b65f4ef6782d4dd5dde9

Timestamp of repository gitlab: Fri, 19 Feb 2021 21:52:19 +0000
Head commit of repository gitlab: 5d5dfd9640b67429887200df2b8b5e13a134dd26

Head commit of repository kobboi-linux: 9e59f7148178120f0f2e0801f0536232d7e03ce2

Timestamp of repository steam-overlay: Sun, 21 Feb 2021 13:37:59 +0000
Head commit of repository steam-overlay: 8c2a06b034ee9d94365aedbc4800bc89b5302c4d

sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 4.2 [disabled]
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p7::gentoo, 3.7.10::gentoo, 3.8.8::gentoo, 3.9.2::gentoo
dev-util/ccache:          4.2::gentoo
dev-util/cmake:           3.19.5::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo, 10.2.0-r5::gentoo, 11.0.0_pre9999::gentoo
sys-devel/gcc-config:     2.3.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo

gitlab
    location: /var/db/repos/gitlab
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gitlab.git
    masters: gentoo

kobboi-linux
    location: /var/db/repos/kobboi-linux
    sync-type: git
    sync-uri: https://github.com/kobboi/kobboi-linux.git
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

Installed sets: @kobboi-all
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /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 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb"
DISTDIR="/usr/portage/distfiles"
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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://kobboi-linux:*password*@10.8.0.1/2020.11"
INSTALL_MASK="/usr/src/debug /usr/lib/debug"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="ftp://kobboi-linux:*password*@10.8.0.1/2020.11/packages"
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 alsa amd64 avahi berkdb bluetooth bzip2 cairo cdda cdr cli colord crypt cups dbus dist-kernel djvu dri dts dvd dvdr eds egl emboss encode evo exif facedetect ffmpeg flac fluidsynth fortran frei0r gdbm gif glade gles gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle gui iconv icu introspection ipv6 jpeg ladspa lcms libass libglvnd libnotify libsecret libtirpc lv2 lz4 lzma lzo mad midi mng modemmanager mono mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl ogg opencv opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt5 readline samba screencast sdl seccomp smartcard smp spell split-usr ssl startup-notification svg sysprof systemd tcpd tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="keyboard mouse synaptics 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-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="vesa radeon nvidia intel amdgpu dummy fbdev nouveau radeonsi v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Kobboi 2021-02-22 13:28:09 UTC
Created attachment 688062 [details]
build.log
Comment 3 andy 2021-02-22 21:07:48 UTC
Created attachment 688104 [details]
plasma-desktop-5.21.0-gcc-11_include.patch

this worked for me..
Comment 4 Ionen Wolkens gentoo-dev 2021-02-22 23:37:32 UTC
Looks fixed upstream (see $url).
Comment 5 Kobboi 2021-03-07 12:29:18 UTC
Updated to most recent version where this is observed (5.21.2)
Comment 6 Andreas Sturmlechner gentoo-dev 2021-03-07 12:44:46 UTC
It is not necessary to update $summary all the time.

Thanks for checking back.