Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 772314 - kde-plasma/ksysguard-5.21.1: missing #include <array> with clang+libc++
Summary: kde-plasma/ksysguard-5.21.1: missing #include <array> with clang+libc++
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/ksysgua...
Whiteboard: fixed in 5.21.3
Keywords: UPSTREAM
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2021-02-24 03:10 UTC by 12101111
Modified: 2021-03-05 08:41 UTC (History)
0 users

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


Attachments
build.log (build.log,199.84 KB, text/x-log)
2021-02-24 03:12 UTC, 12101111
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 12101111 2021-02-24 03:10:03 UTC
ksysguard failed to compile with clang + libc++


Reproducible: Always

Steps to Reproduce:
1.CC=clang CXX=clang++ CXXFLAGS=-stdlib=libc++
2.emerge kde-plasma/ksysguard
3.got error
Actual Results:  
FAILED: plugins/global/network/CMakeFiles/ksysguard_globalplugin_network.dir/RtNetlinkBackend.cpp.o
/usr/lib/ccache/bin/clang++ -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_QSTRINGBUILDER -DTRANSLATION_DOMAIN=\"ksysguard_plugins_global\" -D_LARGEFILE64_SOURCE -Dksysguard_globalplugin_network_EXPORTS -Iplugins/global/network -I/tmp/portage/kde-plasma/ksysguard-5.21.1/work/ksysguard-5.21.1/plugins/global/network -Iplugins/global/network/ksysguard_globalplugin_network_autogen/include -I. -Ilibkstats -I/tmp/portage/kde-plasma/ksysguard-5.21.1/work/ksysguard-5.21.1/libkstats -I/usr/include/libnl3 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtDBus -isystem /usr/include/ksysguard -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/KF5/KI18n  -DQT_NO_DEBUG -march=skylake -mtune=skylake -O3 -pipe -falign-functions=32 -fomit-frame-pointer -ffunction-sections -fdata-sections -flto=thin -stdlib=libc++ -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -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 -fdiagnostics-color=always -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=gnu++14 -MD -MT plugins/global/network/CMakeFiles/ksysguard_globalplugin_network.dir/RtNetlinkBackend.cpp.o -MF plugins/global/network/CMakeFiles/ksysguard_globalplugin_network.dir/RtNetlinkBackend.cpp.o.d -o plugins/global/network/CMakeFiles/ksysguard_globalplugin_network.dir/RtNetlinkBackend.cpp.o -c /tmp/portage/kde-plasma/ksysguard-5.21.1/work/ksysguard-5.21.1/plugins/global/network/RtNetlinkBackend.cpp
../ksysguard-5.21.1/plugins/global/network/RtNetlinkBackend.cpp:33:36: error: implicit instantiation of undefined template 'std::array<SensorProperty *, 4>'
    std::array<SensorProperty*, 4> statisticSensors {m_downloadSensor, m_totalDownloadSensor, m_uploadSensor, m_totalUploadSensor};
                                   ^
/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
1 error generated.


Expected Results:  
It should compile.

A simple fix is adding `#include <array>` in plugins/global/network/RtNetlinkBackend.cpp

upsteam bug: https://bugs.kde.org/show_bug.cgi?id=433517
Comment 1 12101111 2021-02-24 03:12:13 UTC
Created attachment 688173 [details]
build.log
Comment 2 12101111 2021-02-24 03:14:39 UTC
emerge --info:
Portage 3.0.15 (python 3.9.1-final-0, default/linux/amd64/17.0/musl, gcc-10.2.0, musl-1.2.2-r2, 5.10.16-zen+ x86_64)
=================================================================
System uname: Linux-5.10.16-zen+-x86_64-Intel-R-_Core-TM-_i7-10810U_CPU_@_1.10GHz-with-libc
KiB Mem:    24190188 total,  10701668 free
KiB Swap:   23126008 total,  19515780 free
Timestamp of repository gentoo: Wed, 24 Feb 2021 01:52:26 +0000
Head commit of repository gentoo: e18051c652296275e2f136e613f4bc0728822a8c

Timestamp of repository FireBurn: Sun, 21 Feb 2021 13:37:51 +0000
Head commit of repository FireBurn: d44a17fb83380a388008f7432e3e9db0b360b3e4

Timestamp of repository gentoo-zh: Tue, 23 Feb 2021 18:07:26 +0000
Head commit of repository gentoo-zh: 20d5586371374c06a6724f6bc08a3cb93d609376

Timestamp of repository guru: Sun, 21 Feb 2021 13:38:10 +0000
Head commit of repository guru: 6dcb741960ddbf67ec725674213ff233c6be3aee

Timestamp of repository jorgicio: Wed, 24 Feb 2021 02:07:35 +0000
Head commit of repository jorgicio: 1958ee79b78fb07c1721558882a46fdc1a743d82

Head commit of repository kwin-lowlatency-overlay: 9b4e5e6754bde598f7afee75e5b2cef137fa887c

Timestamp of repository lanodanOverlay: Tue, 23 Feb 2021 18:52:13 +0000
Head commit of repository lanodanOverlay: 60e4f17b2e28932c6425e16f4d506ef376ba6bf2

Timestamp of repository lto-overlay: Sun, 31 Jan 2021 23:47:32 +0000
Head commit of repository lto-overlay: 088d53cf464d80458aaaf6c726afe150e372ce54

Timestamp of repository musl: Tue, 23 Feb 2021 15:37:16 +0000
Head commit of repository musl: afbacad3dfa7bb0871c50e0af565a54607d8d9e4

