[Q] Trying to compile a kernel, getting error - HTC Sensation

I'm trying to compile a kernel for the Sensation using Tamcore's source but I get an error while compiling (w/o quotes):
"arch/arm/mach-msm/pm-8x60.c: In function 'msm_pm_init':
arch/arm/mach-msm/pm-8x60.c:1261: warning: unused variable 'cpu'
error, forbidden warning: pm-8x60.c:1261
make[1]: *** [arch/arm/mach-msm/pm-8x60.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs...."
I looked at the line in the file it errors out on (w/o quotes):
"unsigned int cpu;"
I don't know what to do from here since this is my first time compiling an Android kernel, so any help is appreciated.
EDIT: I've solved my problem and my kernel runs fast on JB . This thread is no longer necessary; please delete it.

Related

Kernel Compiling from source Issues

Been trying to compile a kernel from Bravo source, but it seems to stop here everytime.
make[3]: *** No rule to make target `net/ipv4/netfilter/ipt_ecn.o', needed by `net/ipv4/netfilter/built-in.o'. Stop.
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
I have pull the config from Richard Trip and decided to just run the make thinking there shouldn't be any problems.
Anyone with ideas?
@Richardtrip
can you post your acpuclock-scorpion.c?
n/m, disabled netfiltering seems to get it past the ipv4
eViL D: said:
@Richardtrip
can you post your acpuclock-scorpion.c?
Click to expand...
Click to collapse
Actually, n/m.
Do you have any patches besides the cam?

[Q] Error compiling CM10.1 (Ubuntu Phone build)

Hey!
I'm working on porting Ubuntu 13.04 for phones to HTC One S, and everything has gone well.... except, well, the compile.
Ubuntu Phone is based on a version of CM10.1 with only the low-level android services required (theres no dalvik) so it should be REALLY simple to port to our device, I have downloaded the Ubuntu Phone repo via git and also used "breakfast ville" to clone the CM10.1 Git, I have also used "repo sync" to get all of the dependencies.
But the error is in the compile, I use ". build/envsetup.sh" to prepare the build environment and then I run "brunch ville".... now this is where the problems begin:
Code:
make: *** No rule to make target `/home/djayc/ubuntu/ville/out/target/product/ville/obj/SHARED_LIBRARIES/libril_intermediates/export_includes', needed by `/home/djayc/ubuntu/ville/out/target/product/ville/obj/EXECUTABLES/rild_intermediates/import_includes'. Stop.
I've done a lot of Googling around, the compile only takes around 30 seconds before it gets to this stage - I presume it must be much longer than that.
There's probably a bunch of errors too but for now I'd just like to get this fatal one out of the way and continue the build before we start the debugging.
Thanks, help is appreciated.
-Cameron
Okay! Progress!
So, I commented out:
Code:
# RIL
BOARD_PROVIDES_LIBRIL := true
in the file device/htc/ville/BoardConfig.mk
This was recommended on Ubuntu Launchpad at https://lists.launchpad.net/ubuntu-phone/msg02822.html
It seems to fix this make error, but another one has popped up :/ (gotta love linux!)
Code:
Import includes file: /home/djayc/ubuntu/ville/out/target/product/ville/obj/SHARED_LIBRARIES/hwcomposer.msm8960_intermediates/import_includes
target thumb C++: gralloc.msm8960 <= hardware/qcom/display-caf/libgralloc/mapper.cpp
target thumb C++: liboverlay <= hardware/qcom/display-caf/liboverlay/overlay.cpp
target thumb C++: liboverlay <= hardware/qcom/display-caf/liboverlay/overlayCtrl.cpp
hardware/qcom/display-caf/libgralloc/framebuffer.cpp: In function 'int fb_post(framebuffer_device_t*, buffer_handle_t)':
hardware/qcom/display-caf/libgralloc/framebuffer.cpp:93:25: error: 'MDP_DISPLAY_COMMIT_OVERLAY' was not declared in this scope
make: *** [/home/djayc/ubuntu/ville/out/target/product/ville/obj/SHARED_LIBRARIES/gralloc.msm8960_intermediates/framebuffer.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: liboverlay <= hardware/qcom/display-caf/liboverlay/overlayUtils.cpp
hardware/qcom/audio-caf/alsa_sound/AudioPolicyManagerALSA.cpp: In member function 'virtual void android_audio_legacy::AudioPolicyManager::setPhoneState(int)':
hardware/qcom/audio-caf/alsa_sound/AudioPolicyManagerALSA.cpp:431:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[email protected]:~/ubuntu/ville$
I copied all of it because the error is about gralloc.msm8960 and it is referenced repeatedly, so maybe this could provide insight as to what the error derives from - wait, actually, I know, I'm missing the framebuffer.o file in gralloc.msm8960_intermediates.... but I DO have a framebuffer.d file in gralloc.msm8960_intermediates, is there a chance that the makefile that is compiling the project is referencing the wrong name of a file (unlikely I'd have thought because it is the offical CM10.1 & Ubuntu Phone environment)?
TL;DR: Is framebuffer.d equal to framebuffer.o, and if not how vital is the file and where would I get it?
I think the answers to those 3 questions would be: not sure, pretty vital (it seems to make the display work!), and the CM10.1 ville repo. Of course, the reason I am documenting this is because I'm not sure! So I'm grateful for any input.
Thanks!
-Cameron
EDIT: There seems to be a different issue each time, I ran brunch ville again and it gave me a metric ton of errors about qcom audio.... :/

[Q] Cant get AOSP to compile ever !

Hi guys
I am working on mac with OS 10.7.5
i have xcode 4.6
I downloaded 4.2 version for Android
Following is the error , i would really appreciate it if somebody could just throw some light on what is actually hapenning
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/cwchar:61: error: expected constructor, destructor, or type conversion before ‘extern’
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/new:45,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_construct.h:65,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/memory:55,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/string:48,
from build/libs/host/include/host/pseudolocalize.h:4,
from build/libs/host/pseudolocalize.cpp:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/exception:40: error: expected declaration before end of line
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libhost_intermediates/pseudolocalize.o] Error 1

