You are not logged in.

#1 2018-05-19 15:16:53

phil5
Member
Registered: 2018-02-14
Posts: 17

Installing phc-k8 from AUR

Hi, I posted this on the linux-phc forum but it's very quiet over there.

I am trying to undervolt my AMD E-350 processor with phc-k8. I have never installed an AUR package before, so please bare with me... I followed the arch wiki but it seems outdated.

I downloaded the files:

git clone https://aur.archlinux.org/phc-k8.git

Built and installed:

makepkg -si

Added acpi-cpufreq to kernel modules with conf file in /etc/modules-load.d/. (as stated in the wiki) Rebooted.

Added values to /etc/default/phc-k8:

VIDS="24 26 52"

This code doesn't do anything because /sys/devices/system/cpu/cpu0/cpufreq/phc_vids doesn't exist:

phc-k8 start

Also, wasn't I supposed to do:

phc-k8 setup

at some point, or does makepkg do it for me?

I haven't found any other relevant documentation... Sorry if this is a stupid question. What am I missing?

Thanks

Last edited by phil5 (2018-05-21 15:19:20)

Offline

#2 2018-05-19 15:53:47

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Installing phc-k8 from AUR

phil5 wrote:

Also, wasn't I supposed to do:

phc-k8 setup

at some point,

Yes, as stated in the wiki page you linked. You do it after installing the AUR package, and after every kernel update (unless you can automate it with dkms). The setup command will build phc patched acpi-cpufreq module with undervolting capabilities.

Offline

#3 2018-05-19 16:19:02

phil5
Member
Registered: 2018-02-14
Posts: 17

Re: Installing phc-k8 from AUR

I get:

$ phc-k8
usage: /usr/bin/phc-k8 {start|stop|status|set}

Offline

#4 2018-05-19 16:30:55

loqs
Member
Registered: 2014-03-06
Posts: 17,304

Re: Installing phc-k8 from AUR

Setup was dropped with https://aur.archlinux.org/cgit/aur.git/ … f060bb4b9d but the wiki page still references it.
Edit:
What was the output from dkms when the package was installed? (please check /var/log/pacman.log)

Last edited by loqs (2018-05-19 16:37:26)

Offline

#5 2018-05-19 17:44:09

phil5
Member
Registered: 2018-02-14
Posts: 17

Re: Installing phc-k8 from AUR

Hmm, yeah I didn't see the error when dkms installed:

(1/2) Install DKMS modules
==> dkms install phc-k8/0.4.6 -k 4.16.9-1-ARCH
Error! Bad return status for module build on kernel: 4.16.9-1-ARCH (x86_64)
Consult /var/lib/dkms/phc-k8/0.4.6/build/make.log for more information.

/var/lib/dkms/phc-k8/0.4.6/build/make.log:

DKMS make.log for phc-k8-0.4.6 for kernel 4.16.9-1-ARCH (x86_64)
Sat May 19 13:33:02 GMT 2018
make: Entering directory '/usr/lib/modules/4.16.9-1-ARCH/build'
  CC [M]  /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.o
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘fill_powernow_table’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:769:20: error: implicit declaration of function ‘cpu_core_mask’; did you mean ‘cpu_none_mask’? [-Werror=implicit-function-declaration]
  if (cpumask_first(cpu_core_mask(data->cpu)) == data->cpu)
                    ^~~~~~~~~~~~~
                    cpu_none_mask
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:769:20: warning: passing argument 1 of ‘cpumask_first’ makes pointer from integer without a cast [-Wint-conversion]
  if (cpumask_first(cpu_core_mask(data->cpu)) == data->cpu)
                    ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/smp.h:13,
                 from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:38:
./include/linux/cpumask.h:184:64: note: expected ‘const struct cpumask *’ but argument is of type ‘int’
 static inline unsigned int cpumask_first(const struct cpumask *srcp)
                                          ~~~~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘powernow_k8_cpu_init_acpi’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:979:20: warning: passing argument 1 of ‘cpumask_first’ makes pointer from integer without a cast [-Wint-conversion]
  if (cpumask_first(cpu_core_mask(data->cpu)) == data->cpu)
                    ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/smp.h:13,
                 from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:38:
