[Completed] Build CM; "fatal error: soc/qcom/lge/board_lge.h: No such file or directory" - XDA Assist

Build CM; "fatal error: soc/qcom/lge/board_lge.h: No such file or directory"
Here is the full error:
/home/android/android/system/kernel/lge/msm8916/drivers/leds/leds-qpnp.c:31:36: fatal error: soc/qcom/lge/board_lge.h: No such file or directory
#include <soc/qcom/lge/board_lge.h>
^
compilation terminated.
make[4]: *** [drivers/leds/leds-qpnp.o] Error 1
make[3]: *** [drivers/leds] Error 2
make[2]: *** [drivers] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/android/android/system/kernel/lge/msm8916'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: Leaving directory `/home/android/android/system'
I was building for the LG H631 and it had been building for a few minutes. Any suggestions?

Hi,
Thanks for using XDA Assist.
I guess it's fixed now: http://forum.xda-developers.com/android/software/cyanogenmod-12-1-h631-ms631-10j-10j-t3259281/
Thread closed.

Related

[Q] Kernel Compilinng

Try to patch network toplogy from sakindia github.
but got the following error.
In file included from include/linux/topology.h:35:0,
from include/linux/gfp.h:7,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/net/wireless/bcmdhd/include/linuxver.h:42,
from drivers/net/wireless/bcmdhd/dhd_linux.c:29:
/home/dhruvin/Kernel/3/arch/arm/include/asm/topology.h: In function 'topology_register_notifier':
/home/dhruvin/Kernel/3/arch/arm/include/asm/topology.h:41:53: error: no return statement in function returning non-void [-Werror=return-type]
/home/dhruvin/Kernel/3/arch/arm/include/asm/topology.h: In function 'topology_unregister_notifier':
/home/dhruvin/Kernel/3/arch/arm/include/asm/topology.h:42:55: error: no return statement in function returning non-void [-Werror=return-type]
cc1: all warnings being treated as errors
make[4]: *** [drivers/net/wireless/bcmdhd/dhd_linux.o] Error 1
make[3]: *** [drivers/net/wireless/bcmdhd] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
so i guess its a lack of defining topology_register_notifier.
help me.. which identifier is need to be add in which header file?

[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] Error Compiling CM11 For Xperia E! QUICK REPLY!

Hi!
All I have done is downloaded entire cm11 repo. Used Local Manifest in TamsuiCM11 repo. Cloned FXP specific Device Tree
Ran brunch nanhu.... ok
First I got error so I rename kernel defconfig to cm_nanhu_defconfig!
Ok So I fixed First Error!
Now I get This Error:
/home/ultragamerhd/cm11/kernel/sony/msm7x27a/arch/arm/mach-msm/board-msm7627a-camera.c:303:21: error: 'msm_act_main_cam_i2c_info' undeclared here (not in a function)
/home/ultragamerhd/cm11/kernel/sony/msm7x27a/arch/arm/mach-msm/board-msm7627a-camera.c:590:16: error: 'gpio_conf_ov9726' undeclared here (not in a function)
make[3]: *** [arch/arm/mach-msm/board-msm7627a-camera.o] Error 1
make[2]: *** [arch/arm/mach-msm] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ultragamerhd/cm11/kernel/sony/msm7x27a'
make: *** [TARGET_KERNEL_BINARIES] Error 2
ANY SOLUTION?
UltraGamerHD said:
Hi!
All I have done is downloaded entire cm11 repo. Used Local Manifest in TamsuiCM11 repo. Cloned FXP specific Device Tree
Ran brunch nanhu.... ok
First I got error so I rename kernel defconfig to cm_nanhu_defconfig!
Ok So I fixed First Error!
Now I get This Error:
/home/ultragamerhd/cm11/kernel/sony/msm7x27a/arch/arm/mach-msm/board-msm7627a-camera.c:303:21: error: 'msm_act_main_cam_i2c_info' undeclared here (not in a function)
/home/ultragamerhd/cm11/kernel/sony/msm7x27a/arch/arm/mach-msm/board-msm7627a-camera.c:590:16: error: 'gpio_conf_ov9726' undeclared here (not in a function)
make[3]: *** [arch/arm/mach-msm/board-msm7627a-camera.o] Error 1
make[2]: *** [arch/arm/mach-msm] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ultragamerhd/cm11/kernel/sony/msm7x27a'
make: *** [TARGET_KERNEL_BINARIES] Error 2
ANY SOLUTION?
Click to expand...
Click to collapse
ANYONE>>>>>>

Kernel compiling error

kernel compiling with GCC 4.8 google toolcahin:
Got this error during generating bcmdhd module:
CC [M] drivers/net/wireless/bcmdhd/wl_cfgp2p.o
drivers/net/wireless/bcmdhd/wl_cfgp2p.c: In function 'wl_cfgp2p_act_frm_search':
drivers/net/wireless/bcmdhd/wl_cfgp2p.c:769:31: error: array subscript is above array bounds [-Werror=array-bounds]
eparams->params.channel_list = htodchanspec(channels);
^
drivers/net/wireless/bcmdhd/wl_cfgp2p.c:769:31: error: array subscript is above array bounds [-Werror=array-bounds]
cc1: all warnings being treated as errors
make[4]: *** [drivers/net/wireless/bcmdhd/wl_cfgp2p.o] Error 1
make[3]: *** [drivers/net/wireless/bcmdhd] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
Click to expand...
Click to collapse
kernel source : Here
OS: BBQ
I removed -Werror flag too. but i got thise error :
drivers/net/wireless/bcmdhd/wl_cfgp2p.c: In function 'wl_cfgp2p_act_frm_search':
drivers/net/wireless/bcmdhd/wl_cfgp2p.c:769:31: warning: array subscript is above array bounds [-Warray-bounds]
error, forbidden warning: wl_cfgp2p.c:769
make[4]: *** [drivers/net/wireless/bcmdhd/wl_cfgp2p.o] Error 1
make[3]: *** [drivers/net/wireless/bcmdhd] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
Click to expand...
Click to collapse
Thank you.

[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

Categories

Resources