[Completed] kernel compile errors- please help me

i have got some errors while compiling sony xperia kernel, i think this have easy fix, but i'm noob in linux.
so please help me with it, thanks in advance.
-----------------------------------------
error message:
-----------------------------------------
In file included from drivers/gud/MobiCoreDriver/logging.c:21:0:
drivers/gud/MobiCoreDriver/main.h:24:22: fatal error: platform.h: No such file or directory
#include "platform.h"
^
compilation terminated.
make[2]: *** [drivers/gud/MobiCoreDriver/logging.o] Error 1
make[1]: *** [drivers/gud] Error 2
make: *** [drivers] Error 2
--------------------------------------------------------------
help me please
samysimbu said:
i have got some errors while compiling sony xperia kernel, i think this have easy fix, but i'm noob in linux.
so please help me with it, thanks in advance.
-----------------------------------------
error message:
-----------------------------------------
In file included from drivers/gud/MobiCoreDriver/logging.c:21:0:
drivers/gud/MobiCoreDriver/main.h:24:22: fatal error: platform.h: No such file or directory
#include "platform.h"
^
compilation terminated.
make[2]: *** [drivers/gud/MobiCoreDriver/logging.o] Error 1
make[1]: *** [drivers/gud] Error 2
make: *** [drivers] Error 2
--------------------------------------------------------------
help me please
Click to expand...
Click to collapse
We have forums dedicated to various Sony Xperia devices at http://forum.xda-developers.com/sony but your MAKE or compiler error doesn't seem to be specific to your device, merely suggesting that you need to include a "platform.h" header file. I suggest you ask wherever you acquired the basic source components (SDK?) that you are attempting to compile.
Good Luck!
thank you for the reply...
i use sony opensource archive for my device
and gcc 4.8 toolchain
in ubuntu 14.04 LTS 64 bit os.
please help with it.
thank u
and there is platform.h file available in that folder specified.
then why........
samysimbu said:
and there is platform.h file available in that folder specified.
then why........
Click to expand...
Click to collapse
Apparently, it still can't find or identify that file. I'm afraid we can't help you any further here with your Ubuntu compile/make issue but Sony's http://developer.sonymobile.com site might have useful information for you.
Sorry we couldn't give you more specific advice.

[Completed] Help compiling SGH Hercules kernel for porting kali nethunter

Hi everyone!
I own the Samsung Galaxy S2 T989 A.K.A. Hercules
running cm 12.1 unofficial Sultan Hercules based on android 5.1.1 (Lollipop)
which has sultan-kernel-celox.
I am actually trying to port kali nethunter, a set of tools for pentesting (Awesome)
Running Kali linux 2.0 32 bits in my notebook. I have installed all the dependencies described in:
https://github.com/offensive-security/kali-nethunter/wiki/Porting-Nethunter
I am using the next rom:
http://forum.xda-developers.com/galaxy-s2-tmobile/development/rom-aosp-lollipop-preview-t2931716
I also read the Develop Now guide to understand a bit better.
So the problem is when I run the " make" command in the sultan-kernel-celox kernel source directory and using " make Sultan_hercules_defconfig" which is inside /arch/arm/configs .
the error I am getting is:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
/bin/sh: 1: Syntax error: "(" unexpected
/root/arm-stuff/kali-nethunter/sultan-herc/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 2
Makefile:989: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
So with my very limited knowledge about development and scripting check the Kbuild file at line 35 but I can't understand, I have also "googled" about the error I am getting but without luck, I also have tried with other sources kernel I have found but it seems to be the same message.
So please help me to figure what am I doing wrong or which kernel source should I use. I hope someone with so much more experience than me would help me with this issue to finally getting the nethunter tools.
Thanks in advance
v4lh4ll4 said:
Hi everyone!
I own the Samsung Galaxy S2 T989 A.K.A. Hercules
running cm 12.1 unofficial Sultan Hercules based on android 5.1.1 (Lollipop)
which has sultan-kernel-celox.
I am actually trying to port kali nethunter, a set of tools for pentesting (Awesome)
Running Kali linux 2.0 32 bits in my notebook. I have installed all the dependencies described in:
https://github.com/offensive-security/kali-nethunter/wiki/Porting-Nethunter
I am using the next rom:
http://forum.xda-developers.com/galaxy-s2-tmobile/development/rom-aosp-lollipop-preview-t2931716
I also read the Develop Now guide to understand a bit better.
So the problem is when I run the " make" command in the sultan-kernel-celox kernel source directory and using " make Sultan_hercules_defconfig" which is inside /arch/arm/configs .
the error I am getting is:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
/bin/sh: 1: Syntax error: "(" unexpected
/root/arm-stuff/kali-nethunter/sultan-herc/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 2
Makefile:989: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
So with my very limited knowledge about development and scripting check the Kbuild file at line 35 but I can't understand, I have also "googled" about the error I am getting but without luck, I also have tried with other sources kernel I have found but it seems to be the same message.
So please help me to figure what am I doing wrong or which kernel source should I use. I hope someone with so much more experience than me would help me with this issue to finally getting the nethunter tools.
Thanks in advance
Click to expand...
Click to collapse
Hi and thank you for using XDA Assist
I think you should ask over here about your problem. I'm sure you will get an answer soon
Good luck !

Categories

Resources