[HELP] Android kernel compiling error. - General Questions and Answers

Hi every body, I am trying to compile kernel for SamSung Galaxy S5 (SM-G906K).
I always get this error message, i don't know how to solve it. Please help me !
Thank you all!
________________________________________________________
/home/vip7009pro/Kernel2/drivers/gpu/gpu_sysfs/Kbuild:29: **** Make sure target file is defined. Check the TARGET and GPU configs in Makefile and Kernel Config. Module won't work without target file. ****
scripts/Makefile.clean:17: /home/vip7009pro/Kernel2/drivers/media/isdbt/fc8150/Makefile: No such file or directory
make[4]: *** No rule to make target `/home/vip7009pro/Kernel2/drivers/media/isdbt/fc8150/Makefile'. Stop.
make[3]: *** [drivers/media/isdbt/fc8150] Error 2
make[2]: *** [drivers/media/isdbt] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [_clean_drivers] Error 2
[email protected]:~/Kernel2$ make mrproper
/home/vip7009pro/Kernel2/drivers/gpu/gpu_sysfs/Kbuild:29: **** Make sure target file is defined. Check the TARGET and GPU configs in Makefile and Kernel Config. Module won't work without target file. ****
scripts/Makefile.clean:17: /home/vip7009pro/Kernel2/drivers/media/isdbt/fc8150/Makefile: No such file or directory
make[4]: *** No rule to make target `/home/vip7009pro/Kernel2/drivers/media/isdbt/fc8150/Makefile'. Stop.
make[3]: *** [drivers/media/isdbt/fc8150] Error 2
make[2]: *** [drivers/media/isdbt] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [_clean_drivers] Error 2
_________________________________________

Related

[Q] Who could help me for compiling the kernel?

I build the ROM from source , but to automatically compile the kernel is always wrong.
/home/work/cm10.1/kernel/samsung/exynos5410/include/linux/kconfig.h:46:1: fatal error: drivers/gud//build_tag.h: No such file or directory
compilation terminated.
make[4]: *** [drivers/gud/MobiCoreDriver/logging.o] error 1
make[3]: *** [drivers/gud] error 2
make[2]: *** [drivers] error 2
make[1]: *** [sub-make] error 2
make: *** [TARGET_KERNEL_BINARIES] error 2
Who could help me ?
smallcsduck said:
I build the ROM from source , but to automatically compile the kernel is always wrong.
/home/work/cm10.1/kernel/samsung/exynos5410/include/linux/kconfig.h:46:1: fatal error: drivers/gud//build_tag.h: No such file or directory
compilation terminated.
make[4]: *** [drivers/gud/MobiCoreDriver/logging.o] error 1
make[3]: *** [drivers/gud] error 2
make[2]: *** [drivers] error 2
make[1]: *** [sub-make] error 2
make: *** [TARGET_KERNEL_BINARIES] error 2
Who could help me ?
Click to expand...
Click to collapse
It looks like you don't follow the kernel building process. Have a look at Sony's guide for building android kernels.
developer.sonymobile.com/knowledge-base/open-source/open-devices/how-to-build-and-flash-a-linux-kernel/how-to-build-and-flash-a-linux-kernel-for-aosp-supported-devices

[Q] [Compiling PA] Troubleshooting