Timestamp of repository mv: Tue, 23 Feb 2021 05:52:16 +0000
Head commit of repository mv: cf3d764eb3720d4de5df403282091ef7ad3f4290

Timestamp of repository pentoo: Tue, 23 Feb 2021 12:07:21 +0000
Head commit of repository pentoo: eec3aa9035b279a9db9bee5336cfa66404a85c16

Timestamp of repository pg_overlay: Tue, 23 Feb 2021 15:09:22 +0000
Head commit of repository pg_overlay: 95c29a6fa827c4b41a55b205715f4c7b6cce3e5e

Timestamp of repository sorrow: Tue, 23 Feb 2021 01:52:14 +0000
Head commit of repository sorrow: 1777b5cd2aa48c85a450c4bc8582e12d2630c27f

Timestamp of repository tgbugs-overlay: Sun, 21 Feb 2021 13:38:07 +0000
Head commit of repository tgbugs-overlay: 33011f1a0bb82c820da72c21975d22ddc9475a7c

sh bash 5.1_p4
ld LLD 12.0.0 (compatible with GNU linkers)
ccache version 4.2 [enabled]
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-r100::lto-overlay, 3.9.1-r1::lto-overlay
dev-util/ccache:          4.2::gentoo
dev-util/cmake:           3.19.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.1::12101111-overlay
sys-devel/gcc:            10.2.0-r5::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/musl:            1.2.2-r2::gentoo
Repositories:

gentoo
    location: /usr/portage/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

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

gentoo-zh
    location: /usr/portage/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-zh.git
    masters: gentoo

guru
    location: /usr/portage/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

jorgicio
    location: /usr/portage/jorgicio
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/jorgicio.git
    masters: gentoo

kwin-lowlatency-overlay
    location: /usr/portage/kwin-lowlatency-overlay
    sync-type: git
    sync-uri: https://github.com/agates/kwin-lowlatency-overlay.git
    masters: gentoo

lanodanOverlay
    location: /usr/portage/lanodanOverlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/lanodanOverlay.git
    masters: gentoo

lto-overlay
    location: /usr/portage/lto-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/lto-overlay.git
    masters: gentoo mv

musl
    location: /usr/portage/musl
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/musl.git
    masters: gentoo

mv
    location: /usr/portage/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo

pentoo
    location: /usr/portage/pentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pentoo.git
    masters: gentoo

pg_overlay
    location: /usr/portage/pg_overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pg_overlay.git
    masters: gentoo

sorrow
    location: /usr/portage/sorrow
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/sorrow.git
    masters: gentoo

tgbugs-overlay
    location: /usr/portage/tgbugs-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/tgbugs-overlay.git
    masters: gentoo

12101111-overlay
    location: /usr/portage/local
    masters: gentoo
    priority: 1000

Installed sets: @fcitx5, @qv2ray
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-gentoo-linux-musl"
CC="clang"
CFLAGS="-march=skylake -mtune=skylake -O3 -pipe -falign-functions=32 -fomit-frame-pointer -ffunction-sections -fdata-sections -flto=thin"
CHOST="x86_64-gentoo-linux-musl"
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"
CXX="clang++"
CXXFLAGS="-march=skylake -mtune=skylake -O3 -pipe -falign-functions=32 -fomit-frame-pointer -ffunction-sections -fdata-sections -flto=thin -stdlib=libc++"
DISTDIR="/var/cache/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 binpkg-multi-instance ccache config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync 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"
GENTOO_MIRRORS="https://mirrors.ustc.edu.cn/gentoo/"
INSTALL_MASK=""
LANG="zh_CN.UTF-8"
LC_ALL="zh_CN.UTF-8"
LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -flto=thin -Wl,-O3 -Wl,--gc-sections -march=skylake -mtune=skylake"
MAKEOPTS="-j13"
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 acl alsa amd64 bzip2 clang cli compiler-rt crypt dbus default-compiler-rt default-libcxx dri elogind fortran gif iconv ipv6 jpeg libcxx libcxxabi libglvnd libtirpc libunwind ncurses nls nptl opengl openmp pam pcre png policykit readline seccomp split-usr ssl svg tcpd unicode vaapi vulkan wayland xattr zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel usb-audio" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="musl" 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" L10N="zh-CN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86 ARM AArch64 RISCV WebAssembly AMDGPU" LUA_SINGLE_TARGET="lua5-2" LUA_TARGETS="lua5-2" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="arm aarch64 i386 x86_64 riscv32 riscv64" QEMU_USER_TARGETS="arm aarch64" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="intel i965 iris amdgpu radeonsi radeon" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Andreas Sturmlechner gentoo-dev 2021-02-24 18:24:35 UTC
Please report it upstream.
Comment 4 Andreas Sturmlechner gentoo-dev 2021-02-26 14:25:18 UTC
(In reply to Andreas Sturmlechner from comment #3)
> Please report it upstream.
In case I was not clear, if you want to get your patch included upstream, so that Gentoo will benefit from it in the next release, please create a MR on invent.kde.org: https://invent.kde.org/plasma/libksysguard/-/merge_requests

Can you do that?
Comment 5 Andreas Sturmlechner gentoo-dev 2021-02-26 14:26:08 UTC
(for ksysguard it would ofc be https://invent.kde.org/plasma/ksysguard/-/merge_requests)
Comment 6 Andreas Sturmlechner gentoo-dev 2021-03-05 08:41:02 UTC
Thanks for fixing it upstream.