FORUMS

[SOLVED] Help compiling kernel?

71 posts
Thanks Meter: 116
 
By dougiebee, Member on 4th January 2014, 10:48 AM
Post Reply Subscribe to Thread Email Thread
Wondering if someone can help? I'm trying to compile the CM kernel.

I'm running Fedora 20 64-bit and have installed the relevant packages from this post:
http://marcofalchi.blogspot.co.uk/20...10-part-1.html

I'm using this guide to build the kernel:
http://forum.xda-developers.com/show....php?t=1748297

However no matter what toolchain I use, I get the following error:

Code:
In file included from arch/arm/mach-msm/perf_trace_counters.h:126:0,
                 from arch/arm/mach-msm/perf_trace_counters.c:14:
include/trace/define_trace.h:79:43: fatal error: ./perf_trace_counters.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/mach-msm/perf_trace_counters.o] Error 1
make[1]: *** Waiting for unfinished jobs....
  CC      kernel/exec_domain.o
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
Can anyone shed any light? I've also tried compiling ayysir's kernel with the same result.

Update: Never mind, I copied arch/arm/mach-msm/perf_trace_counters.h to include/trace/ and it worked.

Feels like a bit of a hack and I probably did something wrong, but it compiled and I have a zImage - now to see if it will boot.
Last edited by dougiebee; 5th January 2014 at 10:28 AM.
 
 
10th October 2014, 05:41 PM |#2  
kotzir's Avatar
Senior Member
Flag Thessaloniki
Thanks Meter: 1,742
 
Donate to Me
More
Quote:
Originally Posted by dougiebee

Wondering if someone can help? I'm trying to compile the CM kernel.

I'm running Fedora 20 64-bit and have installed the relevant packages from this post:
http://marcofalchi.blogspot.co.uk/20...10-part-1.html

I'm using this guide to build the kernel:
http://forum.xda-developers.com/show....php?t=1748297

However no matter what toolchain I use, I get the following error:

Code:
In file included from arch/arm/mach-msm/perf_trace_counters.h:126:0,
                 from arch/arm/mach-msm/perf_trace_counters.c:14:
include/trace/define_trace.h:79:43: fatal error: ./perf_trace_counters.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/mach-msm/perf_trace_counters.o] Error 1
make[1]: *** Waiting for unfinished jobs....
  CC      kernel/exec_domain.o
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
Can anyone shed any light? I've also tried compiling ayysir's kernel with the same result.

Update: Never mind, I copied arch/arm/mach-msm/perf_trace_counters.h to include/trace/ and it worked.

Feels like a bit of a hack and I probably did something wrong, but it compiled and I have a zImage - now to see if it will boot.

For future reference only! Here is the solution: Solution
The Following 3 Users Say Thank You to kotzir For This Useful Post: [ View ]
11th March 2015, 07:52 PM |#3  
h2o64's Avatar
Senior Member
Flag Paris
Thanks Meter: 1,766
 
Donate to Me
More
Quote:
Originally Posted by kostoulhs

For future reference only! Here is the solution: Solution

OR https://github.com/CyanogenMod/andro...4f815cd5fd45b7
The Following 2 Users Say Thank You to h2o64 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes