x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -DCPUFREQ_MENU_UI_DIR=\""/usr/share/mate/ui"\" -I/usr/include/mate-panel-4.0/libmate-panel-applet -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -pthread -I/usr/include/mate-desktop-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/startup-notification-1.0 -I/usr/include/dconf -pthread -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -march=native -O2 -pipe -c -o cpufreq-monitor-sysfs.o cpufreq-monitor-sysfs.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -DCPUFREQ_MENU_UI_DIR=\""/usr/share/mate/ui"\" -I/usr/include/mate-panel-4.0/libmate-panel-applet -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -pthread -I/usr/include/mate-desktop-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/startup-notification-1.0 -I/usr/include/dconf -pthread -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -march=native -O2 -pipe -c -o cpufreq-monitor-libcpufreq.o cpufreq-monitor-libcpufreq.c cpufreq-monitor-libcpufreq.c:29:21: fatal error: cpuidle.h: No such file or directory compilation terminated. make[4]: *** [Makefile:596: cpufreq-monitor-libcpufreq.o] Error 1 make[4]: Leaving directory '/var/tmp/portage/mate-base/mate-applets-1.12.1-r2/work/mate-applets-1.12.1/cpufreq/src' $ cat emerge-info.txt ----------------------------------------------------------------- This is an unstable amd64 chroot image (named amd64-plasma-unstable_20160902-211759) at a hardened host acting as a tinderbox. ----------------------------------------------------------------- USE flags ... ... in make.conf: USE=" pax_kernel xtpax -cdinstall -oci8 -bindist btrfs bzip2 corefonts csc custom-cflags dvb egl ext4 extraengine fortran gles2 -gnomecanvas gnome-keyring graphtft gtk2 gudev isag javaxml jpeg latex llvm lvm -mssql mysqli networking nls openssl opus postscript python qml rdoc scripts sdl smpeg sql sslv3 system-icu szip thinkpad ufed utils vaapi X xetex xkb -xmlreader xslt zip" ... in /etc/portage/package.use/*: mail-mta/ssmtp ssl mta net-misc/wget ssl app-crypt/pinentry -qt4 app-editors/emacs -dbus -svg -ssl -gtk -gtk3 app-text/xmlto -latex dev-libs/boehm-gc threads dev-libs/libpcre pcre16 dev-util/cmake -qt4 -qt5 dev-vcs/git -perl gnome-base/librsvg -tools media-libs/mesa -vaapi <=net-misc/openssh-7.3_p1-r2 -hpn net-misc/iputils -caps -filecaps >=media-libs/harfbuzz-1.3.0 icu entries in /etc/portage/package.unmask/*: media-video/ffmpeg ----------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-4.9.3 [2] x86_64-pc-linux-gnu-5.4.0 * Available Java Virtual Machines: [1] icedtea-bin-7 system-vm [2] icedtea-bin-8 Available Python interpreters, in order of preference: [1] python3.4 [2] python3.5 (fallback) [3] python2.7 (fallback) [4] pypy (fallback) [5] jython2.7 (fallback) Available Ruby profiles: [1] ruby20 (with Rubygems) [2] ruby21 (with Rubygems) * ----------------------------------------------------------------- Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r2, 4.7.3-hardened x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.7.3-hardened-x86_64-Intel-R-_Core-TM-_i7-3930K_CPU_@_3.20GHz-with-gentoo-2.3 KiB Mem: 65285352 total, 2553464 free KiB Swap: 67108860 total, 67102396 free Timestamp of repository gentoo: Sat, 10 Sep 2016 21:45:56 +0000 sh bash 4.3_p46 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p46::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.0-r1::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo dev-util/cmake: 3.6.2::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.21.7::gentoo sys-apps/sandbox: 2.10-r2::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.25.1-r1::gentoo, 2.26.1::gentoo sys-devel/gcc: 4.9.3::gentoo, 5.4.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: 1 local location: /usr/local/portage masters: gentoo priority: 2 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /opt/openfire/resources/security/ /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /var/lib/hsqldb /var/lib/redmine/config /var/rancid/.cloginrc" 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 /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/tmp/distfiles" EMERGE_DEFAULT_OPTS="--verbose --verbose-conflicts --color=n --nospinner --tree --quiet-build" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox parallel-fetch preserve-libs protect-owned sandbox sfperms strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j1" PKGDIR="/usr/portage/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 berkdb bluetooth branding btrfs bzip2 cairo cdda cdr cli consolekit corefonts cracklib crypt csc cups custom-cflags cxx dbus declarative dri dts dvb dvd dvdr egl emboss encode exif ext4 extraengine fam firefox flac fortran gdbm gif glamor gles2 gnome-keyring gpm graphtft gtk gtk2 gudev iconv ipv6 isag javaxml jpeg kde kipi latex lcms ldap libnotify llvm lvm mad mmx mmxext mng modules mp3 mp4 mpeg multilib mysqli ncurses networking nls nptl ogg opengl openmp openssl opus pam pango pax_kernel pcre pdf phonon plasma png policykit postscript ppds python qml qt3support qt4 qt5 rdoc readline scripts sdl seccomp semantic-desktop session smpeg spell sql sse sse2 ssl sslv3 startup-notification svg system-icu szip tcpd thinkpad tiff truetype udev udisks ufed unicode upower usb utils vaapi vorbis widgets wxwidgets x264 xattr xcb xcomposite xetex xinerama xkb xml xscreensaver xslt xtpax xv xvid zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="bn brx el eu kok sr-Latn-ijekavsk tr uz" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" 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 steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 445434 [details] emerge-history.txt
Created attachment 445436 [details] environment
Created attachment 445438 [details] mate-base:mate-applets-1.12.1-r2:20160910-234337.log
I can confirm but this happens only with 4.7 linux-headers, since cpuidle.h is not present anymore
As usual, thanks for the report Toralf. I've reverted the addition of this new patch until we can do more testing and work with upstream to get a proper solution.
The current bug was caused by a bad patch intended to resolve this issue. After the reversion of the aforementioned patch, and some research into the issue, we appear to be waiting on an update from cpupower's maintainers.
*** Bug 593654 has been marked as a duplicate of this bug. ***
1.14 and 9999 have a temporary revert of the upstream fix until we see a resolution of the bug at kernel.org. For the time being, we are requiring <cpupower-4.7.
cpupower 4.9 has been released a while ago - does that include a fix?
(In reply to Mihai Moldovan from comment #9) > cpupower 4.9 has been released a while ago - does that include a fix? Seems to be solved since cpupower-4.9 puts into public the function cpupower_is_cpu_online But you must disable the patch in mate-applets ebuild: # PATCHES=( "${FILESDIR}/${PN}-1.14.1-revert-upstream-cpupower-4.7-fix.patch" ) This compiles then.
I can confirm that disabling the patch works fine (for ~amd64), provided that the line <sys-power/cpupower-4.7 is changed to sys-power/cpupower:0 as well (and that cpupower is upgraded before trying to recompile mate-applets). Isn't this good enough for releasing a mate-applets-1.18.1-r1 with these changes implemented? It would be nice not to have to edit the ebuild after every sync...
(In reply to pste from comment #11) > I can confirm that disabling the patch works fine (for ~amd64), provided > that the line > > <sys-power/cpupower-4.7 > > is changed to > > sys-power/cpupower:0 > > as well (and that cpupower is upgraded before trying to recompile > mate-applets). I also confirm, that latest mate-applets in tree works fine after disabling the patch with cpupower-4.9.
Simply removing the patch is not a solution, and the core issue is not fixed. Firstly, if you emerge cpupower-4.9, and then mate-applets-1.18.1, it still breaks, if you have stable linux-headers, which are 4.4, so based on the upstream based code, it uses linux's version to determine whether to use cpupower or cpufreq, and that breaks. Secondly, even if you force people to upgrade to unstable linux-headers (>=4.7) to force it to chose the right code segment, we still end up with: * QA Notice: Package triggers severe warnings which indicate that it * may exhibit random runtime failures. * cpufreq-monitor-libcpufreq.c:117:7: warning: implicit declaration of function ‘cpupower_is_cpu_online’ [-Wimplicit-function-declaration] because there is no public header that includes cpupower_is_cpu_online. See the upstream kernel bug, which still isn't resolved.
(In reply to NP-Hardass from comment #13) > Simply removing the patch is not a solution, and the core issue is not fixed. Thanks for the detailed clarification! I'm using keyworded kernel and headers, and frankly haven't noticed the warning, thus haven't looked deep enough into this issue.
If QA is a blocker for getting this fixed, can we not patch in a cpupower_is_cpu_online prototype in mate-applets?
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=807be3e849bf1ec12d52cd65cf03c339c1a59e53 commit 807be3e849bf1ec12d52cd65cf03c339c1a59e53 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2017-09-12 19:12:20 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2017-09-12 19:13:29 +0000 sys-power/cpupower: install cpupower.h Bug: https://bugs.gentoo.org/593470 Package-Manager: Portage-2.3.6_p60, Repoman-2.3.3_p38 sys-power/cpupower/{cpupower-4.9.0.ebuild => cpupower-4.9.0-r1.ebuild} | 1 + 1 file changed, 1 insertion(+)}
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/sync/gentoo.git/commit/?id=807be3e849bf1ec12d52cd65cf03c339c1a59e53 commit 807be3e849bf1ec12d52cd65cf03c339c1a59e53 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2017-09-12 19:12:20 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2017-09-12 19:13:29 +0000 sys-power/cpupower: install cpupower.h Bug: https://bugs.gentoo.org/593470 Package-Manager: Portage-2.3.6_p60, Repoman-2.3.3_p38 sys-power/cpupower/{cpupower-4.9.0.ebuild => cpupower-4.9.0-r1.ebuild} | 1 + 1 file changed, 1 insertion(+)}
(In reply to Joakim Tjernlund from comment #15) > If QA is a blocker for getting this fixed, can we not patch in a > cpupower_is_cpu_online prototype in mate-applets? Did some local overlay testing (following the recent bump for sys-power/cpupower-4.9.0-r1 which has a commit message referencing this bug, #593470) This particular -r1 version still errors for me, though now the build terminates on: undefined reference to `cpufreq_cpu_exists' (as opposed to cpupower_is_cpu_online) Unsure if the upstream mate devs test against a particular [older] kernel version or [patched] distro kernel, and/or certain cpupower version(s), etc. but I feel these regressions are because of the API changes. That is to say - this sort of build issue likely stems from cpupower internals having updated for a newer kernel API, as that interface has been changed by upstream kernel.org releases in the past year or so.
(In reply to kuzetsa from comment #18) > (In reply to Joakim Tjernlund from comment #15) > > If QA is a blocker for getting this fixed, can we not patch in a > > cpupower_is_cpu_online prototype in mate-applets? > > Did some local overlay testing (following the recent bump for > sys-power/cpupower-4.9.0-r1 which has a commit message referencing this bug, > #593470) > > This particular -r1 version still errors for me, though now the build > terminates on: > > undefined reference to `cpufreq_cpu_exists' > > (as opposed to cpupower_is_cpu_online) > > Unsure if the upstream mate devs test against a particular [older] kernel > version or [patched] distro kernel, and/or certain cpupower version(s), etc. > but I feel these regressions are because of the API changes. > > That is to say - this sort of build issue likely stems from cpupower > internals having updated for a newer kernel API, as that interface has been > changed by upstream kernel.org releases in the past year or so. I bumped to cpupower-4.13.0 and it seems to be OK. It's in the tree.
The kernel version check in the sources is still erroneous. It should be checking for the relevant userspace API functions, not the kernel version. NP-Hardass said he would work on an autoconf check.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gentoo-mate.git/commit/?id=6bfa389a9bda535026178ba0e61f804bddb2505a commit 6bfa389a9bda535026178ba0e61f804bddb2505a Author: NP-Hardass <NP-Hardass@gentoo.org> AuthorDate: 2017-09-22 20:58:54 +0000 Commit: NP-Hardass <NP-Hardass@gentoo.org> CommitDate: 2017-09-22 20:58:54 +0000 mate-base/mate-applets: Fix building with >cpupower-4.9 Bug: https://bugs.gentoo.org/593470 Package-Manager: Portage-2.3.10, Repoman-2.3.3 .../files/mate-applets-1.10.4-cpupower-4.7.patch | 46 +++++++++ .../files/mate-applets-1.14.1-cpupower-4.7.patch | 44 +++++++++ .../mate-applets/mate-applets-1.12.1-r5.ebuild | 102 ++++++++++++++++++++ .../mate-applets/mate-applets-1.14.1-r2.ebuild | 106 +++++++++++++++++++++ .../mate-applets/mate-applets-1.16.0-r1.ebuild | 105 ++++++++++++++++++++ .../mate-applets/mate-applets-1.18.1-r1.ebuild | 96 +++++++++++++++++++ mate-base/mate-applets/mate-applets-9999.ebuild | 5 +- 7 files changed, 501 insertions(+), 3 deletions(-)}
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gentoo-mate.git/commit/?id=ec7e48d451844a3663272c0a2ba7dd83ec453593 commit ec7e48d451844a3663272c0a2ba7dd83ec453593 Author: NP-Hardass <NP-Hardass@gentoo.org> AuthorDate: 2017-09-22 21:17:37 +0000 Commit: NP-Hardass <NP-Hardass@gentoo.org> CommitDate: 2017-09-22 21:17:37 +0000 mate-base/mate-applets: Fix cpupower patch for 1.16+ Upstream removed a space, rendering old patch broken Bug: https://bugs.gentoo.org/593470 Package-Manager: Portage-2.3.10, Repoman-2.3.3 .../files/mate-applets-1.16.0-cpupower-4.7.patch | 44 ++++++++++++++++++++++ .../mate-applets/mate-applets-1.16.0-r1.ebuild | 2 +- .../mate-applets/mate-applets-1.18.1-r1.ebuild | 2 +- mate-base/mate-applets/mate-applets-9999.ebuild | 2 +- 4 files changed, 47 insertions(+), 3 deletions(-)}
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53fd275242b53169b20f487efd38698e54e9c32c commit 53fd275242b53169b20f487efd38698e54e9c32c Author: NP-Hardass <NP-Hardass@gentoo.org> AuthorDate: 2017-09-22 21:26:40 +0000 Commit: NP-Hardass <NP-Hardass@gentoo.org> CommitDate: 2017-09-22 21:26:56 +0000 mate-base/mate-applets: Fix compilation with >=cpupower-4.7 Closes: https://bugs.gentoo.org/593470 Package-Manager: Portage-2.3.10, Repoman-2.3.3 .../files/mate-applets-1.10.4-cpupower-4.7.patch | 46 +++++++++ .../files/mate-applets-1.14.1-cpupower-4.7.patch | 44 +++++++++ .../files/mate-applets-1.16.0-cpupower-4.7.patch | 44 +++++++++ .../mate-applets/mate-applets-1.12.1-r5.ebuild | 102 ++++++++++++++++++++ .../mate-applets/mate-applets-1.14.1-r2.ebuild | 106 +++++++++++++++++++++ .../mate-applets/mate-applets-1.16.0-r1.ebuild | 105 ++++++++++++++++++++ .../mate-applets/mate-applets-1.18.1-r1.ebuild | 96 +++++++++++++++++++ 7 files changed, 543 insertions(+)