Closed vitaly-zdanevich closed 1 year ago
/var/tmp/portage/sys-apps/corefreq-1.96.1/work/corefreq-1.96.1/corefreqk.c:4178:25: error: implicit declaration of function ‘acpi_cpc_valid’ [-Werror=implicit-function-declaration] 4178 | signed int rc = acpi_cpc_valid() == false; | ^~~~~~~~~~~~~~ compilation terminated due to -Wfatal-errors. cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:250: /var/tmp/portage/sys-apps/corefreq-1.96.1/work/corefreq-1.96.1/corefreqk.o] Error 1 make[1]: *** [Makefile:2005: /var/tmp/portage/sys-apps/corefreq-1.96.1/work/corefreq-1.96.1] Error 2 make[1]: Leaving directory '/usr/src/linux-6.1.12-gentoo' make: *** [Makefile:86: all] Error 2
I got this when tried this ebuild on Gentoo.
Your kernel is apparently built without CONFIG_ACPI_CPPC_LIB
@vitaly-zdanevich
Can you edit source code at this line:
https://github.com/cyring/CoreFreq/blob/fb0b28f15924b05ae7b67c3bd0bc419b7fad2872/corefreqk.c#L4180
and replace config test with the following:
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) && defined(CONFIG_ACPI_CPPC_LIB)
Next try to rebuild:
make clean all
If the above does not fix the build, please provide your current config from /proc/config.gz
And the url to the source code of kernel 6.1.12-gentoo
Yes, it works, thanks.
Will you update this line in the repo?
Yes, it works, thanks.
Will you update this line in the repo?
You now have the release 1.96.2
to proceed with the package
Btw, looking at the Gentoo port, the minimum kernel permitted by CoreFreq is 3.10.0
, even if some features will miss.
Here a CentOS VM I'm building with, for non regression tests.
Full log:
I got this when tried this ebuild on Gentoo.