Building Kernel From Source Help!! - Android Q&A, Help & Troubleshooting

Hi all im trying to build a kernel from sony source. Everything was going fine untill the actual compile and im facing this error
Makefile:327: /scripts/Kbuild.include: No such file or directory
Makefile:571: /arch//Makefile: No such file or directory
make: /scripts/gcc-wrapper.py: Command not found
p�o�p�o�bbpper.py gcc/bin/bash: /scripts/gcc-goto.sh: No such file or directory
��o���o�PaPapper.py gccMakefile:1174: *** target pattern contains no `%'. Stop.
[email protected]:~/Desktop/work-space/Kernel-Workspace/Dark-Moon/kernel$
I don't know whats wrong this is my first atempt at a kernel so i don't have much knowledge i have been following this TuT http://forum.xda-developers.com/showthread.php?t=1748297 and got this error at step 5 part B,a Can anyone help a noob

Related

(Q) First time Compiling

Ok, I setup my 2 build boxes. One Ubuntu 11.10x64 and one Mint 11x86. Installed required packages and downloaded multiple toolchains. I have tried compiling on both machines and on both I get the same errors.
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
I have tried make thunderc_perf_defconfig and get the same error. Copied .config from device dropped into source, same error.
Any ideas on what is going on? I'm new to this so any help would be great.
I don't known, maybe gcc
try checking your mount options?
Nope its not gcc; as I said I have installed all required packages including gcc + bison etc. My mount options? Is that the "export ARCH=arm" ? Where I have to set the default compiler? I'm new to the newer flavors of linux. The last distro I used was Mandrake 7.1 ;-) Now I am testing this on 2 builds; an x64 Ubuntu and a x86 Mint(Which is Ubuntu). I have to be missing something on both, but I have followed tutorials guides to the T and still get this error. I get more errors than this by the way. The compiler kicks back Kconfig saying unexpected line of code.
SgtPropain said:
Ok, I setup my 2 build boxes. One Ubuntu 11.10x64 and one Mint 11x86. Installed required packages and downloaded multiple toolchains. I have tried compiling on both machines and on both I get the same errors.
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
I have tried make thunderc_perf_defconfig and get the same error. Copied .config from device dropped into source, same error.
Any ideas on what is going on? I'm new to this so any help would be great.
Click to expand...
Click to collapse
I ran a search on your error message about the missing rule to make auto.conf and found this:
https://bbs.archlinux.org/viewtopic.php?id=99089
It relates to the other poster's comment about checking your mount options. It's a short process to fix it.
And if it doesn't work maybe it will at least give you a new error message to research.
glarepate said:
I ran a search on your error message about the missing rule to make auto.conf and found this:
https://bbs.archlinux.org/viewtopic.php?id=99089
It relates to the other poster's comment about checking your mount options. It's a short process to fix it.
And if it doesn't work maybe it will at least give you a new error message to research.
Click to expand...
Click to collapse
just as i thought. that might have happened. its worth a try though.
SgtPropain said:
Nope its not gcc; as I said I have installed all required packages including gcc + bison etc. My mount options? Is that the "export ARCH=arm" ? Where I have to set the default compiler? I'm new to the newer flavors of linux. The last distro I used was Mandrake 7.1 ;-) Now I am testing this on 2 builds; an x64 Ubuntu and a x86 Mint(Which is Ubuntu). I have to be missing something on both, but I have followed tutorials guides to the T and still get this error. I get more errors than this by the way. The compiler kicks back Kconfig saying unexpected line of code.
Click to expand...
Click to collapse
Wrong...
Because you don't have .config file in the source. If you are building kernel from source, you must have the kernel config. That kernel config can be shared in the source code, it depends on that kernel developer, he can shared it in arch/arm/config, access to there then find that kernel defconfig. Or you can get the kernel config of that kernel with another method, but this method just can be applied if the kernel you want to build is for our device: flash that kernel then go to terminal then type:
Code:
su
(Accept the super user)
Code:
cp /proc/config.gz /sdcard
If it show "No such file or directory found" so you should ask that kernel developer for their .config.
If it doesn't show anything, go to sdcard and find if there is a file that named config.gz, it's the kernel config. Get back to terminal then type:
cd /sdcard
gunzip config.gz
Voila!
I actually tried that already.... I have been at this for about three days. XDA was my last resort as I like to figure things out on my own. However I'm stuck @ a brick wall. I have edited /etc/fstab and removed the bs mount options..remounted same error. Mind you I'm doing most of this from a Virtual Environment. Starting to think this is my issue, but it doesn't explain the same error on machine #2. Maybe I'm doing it right, possibly a bad git clone?
thachtunganh said:
Wrong...
Because you don't have .config file in the source. If you are building kernel from source, you must have the kernel config. That kernel config can be shared in the source code, it depends on that kernel developer, he can shared it in arch/arm/config, access to there then find that kernel defconfig. Or you can get the kernel config of that kernel with another method, but this method just can be applied if the kernel you want to build is for our device: flash that kernel then go to terminal then type:
Code:
su
(Accept the super user)
Code:
cp /proc/config.gz /sdcard
If it show "No such file or directory found" so you should ask that kernel developer for their .config.
If it doesn't show anything, go to sdcard and find if there is a file that named config.gz, it's the kernel config. Get back to terminal then type:
cd /sdcard
gunzip config.gz
Voila!
Click to expand...
Click to collapse
Yeah that would be great if I hadn't done that already. In my post I stated I had replaced the .config from my device. I have literately tried everything but doing this from base. IE not from a VM. I appreciate the help but its a "no go".
Beginning of my .config for proof
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.32.9-ck2
# Wed Apr 11 20:41:44 2012
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_GENERIC_GPIO=y
CONFIG_GENERIC_TIME=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_KTIME_SCALAR=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_HARDIRQS_SW_RESEND=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_ARCH_HAS_CPUFREQ=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
CONFIG_VECTORS_BASE=0xffff0000
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_CONSTRUCTORS=y
Setting up a third independent machine Ubuntu x86 testing..
where do you get that .config from?
pull /proc/config.gz
SgtPropain said:
pull /proc/config.gz
Click to expand...
Click to collapse
What device are you using, and what kernel are you using.
for the time being you can use prebuilt kernel...no need to build kernel from source....
williamcharles said:
for the time being you can use prebuilt kernel...no need to build kernel from source....
Click to expand...
Click to collapse
He isn't building ROM from source. He is learning how to build a kernel from source.
Sorry for the delay; had 2 deaths in the family.
I setup my third box and again I get the same results. I really don't know where I'm going wrong. This kinda makes me lean to, I have bad source code. I'm no pro C programmer; however when building I get Kconfig errors. I opened said file and the comments look all messed up. The compiler I think is reading the comments as code and kicking it back giving me this error.
by the way what are you compiling and please teach me compiling i want to learn it .
I'm compiling a modified kernel for the Optimus V. I can't teach you how to compile because I don't even know if I'm doing it right.

Kernel compile error

Hello everyone. I have just started taking interest in the android world and have started to learn how to compile kernels.
I own a SAMSUNG GALAXY S2 I9100G.
I have downloaded the aosp kernel source for my mobile from the cyanogenmod's github.
And followed guides to compile.
(i was able to compile a stock kernel but am having problems in compilling an aosp kernel )
I follow these commands:-
1. Make cyanogenmod_i9100g_defconfig
2. Make menuconfig
3. Make -j4
And this is the error i get
Code:
/home/incarnation95/Downloads/arm-2011.03/bin/arm-none-eabi-ld: cannot open linker script file /arch/arm/mach-omap2/sec_omap.lds: No such file or directory
make[1]: *** [arch/arm/mach-omap2/mailbox_mach.o] Error 1
make: *** [arch/arm/mach-omap2] Error 2
Can anyone help mr figure out where the problem might be?
I did search 4-5 times before posting here but didnt find any solution.
Thanks in advance
Was chatting with incarnation95 offline, on resolving this issue, so here's for the benefit of others facing this same problem .
Go and open up the Makefile.sec , for my case the absolute path was :
/home/currway/kernelmod/fuss132/arch/arm/mach-omap2# vi Makefile.sec
In the content , find this line below and edit it to have the absolute path instead , so that sec_omap.lds can be references correctly:
dflags-$(CONFIG_MACH_OMAP4_SAMSUNG) += \
-T /home/currway/kernelmod/fuss132/arch/arm/mach-omap2/sec_omap.lds

[ISSUE] Compile cyanoboot: No rule to make target

Hi,
I'm trying to compile the cyanoboot project found at: github.com/CMNookTablet/acclaim_cyanoboot. I have no experience with c++ compiling but I've followed the read-me and seem to have hit a brick wall. I've extracted the downloaded source files and navigated to them in cygwin, I then run the command:
make clean
which looks like it is successful. After that I run
make omap4430sdp_config
which also seems to work but doesn't create any files(not sure if it should?). Then, when I run the final make command I get the error:
makefile:98: /cygdrive/c/cyanoboot/config.mk: No such file or directory
make: *** No rule to make target `/cygdrive/c/cyanoboot/config.mk'. Stop.
This config.mk file definitely does exist, you can see it at the git hub link above and I haven't changed any files. I've been struggling with this for a few hours now and I just cant figure it out. Any help is much appreciated. Thanks.

