[Solved] Compile Error phc-k8 since 2.6.33

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

[Solved] Compile Error phc-k8 since 2.6.33

Post by patrick85 » Sat 5. Jun 2010, 22:49

Hello.

Since Kernel 2.6.33 (.34 and .35-rc1 also) the phc-k8 module can not be compiled because of missing utsrelease.h in the linux-headers.

Code: Select all

awk: (FILENAME=/lib/modules/2.6.34-0.slh.7-sidux-amd64/build/include/linux/version.h FNR=2) Fatal: Kann Datei '/lib/modules/2.6.34-0.slh.7-sidux-amd64/build/include/linux/utsrelease.h' nicht zum Lesen öffnen (Datei oder Verzeichnis nicht gefunden).
Makefile:18: *** Kernel version not found, maybe you need to install appropriate kernel-headers or run make with KERNELSRC parameter, e.g.: make KERNELSRC=/usr/src/linux.  Schluss.
Copying from previous 2.6.32-headers and changing manually the content to the appropriate Kernel-Version works, but i dont't know if this could be an issue in the futures or for others...
Last edited by patrick85 on Mon 7. Jun 2010, 20:30, edited 1 time in total.

the-fallen
Administrator
Posts: 346
Joined: Wed 9. Jul 2008, 19:57

Re: Compile Error phc-k8 since 2.6.33

Post by the-fallen » Sun 6. Jun 2010, 10:36

Hello,

what package are you using? In the download section there is a new package with ending -11 .
It contains patches for .33 and .34 and a modified Makefile that should prevent the problem you've described.

Please report back if you just have used the "wrong" package or if there is still a problem we need to fix. Thanks.

patrick85
Posts: 7
Joined: Sun 7. Jun 2009, 09:48

Re: Compile Error phc-k8 since 2.6.33

Post by patrick85 » Sun 6. Jun 2010, 11:32

The -11 release you mentioned is for the acpi-cpufreq-module for undervolting of Intel CPUs, but i wrote about the phc-k8 module for AMD Turions.

Using the latest phc-k8-4.2. The make-file is looking for the utsrelease.h, but it is no more present in the kernel-headers since Kernel 2.6.33.

The latest intel-phc is compiling with some minor errors. Because I don't have an Intel CPU I cant test it further. So it seems the Makefile of the phc-k8 needs also the appropriate changes.

BTW, using 64-Bit.

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

Re: Compile Error phc-k8 since 2.6.33

Post by DavidG » Sun 6. Jun 2010, 15:50

I'm aware of the problem but I haven't had time to solve this... In the Makefile, as a workaround you can change the reference to "include/linux/utsrelease.h" into "include/*/utsrelease.h". The file "utsrelease.h" used to be in "include/linux/" before 2.6.33, but now it is in "include/generated/".

patrick85
Posts: 7
Joined: Sun 7. Jun 2009, 09:48

Re: Compile Error phc-k8 since 2.6.33

Post by patrick85 » Mon 7. Jun 2010, 20:30

Hey.

Thanks for your replay.

I didn't recognized that they only changed it do /include/generated :oops:

So as you are aware of the problem and posted a workaround this topic is now solved.

Post Reply