franciscofranco / mako

Nexus 4
Other
95 stars 87 forks source link

Can't compile nightlies-4.4 branch #7

Open M1cha opened 10 years ago

M1cha commented 10 years ago

I get this error during compile: drivers/cpufreq/cpufreq_ondemand.c:179:27: error: conflicting types for 'get_cpu_idle_time' In file included from drivers/cpufreq/cpufreq_ondemand.c:17:0: include/linux/cpufreq.h:320:5: note: previous declaration of 'get_cpu_idle_time' was here

I use the cm11 toolchain (prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin)

0xKiwi commented 10 years ago

I haven't fixed it yet, but this is some advice Franco has given to fix. Please notify me if you can fix it. http://forum.xda-developers.com/showpost.php?p=48640680&postcount=8374

raden commented 10 years ago

In my case I opt using cpufreq.h instead referencing the same function using the internal (built in the governor)

0xKiwi commented 10 years ago

And it worked? Any way you can show me what you did?

raden commented 10 years ago

It's something like this. Renaming the function so that it'll not refer to the generic library

https://github.com/raden/franco-gombak/commit/266ccef1e587b7314645966efaf33c1e0af69ae4

0xKiwi commented 10 years ago

Thanks, I'll try it tomorrow, so I do that to interactive and on-demand right?

M1cha commented 10 years ago

My fix was extracting the config from Franco's latest release because the one on github seems to be outdated

kecinzer commented 10 years ago

Yes, you need to extract defconfig from latest released kernel. You can look at my fork - https://github.com/kecinzer/francoKernel_mako

0xKiwi commented 10 years ago

So if you extract it, you don't need to change the on-demand?

franciscofranco commented 10 years ago

If you disable ondemand from the config you won't need to do anything, but I pushed the fix to Ondemand building to my hammerhead repo, branch nightlies.

2014-03-31 6:53 GMT+01:00 Ivan Martinez notifications@github.com:

So if you extract it, you don't need to change the on-demand?

Reply to this email directly or view it on GitHubhttps://github.com/franciscofranco/mako/issues/7#issuecomment-39055868 .

0xKiwi commented 10 years ago

I tried disabling on demand, then the error occurs in conservative, after disabling that, it occurs in msm_rq_stats

0xKiwi commented 10 years ago

Okay, I got it to build, but switching governor to interactive or ondemand causes a reboot. I have a Last_ksmg, and I'm not so experienced on the kernel side, so I was wondering if I could use your help again https://drive.google.com/file/d/0B8zMM8gQ0ZJIR2FiTkkyblMxZnc/edit?usp=docslist_api

And my sources are up Thanks