Hello everyone,
I´m trying compile form PA4+ repos. I follow the step in this guide (http://forum.xda-developers.com/moto-g/development/4-4-4-nightlies-paranoid-4-4-motorola-t2792041)
But no matter what I do always get the following error:
Code:
host Executable: clang (/home/levis/paranoid/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang)
CC drivers/cpufreq/cpufreq_interactive.o
CC drivers/cpufreq/freq_table.o
../../../../../../kernel/motorola/msm8226/drivers/cpufreq/cpufreq_interactive.c: In function 'show_target_loads':
../../../../../../kernel/motorola/msm8226/drivers/cpufreq/cpufreq_interactive.c:813:6: warning: operation on 'ret' may be undefined [-Wsequence-point]
error, forbidden warning: cpufreq_interactive.c:813
make[4]: *** [drivers/cpufreq/cpufreq_interactive.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [drivers/cpufreq] Error 2
make[2]: *** [drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/levis/paranoid/kernel/motorola/msm8226'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
Total time elapsed: 32 minutes (1937.343507123 seconds)
file does not exist or wrong directory located
Please Could you point me in the right direction.
- Solution 1
Delete the all folder (Yeah .. that's a shame ..) and resync again.
- Solution 2
Check if all the depency software is correctly installed.
- Solution 3
Use a prebuilt kernel
Code:
cd /yourpathtothesources/kernel/motorola/msm8226
make -j4 O=out
cp -R /yourpathtothesources/kernel/motorola/msm8226/out/* /yourpathtothesources/out/target/product/falcon/obj/KERNEL_OBJ
cp /yourpathtothesources/kernel/motorola/msm8226/out/arch/arm/boot/zImage /yourpathtothesources/out/target/product/falcon/kernel
Hope that's help.
Try first solution first !
thank you very much for your quick response. I will prove what you said and will post the results
Thanks +h2o64 , Whith the Solution 1, was perfect. Now I have installed and working my own compiled version.
levis_ap said:
Thanks +h2o64 , Whith the Solution 1, was perfect. Now I have installed and working my own compiled version.
Click to expand...
Click to collapse
Congrats! There is a new Linaro build toolchain! Personally I clean my entire build directory today
Sent from my Moto G using XDA Free mobile app

[Q][KERNEL] Source build problems.

When trying to run the scripts build_kernel.sh i get an error saying that i need to clean up the directory by using "make mrproper". However when i do i get the following error.
Code:
[email protected]:~/androidsource/kernel$ make mrproper
/home/wes/androidsource/kernel/drivers/gpu/gpu_sysfs/Kbuild:29: **** Make sure target file is defined. Check the TARGET and GPU configs in Makefile and Kernel Config. Module won't work without target file. ****
scripts/Makefile.clean:17: /home/wes/androidsource/kernel/drivers/media/isdbt/fc8150/Makefile: No such file or directory
make[4]: *** No rule to make target `/home/wes/androidsource/kernel/drivers/media/isdbt/fc8150/Makefile'. Stop.
make[3]: *** [drivers/media/isdbt/fc8150] Error 2
make[2]: *** [drivers/media/isdbt] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [_clean_drivers] Error 2
What is missing? When i open the specified makefiles i do not see what is not specified as the target file. Also, drivers/media/isdbt/fc8150/makefile does not exist. Why is that? Is there something that i need to do in order to produce/unpack additional files from the whole source in order to compile the kernel for SM-N915J?
Have you ever fixed the problem? Running into the exact same error.
Thanks!

[Completed] Help with Compiling Kernel (make mrproper and make recoveryimage errors)

So! I've tried searching forever but am unable to figure out these issues. (this is for Cyanogen 12.1)
This error comes up when make mrproper is ran:
Code:
"CONFIG_TRUSTONIC_TEE_SUPPORT = "
scripts/Makefile.clean:17: /home/ellie/android/system/kernel/alps/eMAX/drivers/misc/mediatek/cam_cal/src//BRCB032GWZ_3_eeprom/Makefile: No such file or directory
make[4]: *** No rule to make target `/home/ellie/android/system/kernel/alps/eMAX/drivers/misc/mediatek/cam_cal/src//BRCB032GWZ_3_eeprom/Makefile'. Stop.
make[3]: *** [drivers/misc/mediatek/cam_cal/src//BRCB032GWZ_3_eeprom] Error 2
make[2]: *** [drivers/misc/mediatek] Error 2
make[1]: *** [drivers/misc] Error 2
make: *** [_clean_drivers] Error 2
#### make failed to build some targets (1 seconds) ####
For when it states:
Code:
`/home/ellie/android/system/kernel/alps/eMAX/drivers/misc/mediatek/cam_cal/src//BRCB032GWZ_3_eeprom/Makefile
'. There should be mt6752 inbetween the two // like so:
Code:
`/home/ellie/android/system/kernel/alps/eMAX/drivers/misc/mediatek/cam_cal/src/[B]mt6752[/B]/BRCB032GWZ_3_eeprom/Makefile'.
And when make recoveryimage is ran:
Code:
make[1]: Entering directory `/home/ellie/android/system/kernel/alps/eMAX'
GEN /home/ellie/android/system/out/target/product/eMAX/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[4]: *** [silentoldconfig] Error 1
make[3]: *** [silentoldconfig] Error 2
make[2]: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ellie/android/system/kernel/alps/eMAX'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (03:06 (mm:ss)) ####
I am super stumped on what to do. I have ran "make menuconfig" many times, but cannot get the darn system to find the file! I have specified the config in the TARGET_KERNEL_CONFIG in the boardconfig.mk and there is 1 ".config" and my file that is specified by the TARGET... So, What can I do to get this to work?
Bump? For some more clear info.. I ran make menuconfig in the Kernel dir. And there is a .config in the root. Lunch is added correctly and source build/envsetup.sh is ran before this is all started.. So. I have no idea what to do..
Sent from my UMI eMAX using Tapatalk
J.Naw said:
So! I've tried searching forever but am unable to figure out these issues. (this is for Cyanogen 12.1)
This error comes up when make mrproper is ran:
Code:
"CONFIG_TRUSTONIC_TEE_SUPPORT = "
scripts/Makefile.clean:17: /home/ellie/android/system/kernel/alps/eMAX/drivers/misc/mediatek/cam_cal/src//BRCB032GWZ_3_eeprom/Makefile: No such file or directory
make[4]: *** No rule to make target `/home/ellie/android/system/kernel/alps/eMAX/drivers/misc/mediatek/cam_cal/src//BRCB032GWZ_3_eeprom/Makefile'. Stop.
make[3]: *** [drivers/misc/mediatek/cam_cal/src//BRCB032GWZ_3_eeprom] Error 2
make[2]: *** [drivers/misc/mediatek] Error 2
make[1]: *** [drivers/misc] Error 2
make: *** [_clean_drivers] Error 2
#### make failed to build some targets (1 seconds) ####
For when it states:
Code:
`/home/ellie/android/system/kernel/alps/eMAX/drivers/misc/mediatek/cam_cal/src//BRCB032GWZ_3_eeprom/Makefile
'. There should be mt6752 inbetween the two // like so:
Code:
`/home/ellie/android/system/kernel/alps/eMAX/drivers/misc/mediatek/cam_cal/src/[B]mt6752[/B]/BRCB032GWZ_3_eeprom/Makefile'.
And when make recoveryimage is ran:
Code:
make[1]: Entering directory `/home/ellie/android/system/kernel/alps/eMAX'
GEN /home/ellie/android/system/out/target/product/eMAX/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[4]: *** [silentoldconfig] Error 1
make[3]: *** [silentoldconfig] Error 2
make[2]: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ellie/android/system/kernel/alps/eMAX'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (03:06 (mm:ss)) ####
I am super stumped on what to do. I have ran "make menuconfig" many times, but cannot get the darn system to find the file! I have specified the config in the TARGET_KERNEL_CONFIG in the boardconfig.mk and there is 1 ".config" and my file that is specified by the TARGET... So, What can I do to get this to work?
Click to expand...
Click to collapse
Hello,
Thanks for using XDA Assist.
Try posting your query in Android Q&A,Help and Troubleshooting or in one of the noob friendly Q&A thread here->[Ask Any Question][Newbie Friendly] .Experts there may be able to help you!
Good Luck
___
v7
XDA Assist

error compiling Slimmarsmallow for nexus 5

Im getting this error while compiling rom most probably in kernel,error log below
PHP:
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /home/preshot2989/slim/kernel/lge/hammerhead/kernel/timeconst.pl line 373.
/home/preshot2989/slim/kernel/lge/hammerhead/kernel/Makefile:129: recipe for target 'kernel/timeconst.h' failed
make[3]: *** [kernel/timeconst.h] Error 255
/home/preshot2989/slim/kernel/lge/hammerhead/Makefile:950: recipe for target 'kernel' failed
make[2]: *** [kernel] Error 2
make[2]: *** Waiting for unfinished jobs....
just did a few search in xda and google found few solution but stiil the same
already installed bc ,updated perl in ubuntu 16.04LTS and switch to JDK 7.
Help would be appreciated
roshan2989 said:
Im getting this error while compiling rom most probably in kernel,error log below
PHP:
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /home/preshot2989/slim/kernel/lge/hammerhead/kernel/timeconst.pl line 373.
/home/preshot2989/slim/kernel/lge/hammerhead/kernel/Makefile:129: recipe for target 'kernel/timeconst.h' failed
make[3]: *** [kernel/timeconst.h] Error 255
/home/preshot2989/slim/kernel/lge/hammerhead/Makefile:950: recipe for target 'kernel' failed
make[2]: *** [kernel] Error 2
make[2]: *** Waiting for unfinished jobs....
just did a few search in xda and google found few solution but stiil the same
already installed bc ,updated perl in ubuntu 16.04LTS and switch to JDK 7.
Help would be appreciated
Click to expand...
Click to collapse
You need to edit the Perl file like in this commit: https://gerrit.omnirom.org/#/c/12887/1/kernel/timeconst.pl

Categories

Resources