./include/linux/cpumask.h:184:64: note: expected ‘const struct cpumask *’ but argument is of type ‘int’
 static inline unsigned int cpumask_first(const struct cpumask *srcp)
                                          ~~~~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1008:40: warning: passing argument 1 of ‘acpi_processor_unregister_performance’ makes integer from pointer without a cast [-Wint-conversion]
  acpi_processor_unregister_performance(&data->acpi_data, data->cpu);
                                        ^~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:57:
./include/acpi/processor.h:251:64: note: expected ‘unsigned int’ but argument is of type ‘struct acpi_processor_performance *’
 extern void acpi_processor_unregister_performance(unsigned int cpu);
                                                   ~~~~~~~~~~~~~^~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1008:2: error: too many arguments to function ‘acpi_processor_unregister_performance’
  acpi_processor_unregister_performance(&data->acpi_data, data->cpu);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:57:
./include/acpi/processor.h:251:13: note: declared here
 extern void acpi_processor_unregister_performance(unsigned int cpu);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘powernow_k8_cpu_exit_acpi’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1209:41: warning: passing argument 1 of ‘acpi_processor_unregister_performance’ makes integer from pointer without a cast [-Wint-conversion]
   acpi_processor_unregister_performance(&data->acpi_data,
                                         ^~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:57:
./include/acpi/processor.h:251:64: note: expected ‘unsigned int’ but argument is of type ‘struct acpi_processor_performance *’
 extern void acpi_processor_unregister_performance(unsigned int cpu);
                                                   ~~~~~~~~~~~~~^~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1209:3: error: too many arguments to function ‘acpi_processor_unregister_performance’
   acpi_processor_unregister_performance(&data->acpi_data,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:57:
./include/acpi/processor.h:251:13: note: declared here
 extern void acpi_processor_unregister_performance(unsigned int cpu);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘powernowk8_target_fn’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1420:46: warning: passing argument 2 of ‘cpufreq_frequency_table_target’ makes integer from pointer without a cast [-Wint-conversion]
  if (cpufreq_frequency_table_target(pol, data->powernow_table,
                                          ~~~~^~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:41:
./include/linux/cpufreq.h:899:21: note: expected ‘unsigned int’ but argument is of type ‘struct cpufreq_frequency_table *’
        unsigned int target_freq,
        ~~~~~~~~~~~~~^~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1420:6: error: too many arguments to function ‘cpufreq_frequency_table_target’
  if (cpufreq_frequency_table_target(pol, data->powernow_table,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:41:
./include/linux/cpufreq.h:898:19: note: declared here
 static inline int cpufreq_frequency_table_target(struct cpufreq_policy *policy,
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: At top level:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1475:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘powernowk8_cpu_init_on_cpu’
 static void __cpuinit powernowk8_cpu_init_on_cpu(void *_init_on_cpu)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1502:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘powernowk8_cpu_init’
 static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol)
                      ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2286:11: error: ‘powernowk8_cpu_init’ undeclared here (not in a function); did you mean ‘powernowk8_cpu_exit’?
  .init  = powernowk8_cpu_init,
           ^~~~~~~~~~~~~~~~~~~
           powernowk8_cpu_exit
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘cpb_notify’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2313:7: error: ‘CPU_UP_PREPARE_FROZEN’ undeclared (first use in this function); did you mean ‘CPU_UP_PREPARE’?
  case CPU_UP_PREPARE_FROZEN:
       ^~~~~~~~~~~~~~~~~~~~~
       CPU_UP_PREPARE
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2313:7: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2322:7: error: ‘CPU_DOWN_PREPARE’ undeclared (first use in this function); did you mean ‘CPU_UP_PREPARE’?
  case CPU_DOWN_PREPARE:
       ^~~~~~~~~~~~~~~~
       CPU_UP_PREPARE
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2323:7: error: ‘CPU_DOWN_PREPARE_FROZEN’ undeclared (first use in this function); did you mean ‘CPU_DEAD_FROZEN’?
  case CPU_DOWN_PREPARE_FROZEN:
       ^~~~~~~~~~~~~~~~~~~~~~~
       CPU_DEAD_FROZEN
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: At top level:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2341:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘powernowk8_init’
 static int __cpuinit powernowk8_init(void)
                      ^~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘powernowk8_exit’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2408:3: error: implicit declaration of function ‘unregister_cpu_notifier’; did you mean ‘unregister_acpi_notifier’? [-Werror=implicit-function-declaration]
   unregister_cpu_notifier(&cpb_nb);
   ^~~~~~~~~~~~~~~~~~~~~~~
   unregister_acpi_notifier
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:39:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘__inittest’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2419:15: error: ‘powernowk8_init’ undeclared (first use in this function); did you mean ‘powernowk8_exit’?
 late_initcall(powernowk8_init);
               ^~~~~~~~~~~~~~~
./include/linux/module.h:131:11: note: in definition of macro ‘module_init’
  { return initfn; }     \
           ^~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2419:1: note: in expansion of macro ‘late_initcall’
 late_initcall(powernowk8_init);
 ^~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: At top level:
./include/linux/module.h:132:6: error: ‘init_module’ aliased to undefined symbol ‘powernowk8_init’
  int init_module(void) __attribute__((alias(#initfn)));
      ^~~~~~~~~~~
./include/linux/module.h:122:28: note: in expansion of macro ‘module_init’
 #define late_initcall(fn)  module_init(fn)
                            ^~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2419:1: note: in expansion of macro ‘late_initcall’
 late_initcall(powernowk8_init);
 ^~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2252:12: warning: ‘powernowk8_init_attr’ defined but not used [-Wunused-function]
 static int powernowk8_init_attr(struct cpufreq_policy *pol)
            ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1214:12: warning: ‘get_transition_latency’ defined but not used [-Wunused-function]
 static int get_transition_latency(struct powernow_k8_data *data)
            ^~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:886:12: warning: ‘powernow_k8_cpu_init_acpi’ defined but not used [-Wunused-function]
 static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:782:12: warning: ‘find_psb_table’ defined but not used [-Wunused-function]
 static int find_psb_table(struct powernow_k8_data *data)
            ^~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:547:13: warning: ‘check_supported_cpu’ defined but not used [-Wunused-function]
 static void check_supported_cpu(void *_rc)
             ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:198:13: warning: ‘fidvid_msr_init’ defined but not used [-Wunused-function]
 static void fidvid_msr_init(void)
             ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:331: /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.o] Error 1
make: *** [Makefile:1562: _module_/var/lib/dkms/phc-k8/0.4.6/build] Error 2
make: Leaving directory '/usr/lib/modules/4.16.9-1-ARCH/build'

Offline

#6 2018-05-19 18:06:27

loqs
Member
Registered: 2014-03-06
Posts: 17,304

Re: Installing phc-k8 from AUR

Can you try installing the linux-lts kernel and headers and see if phc-k8 has been broken since 4.14 or the breakage started with 4.15 or 4.16.

Offline

#7 2018-05-19 19:44:32

phil5
Member
Registered: 2018-02-14
Posts: 17

Re: Installing phc-k8 from AUR

My boot partition is full so I'm not able to install linux-tls, unfortunately.

Offline

#8 2018-05-19 19:56:25

loqs
Member
Registered: 2014-03-06
Posts: 17,304

Re: Installing phc-k8 from AUR

DKMS make.log for phc-k8-0.4.6 for kernel 4.14.41-1-lts (x86_64)
Sat 19 May 19:49:41 UTC 2018
make: Entering directory '/usr/lib/modules/4.14.41-1-lts/build'
  AR      /var/lib/dkms/phc-k8/0.4.6/build/built-in.o
  CC [M]  /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.o
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘fill_powernow_table’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:769:20: error: implicit declaration of function ‘cpu_core_mask’; did you mean ‘cpu_none_mask’? [-Werror=implicit-function-declaration]
  if (cpumask_first(cpu_core_mask(data->cpu)) == data->cpu)
                    ^~~~~~~~~~~~~
                    cpu_none_mask
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:769:20: warning: passing argument 1 of ‘cpumask_first’ makes pointer from integer without a cast [-Wint-conversion]
  if (cpumask_first(cpu_core_mask(data->cpu)) == data->cpu)
                    ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/smp.h:13,
                 from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:38:
./include/linux/cpumask.h:179:64: note: expected ‘const struct cpumask *’ but argument is of type ‘int’
 static inline unsigned int cpumask_first(const struct cpumask *srcp)
                                          ~~~~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘powernow_k8_cpu_init_acpi’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:979:20: warning: passing argument 1 of ‘cpumask_first’ makes pointer from integer without a cast [-Wint-conversion]
  if (cpumask_first(cpu_core_mask(data->cpu)) == data->cpu)
                    ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/smp.h:13,
                 from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:38:
./include/linux/cpumask.h:179:64: note: expected ‘const struct cpumask *’ but argument is of type ‘int’
 static inline unsigned int cpumask_first(const struct cpumask *srcp)
                                          ~~~~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1008:40: warning: passing argument 1 of ‘acpi_processor_unregister_performance’ makes integer from pointer without a cast [-Wint-conversion]
  acpi_processor_unregister_performance(&data->acpi_data, data->cpu);
                                        ^~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:57:
./include/acpi/processor.h:251:64: note: expected ‘unsigned int’ but argument is of type ‘struct acpi_processor_performance *’
 extern void acpi_processor_unregister_performance(unsigned int cpu);
                                                   ~~~~~~~~~~~~~^~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1008:2: error: too many arguments to function ‘acpi_processor_unregister_performance’
  acpi_processor_unregister_performance(&data->acpi_data, data->cpu);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:57:
./include/acpi/processor.h:251:13: note: declared here
 extern void acpi_processor_unregister_performance(unsigned int cpu);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘powernow_k8_cpu_exit_acpi’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1209:41: warning: passing argument 1 of ‘acpi_processor_unregister_performance’ makes integer from pointer without a cast [-Wint-conversion]
   acpi_processor_unregister_performance(&data->acpi_data,
                                         ^~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:57:
./include/acpi/processor.h:251:64: note: expected ‘unsigned int’ but argument is of type ‘struct acpi_processor_performance *’
 extern void acpi_processor_unregister_performance(unsigned int cpu);
                                                   ~~~~~~~~~~~~~^~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1209:3: error: too many arguments to function ‘acpi_processor_unregister_performance’
   acpi_processor_unregister_performance(&data->acpi_data,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:57:
./include/acpi/processor.h:251:13: note: declared here
 extern void acpi_processor_unregister_performance(unsigned int cpu);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘powernowk8_target_fn’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1420:46: warning: passing argument 2 of ‘cpufreq_frequency_table_target’ makes integer from pointer without a cast [-Wint-conversion]
  if (cpufreq_frequency_table_target(pol, data->powernow_table,
                                          ~~~~^~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:41:
./include/linux/cpufreq.h:866:21: note: expected ‘unsigned int’ but argument is of type ‘struct cpufreq_frequency_table *’
        unsigned int target_freq,
        ~~~~~~~~~~~~~^~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1420:6: error: too many arguments to function ‘cpufreq_frequency_table_target’
  if (cpufreq_frequency_table_target(pol, data->powernow_table,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:41:
./include/linux/cpufreq.h:865:19: note: declared here
 static inline int cpufreq_frequency_table_target(struct cpufreq_policy *policy,
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: At top level:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1475:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘powernowk8_cpu_init_on_cpu’
 static void __cpuinit powernowk8_cpu_init_on_cpu(void *_init_on_cpu)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1502:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘powernowk8_cpu_init’
 static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol)
                      ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2286:11: error: ‘powernowk8_cpu_init’ undeclared here (not in a function); did you mean ‘powernowk8_cpu_exit’?
  .init  = powernowk8_cpu_init,
           ^~~~~~~~~~~~~~~~~~~
           powernowk8_cpu_exit
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘cpb_notify’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2322:7: error: ‘CPU_DOWN_PREPARE’ undeclared (first use in this function); did you mean ‘CPU_UP_PREPARE’?
  case CPU_DOWN_PREPARE:
       ^~~~~~~~~~~~~~~~
       CPU_UP_PREPARE
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2322:7: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: At top level:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2341:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘powernowk8_init’
 static int __cpuinit powernowk8_init(void)
                      ^~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘powernowk8_exit’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2408:3: error: implicit declaration of function ‘unregister_cpu_notifier’; did you mean ‘unregister_acpi_notifier’? [-Werror=implicit-function-declaration]
   unregister_cpu_notifier(&cpb_nb);
   ^~~~~~~~~~~~~~~~~~~~~~~
   unregister_acpi_notifier
In file included from /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:39:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: In function ‘__inittest’:
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2419:15: error: ‘powernowk8_init’ undeclared (first use in this function); did you mean ‘powernowk8_exit’?
 late_initcall(powernowk8_init);
               ^~~~~~~~~~~~~~~
./include/linux/module.h:130:11: note: in definition of macro ‘module_init’
  { return initfn; }     \
           ^~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2419:1: note: in expansion of macro ‘late_initcall’
 late_initcall(powernowk8_init);
 ^~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c: At top level:
./include/linux/module.h:131:6: error: ‘init_module’ aliased to undefined symbol ‘powernowk8_init’
  int init_module(void) __attribute__((alias(#initfn)));
      ^~~~~~~~~~~
./include/linux/module.h:121:28: note: in expansion of macro ‘module_init’
 #define late_initcall(fn)  module_init(fn)
                            ^~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2419:1: note: in expansion of macro ‘late_initcall’
 late_initcall(powernowk8_init);
 ^~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:2252:12: warning: ‘powernowk8_init_attr’ defined but not used [-Wunused-function]
 static int powernowk8_init_attr(struct cpufreq_policy *pol)
            ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:1214:12: warning: ‘get_transition_latency’ defined but not used [-Wunused-function]
 static int get_transition_latency(struct powernow_k8_data *data)
            ^~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:886:12: warning: ‘powernow_k8_cpu_init_acpi’ defined but not used [-Wunused-function]
 static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:782:12: warning: ‘find_psb_table’ defined but not used [-Wunused-function]
 static int find_psb_table(struct powernow_k8_data *data)
            ^~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:547:13: warning: ‘check_supported_cpu’ defined but not used [-Wunused-function]
 static void check_supported_cpu(void *_rc)
             ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/phc-k8/0.4.6/build/phc-k8.c:198:13: warning: ‘fidvid_msr_init’ defined but not used [-Wunused-function]
 static void fidvid_msr_init(void)
             ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:335: /var/lib/dkms/phc-k8/0.4.6/build/phc-k8.o] Error 1
make: *** [Makefile:1528: _module_/var/lib/dkms/phc-k8/0.4.6/build] Error 2
make: Leaving directory '/usr/lib/modules/4.14.41-1-lts/build'

Edit:
phc-intel works after PKGBUILD update but package has been flagged out of date for three months work appears to be continuing upstream by a different author.
phc-k8 does not for at least 4.14+ and appears abandonned upstream.
package maintainer for both appears absent and wiki page needs updating and possibly noting the current state.

Last edited by loqs (2018-05-19 20:08:10)

Offline

#9 2018-05-19 23:00:43

phil5
Member
Registered: 2018-02-14
Posts: 17

Re: Installing phc-k8 from AUR

Thanks for the info!

Offline

#10 2018-05-19 23:26:20

loqs
Member
Registered: 2014-03-06
Posts: 17,304

Re: Installing phc-k8 from AUR

You might consider flagging both packages as orphaned.

Offline

Board footer

Powered by FluxBB