-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doesn't compile with cpupower 4.9.0 #238
Comments
@kajzersoze: could it be related to the patch that you posted in the first comment at a708224? Yeah, I know we need to solve this properly. 😞 |
Are you doing code reviews before merging something, or just test if code compiles and still runs? Your existing fix have two problems:
Pull request #217 is wrong. HAVE_LIBCPUFREQ is defined when cpufreq.h is found, it does not tell if Pull request #277 is better, but still wrong. What if someone has that header installed, but tries to build with |
P.S. This is what I did in gnome-applets: |
I have libcpupower1 4.14-7-1 in Debian Unstable and have not had any trouble compiling mate-applets including the cpufreq applet. Using these build options: --prefix=/usr libdir=/usr/lib/x86_64-linux-gnu --sysconfdir=/etc --enable-shared=yes --disable-maintainer-mode --disable-schemas-compile Last one so Checkinstall does not pick up the compiled schemas, they are compiled in postinst |
I DO get these two errors in config.log, but configuration then continues:
I get
|
MATE applets defaults to EDIT: |
P.S.S. even if you don`t care about build failures you have problem:
Do you really want to mark CPU as offline when it is ONLINE? cpupower_is_cpu_online (cpu) returns 1 when cpu is online so if reads as when cpu is online do this... |
That "fatal error" report is odd, because configuration and build do not actually stop, and the cpufreq applet works fine. Note that I am using AMD desktops and an old Intel Atom netbook, I do not have any recent Intel stuff so I might not be seeing runtime errors. Using |
I did get an odd runtime result with --with-cpufreq-lib=cpufreq though: the applet's UI works fine and shows selected speeds, but they don't actually change. Compiles, builds-but does not actually work, only appears to |
Also, not sure if any of the (cpupower_is_cpu_online (cpu)) stuff even works with AMD. The Intel Atom netbook is a single core, the older AMD Phenom II boxes don't support core parking, and the AMD Bulldozer setup does supposedly support it but I've never once seen a core not shown as in use. I have conky showing load on all 8 threads of 4 bulldozer modules. I have no multicore Intel boxes at all. |
Can you attach somewhere full build log and maybe generated There is definitely problem if you build with cpufreq. For example, in Ubuntu, it is only option. Your build should fail because Just checked, ubuntu has patch that reverts / removes kernel version check. Then as I already said, |
Here is a configuration log from a "successful" build with --with-cpufreq-lib=cpufreq : And config.h (could not attach):
Didn't get any kind of build log |
As I said, you are not building that part of code! |
Nothing more I can do with this at the moment |
Install build dependency |
A missing build dependency (including one for an explicitly specified option) normally causes configuration to stop on an error. In this case it did not. Will test this though |
OK, here's what I got testing all three ways, noting that libcpupower-dev and libcpufreq-dev have to be installed one or the other as they conflict with each other. I'm using linux 4.15.0-rc4, and it turns out a default build no longer controls the frequency at all. A build with libcpupower finishes and works, a build with libcpufreq errors out. Note that this testing fixed a bug for me... default build: build completes --with-cpufreq-lib=cpupower --with-cpufreq-lib=cpufreq Build fails, stops on
I noticed that libcpupower-dev is a much larger package than libcpufreq-dev. I don't know if this is a superset of features or what, but maybe the newer kernels simply need cpupower instead of cpufreq at this point? |
Check the code! If you build without Build with |
That's what I had been building until today-and it worked until very recently at least on AMD and on Intel Atom or at least appeared to, with Conky and the applet agreeing on what the CPU frequency was. Fan speeds and temperatures also seemed appropriate to the indicated speeds. It was just in testing this stuff yesterday that I noticed that frequency changes set by the applet (and shown by it) no longer registered in Conky's frequency monitor. Using cpupower fixed this. Not sure what kernel version changed this, but well after 4.9 there were more power/frequency handling changes that broke a lot of stuff. Until very recently my default builds with neither library's dev packages seemed to be working fine. |
/sys/devices/system/cpu/cpu0/cpufreq Still shows up in my filesystem, it's a directory full of files such as /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor and /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq So I think what changed is that the old code lost the ability to write to these files with a recent kernel change-after having worked all the way back to kernel 2.6/ |
Ported from gnome-applets, see git diff e48b2d73~..5882df7f cpufreq/ configure.ac on the gnome-applets repository. Fixes mate-desktop#238.
Ported from gnome-applets, see git diff e48b2d73~..5882df7f cpufreq/ configure.ac on the gnome-applets repository. Fixes #238.
Ported from gnome-applets, see git diff e48b2d73~..5882df7f cpufreq/ configure.ac on the gnome-applets repository. Fixes #238.
On Gentoo, I'm forced to downgrade cpupower 4.5.0 because of mate-applets.
When trying to compile mate-applets with cpupower 4.9.0 installed, I get the following error message:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: