mako icon indicating copy to clipboard operation
mako copied to clipboard

Can't compile nightlies-4.4 branch

Open M1cha opened this issue 10 years ago • 11 comments

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)

M1cha avatar Jan 21 '14 09:01 M1cha

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

0xKiwi avatar Mar 31 '14 02:03 0xKiwi

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

raden avatar Mar 31 '14 02:03 raden

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

0xKiwi avatar Mar 31 '14 04:03 0xKiwi

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

raden avatar Mar 31 '14 05:03 raden

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

0xKiwi avatar Mar 31 '14 05:03 0xKiwi

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

M1cha avatar Mar 31 '14 05:03 M1cha

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

kecinzer avatar Mar 31 '14 05:03 kecinzer

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

0xKiwi avatar Mar 31 '14 05:03 0xKiwi

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 [email protected]:

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 .

franciscofranco avatar Mar 31 '14 16:03 franciscofranco

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

0xKiwi avatar Mar 31 '14 18:03 0xKiwi

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

0xKiwi avatar Apr 01 '14 01:04 0xKiwi