phc-k8 on debian sid kernel

If you have trouble with PHC you can ask and hope for help here.
Post Reply
patrick85
Posts: 7
Joined: Sun 7. Jun 2009, 09:48

phc-k8 on debian sid kernel

Post by patrick85 » Sun 7. Jun 2009, 09:58

Hi.

I have problems compiling the phc-k8 module on the Kernel 2.6.29 from Debian Sid. The kernel from Lenny (2.6.26) is no problem, but on the Sid-kernel make exits with an error.

I am working with AMD64. Don't know if it's working on i386.

debian:/home/patrick/phc-k8_v0.4.0# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/patrick/phc-k8_v0.4.0 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.29-2-amd64'
CC [M] /home/patrick/phc-k8_v0.4.0/phc-k8.o
/home/patrick/phc-k8_v0.4.0/phc-k8.c: In function ‘powernowk8_cpu_init’:
/home/patrick/phc-k8_v0.4.0/phc-k8.c:1733: error: incompatible types in assignment
/home/patrick/phc-k8_v0.4.0/phc-k8.c:1735: error: incompatible types in assignment
/home/patrick/phc-k8_v0.4.0/phc-k8.c:1736: warning: assignment from incompatible pointer type
make[4]: *** [/home/patrick/phc-k8_v0.4.0/phc-k8.o] Fehler 1
make[3]: *** [_module_/home/patrick/phc-k8_v0.4.0] Fehler 2
make[2]: *** [sub-make] Fehler 2
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.29-2-amd64'
make: *** [phc-k8.ko] Fehler 2

Thanks for any advise.

User avatar
DavidG
Posts: 180
Joined: Fri 18. Jul 2008, 11:25
Contact:

Re: phc-k8 on debian sid kernel

Post by DavidG » Sun 7. Jun 2009, 21:53

Since I am unable to run 2.6.29 on my notebook (FGLRX driver doesn't really work, and resume-from-suspend is broken *again*) I haven't really been able to test the driver on 2.6.29. I'll take a look at it ASAP.
A bank is a place where they lend you an umbrella in fair weather and ask for it back when it begins to rain -- R. Frost

disturbedsaint
Posts: 1
Joined: Mon 8. Jun 2009, 14:08

Re: phc-k8 on debian sid kernel

Post by disturbedsaint » Mon 8. Jun 2009, 14:20

Hi David,

There was a change in kernels 2.6.28 (I believe) concerning the way cpumask works (that's what I understand at least, I don't know any C).
See:
http://www.mail-archive.com/kernel-test ... 01616.html
http://www.linux-phc.org/forum/viewtopic.php?f=8&t=90
http://lkml.org/lkml/2008/12/27/75

cpumask_var_t replaced cpumask_t and some other things changed as well

Unfortunately I couldn't find any clear migration document from the way it was to how it is now containing info on what exactly has changed.

Hope this can be of help.

User avatar
DavidG
Posts: 180
Joined: Fri 18. Jul 2008, 11:25
Contact:

Re: phc-k8 on debian sid kernel

Post by DavidG » Mon 8. Jun 2009, 23:50

disturbedsaint wrote:Hi David,

There was a change in kernels 2.6.28 (I believe) concerning the way cpumask works (that's what I
Yes, I already knew it, it's not in 2.6.28, but I thought it wasn't a problem at the moment, not for 2.6.29 vanilla. Actually I already did the modifications to the newer driver that will support Phenoms/Turion X2 RM/ZM processors... So I'll need to backport while keeping in mind that the driver should still work on for example Ubuntu LTS... It's only the time I lack at the moment, hopefully I get to write and test it later this week.
A bank is a place where they lend you an umbrella in fair weather and ask for it back when it begins to rain -- R. Frost

Post Reply