Kernel compiling error - HTC Pico (Explorer)

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.

Related

[Q] Compiling P.A.C. man rom on unsupported device ,kernel error

Hi, i'm trying to build P.a.c. man rom on unsupported device, htc desire hd.
foreword, i need to say that its my first time compiling a rom, im a noob, yes, but i want to improve.
when i try to compile from pac script, when it comes to kernel building, i get this error:
cc1: error: unrecognized command line option '-mno-unaligned-access'
/home/marco/android/kernel/htc/htc7x30-3.0/scripts/mod/empty.c:1:0: warning: switch -mcpu=cortex-a8 conflicts with -march=armv5t switch [enabled by default]
/home/marco/android/kernel/htc/htc7x30-3.0/scripts/mod/empty.c:1:0: sorry, unimplemented: Graphite loop optimizations cannot be used (-fgraphite, -fgraphite-identity, -floop-block, -floop-flatten, -floop-interchange, -floop-strip-mine, -floop-parallelize-all, and -ftree-loop-linear)
make[4]: *** [scripts/mod/empty.o] Errore 1
make[3]: *** [scripts/mod] Errore 2
make[2]: *** [scripts] Errore 2
make[1]: *** [sub-make] Errore 2
make[1]: uscita dalla directory "/home/marco/android/kernel/htc/htc7x30-3.0"
make: *** [TARGET_KERNEL_BINARIES] Errore 2
make: *** Attesa per i processi non terminati....
target StaticLib: libc_nomalloc (/home/marco/android/out/target/product/ace/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
Total time elapsed: 46 minutes (2787.207300735 seconds)
i attach a pastebin log for more information.
hope someone will help..thanks!

[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

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

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.

[Kernel building error] SamSung Galaxy S6 G920L Kernel building error.

Hi everyone, I am gonna try to build my own kernel for my S6- G920L, but there was some errors that I havent figured out. I need your help.
I use, toolchain gcc 4.8 cross compiler.
Here is the result.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[2]: *** [scripts/mod/empty.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC kernel/bounds.s
CC scripts/mod/devicetable-offsets.s
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[1]: *** [kernel/bounds.s] Error 1
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
[email protected]:~/Downloads/laptrinhnhung/Kernel$
Thank you !
wrong toolchain mate.. you need to use the 4.9 arm64-linux-android as suggested in the readme for kernel in the sources
Sabermod prebuilt
for example or any other but minimum 4.9.. if you want to use a 5.0 you'll need to make some edits to the make file..
have fun
Thank you !. I got it done !... SOLVED

Categories

Resources