Cm13 build error

Tried to build CM13 from source, but I always had this error
Code:
make: *** No rule to make target '/home/hicham03/cm13/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/classes.jack', needed by '/home/hicham03/cm13/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex'. Arrêt.
make: *** Attente des tâches non terminées....
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
make: Leaving directory '/home/hicham03/cm13'
#### make failed to build some targets (16:28 (mm:ss)) ####
Full log here: http://pastebin.com/jyBW0jzz
Is there any solution for that?
It must be there is missed file you should go and check whether it's already exist or not .
Check last part of the log file you must find something like file not found or no rule to make ..... And it will provide the path for the missed file .
I can't check the log you provided as I open from my galaxy star .
LahKeda said:
It must be there is missed file you should go and check whether it's already exist or not .
Check last part of the log file you must find something like file not found or no rule to make ..... And it will provide the path for the missed file .
I can't check the log you provided as I open from my galaxy star .
Click to expand...
Click to collapse
But where can I find org.cyanogenmod.platform.internal_intermediates folder ?
Hicham03 said:
But where can I find org.cyanogenmod.platform.internal_intermediates folder ?
Click to expand...
Click to collapse
The problem is not in that folder , the problem is coming from a missed file in cm source like if there an included file is not exist or the path is wrong or just simply it's rambling
wow! cm 13 nice !
LahKeda said:
The problem is not in that folder , the problem is coming from a missed file in cm source like if there an included file is not exist or the path is wrong or just simply it's rambling
Click to expand...
Click to collapse
But the missing file is located in that missing folder..
Hicham03 said:
But the missing file is located in that missing folder..
Click to expand...
Click to collapse
Here is wait is going on while building :
While building here are files copied to that path
out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex'.
Click to expand...
Click to collapse
then after they're copied they will be built so if these files are not exist in cm13 source , they won't be exist in that path then when it try to build them they will not find these files so you get this error .
Did you tried to start building again ? it may help you .
Bro can re-repo source cm13?
LahKeda said:
Here is wait is going on while building :
While building here are files copied to that path
then after they're copied they will be built so if these files are not exist in cm13 source , they won't be exist in that path then when it try to build them they will not find these files so you get this error .
Did you tried to start building again ? it may help you .
Click to expand...
Click to collapse
Oh oh... bluetooth_intermediates isn't available too.
New error after re-synced repo:
Code:
make: *** No rule to make target '/home/hicham03/cm13/out/target/product/higgs2g/obj/KERNEL_OBJ/usr', needed by '/home/hicham03/cm13/out/target/product/higgs2g/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/mixer.o'. Arrêt.
make: *** Attente des tâches non terminées....
Export includes file: external/tinyalsa/Android.mk -- /home/hicham03/cm13/out/target/product/higgs2g/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/export_includes
make: Leaving directory '/home/hicham03/cm13'
#### make failed to build some targets (06:48 (mm:ss)) ####
And there too, KERNEL_OBJ is unavailable.

Problem with Android Kitchen with Asus ZenFone 2 Z00L .img MM on Linux

Hi guys i'm having a problem with Kitchen 0.224 on opening a system.img of Android MM 6.0.1.
when i start the process of creating a working folder and when the process is done i get the following message:
Compiling simg2img ...
In file included from sparse_crc32.c:46:0:
ext4_utils.h:29:23: fatal error: sys/types.h: No such file or directory
compilation terminated.
gcc: error: sparse_crc32.o: No such file or directory
rm: cannot remove '*.o': No such file or directory
Error: simg2img not successfully compiled!
to be specific i'm running kitchen on linux mint 18.2,followed all the steps to get kitchen working.
Phone Asus ZenFone 2 Z00L MarshMallow.img ROM .
any idea on what is wrong ?? how do i get to work and modify that ROM?
any lil help is appreciated
oh and before someone wonder and even ask yes i am a beginner on those stuff

Categories

Resources