yashsingh1/xdaforums huggingface dataset:
[Android] savoca:
That's not an error, you can probably boot just fine, it's a warning from your toolchain though. Is CONFIG_ARM_UNWIND enabled?
[Android] :
Yes its enabled.

If its not an error still it doesnt boot. Simply loops on kernel logo endless times.
[Android] savoca:
In that case you may want to look at your bootimg info, and a kmsg.
[Android] cybernetus:
Error on your exynos4 code I believe.

You need to take a look on this code or apply again this commits on your kernel
[Android] Sinterion:
Whenever I build, this error occurs:

In file included from kernel/printk.c:44:0:
include/linux/apanic_mmc.h: In function ‘apanic_mmc_annotate’:
include/linux/apanic_mmc.h:54:1: warning: no return statement in function returning non-void [-Wreturn-type]
error, forbidden warning: apanic_mmc.h:54
make[1]: *** [kernel/printk.o] Error 1
make: *** [kernel] Error 2

If anyone has any pointers to fix these two errors, please help!
[Android] brymaster5000:
Without seeing the code, I would guess at that line, you have a return in a function where a return is needed. For example, you may need to edit this:

int function (void);

{

return;

}

To this:

int function (void);

{

return=0;

}

Or perhaps a 1 or a NULL...search Google and browse through that code to see any similarities.

Sent from my Lunar Ecliptic One.
[Android] commencal661:
void functions don't need to return anything. and

return = 0;

is wrong. it should be

return 0;
[Android] brymaster5000:
Thanks for the clarification. I am by no means good at c. But I know enough to get me close. Thanks.

Sent from my Lunar Ecliptic One.
[Android] commencal661:
No problem. everyone was once a beginner (I still count myself as one) :)
[Android] manan001:
we can create kernel for Samsung Galaxy Grand 2 SM-G7102?
[Android] Bastaerd:
If you have a kernel source, then yes.
[Android] Playe:
My build of franco ends with this errors

CC drivers/scsi/scsi_wait_scan.mod.o
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
CC arch/arm/boot/compressed/misc.o
CC arch/arm/boot/compressed/decompress.o
LZ4 arch/arm/boot/compressed/piggy.lz4
CC arch/arm/boot/compressed/string.o
SHIPPED arch/arm/boot/compressed/lib1funcs.S
SHIPPED arch/arm/boot/compressed/ashldi3.S
AS arch/arm/boot/compressed/lib1funcs.o
/bin/sh: 1: lz4c: not found
AS arch/arm/boot/compressed/ashldi3.o
make[2]: *** [arch/arm/boot/compressed/piggy.lz4] Error 1
make[2]: *** Waiting for unfinished jobs....
LD [M] drivers/scsi/scsi_wait_scan.ko
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage-dtb] Error 2
[Android] :
Do u have lzop installed ? if not, install it

On an ubuntu or its based distro

sudo apt-get install lzop.
[Android] Playe:
Already installed... any other ideas?
[Android] savoca:
Install liblz4-tool and liblz4-dev.
[Android] iSiddharth:
tough process, i thought it way easy to edit or create :(
[Android] TheStrix:
I dont find any zImage in my arch/arm/boot/ folder...:crying:

http://pastebin.com/7rDKKTfi
[Android] thicklizard:
Because it didn't finish compiling because of your error in drivers/cpufreq/interactive.c
[Android] jahanzaib khan:
A must know!!!! Always choose a 64bit OS!

here is my finding....

Always choose a 64bit OS!

hi,

ah yes, i figured it out the error

read this:

So I've been building ICS before and I wanted to try my hand at an AOSP port. To get the build environment set up I tried to build AOSP for maguro.

Whenever I build and I run the lunch/make commands, I get the following error:

/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-gcc: cannot execute binary file

And it repeats itself over quite a few times. I assume this is bad My build environment is below:

Ubuntu 14.04 Lucid

GCC 4.9.1

Assist:

You're trying to build on a 32-bit machine, and Jelly Bean requires a

64-bit host (more so than ICS and Gingerbread did).

What's the output of 'uname -mpi'?

Someone:

its

i686 unknown unknown

(mine was i686 i686 i686 )

This would indicate that you're not running a 64-bit operating system

on 64-bit hardware, which is a requirement for building ICS.

x86_64 ==> 64-bit kernel

i686 ==> 32-bit kernel
[Android] roshan2989:
Hello guys..i need some help here..i just compile my first Cm11 kernel from source successfully,the problem is it wont boot(just pass samsung boot logo after that blank screen) and with working recovery.

i dont know whether the ramdisk is outdated and how to extract the ramdisk from boot.img..most of the tool i use say "android header not found".and the second problem is the module(.ko) is big in size(3.47mb) each files..how to strip the modules to small size.

help would be appreciated.. my device is s2
[Android] desalesouche:
hi all, may i request some help?.

/home/desalesouche/cm/kernel/huawei/honor/drivers/staging/android/ashmem.c: In function ‘ashmem_cache_op’:

/home/desalesouche/cm/kernel/huawei/honor/drivers/staging/android/ashmem.c:761:1: warning: label ‘done’ defined but not used [-Wunused-label]

error, forbidden warning: ashmem.c:761
[Android] Tommy-Geenexus:
Simply delete the function causing the error.
[Android] desalesouche:
please, can you point me what i should delete?

https://github.com/fonz93/android_kernel_huawai_Y300-J1/blob/master/drivers/staging/android/ashmem.c
[Android] Tommy-Geenexus:
delete 'done;' in line 761.
[Android] desalesouche:
that worked...thanks

here is a new error...

/home/desalesouche/cm/kernel/huawei/honor/drivers/video/msm/msm_fb.c: In function ‘msmfb_overlay_play’:

/home/desalesouche/cm/kernel/huawei/honor/drivers/video/msm/msm_fb.c:3176:28: warning: unused variable ‘pdata’ [-Wunused-variable]

error, forbidden warning: msm_fb.c:3176
[Android] Tommy-Geenexus:
Whenever an unused error occurs, remove the lines you see at the compiler log.

(l.3176 'pdata' in this case)
[Android] desalesouche:
ok, thanks to you , i begin to understand the logic... :)
[Android] bejo-za:
error compile kernel mac80211 cyanogenmod

Hey, i want to ask, i have galaxy note n7000 and try to compile kernel with add mac80211 and usb wifi atheros and ralink chipset. I try cyanogen 10.1, 10.2, 11 with no luck ( error compile mac80211). But it works on kernel source samsung stock n7000. What are other kernel source support to add mac80211 for n7000? Thanks, sorry for my english

CC [M] net/mac80211/mlme.o

net/mac80211/mlme.c: In function 'ieee80211_mgd_auth':

net/mac80211/mlme.c:2317: error: 'struct cfg80211_auth_request' has no member named 'local_state_change'

net/mac80211/mlme.c: In function 'ieee80211_assoc_done':

net/mac80211/mlme.c:2419: warning: passing argument 2 of 'cfg80211_send_rx_assoc' from incompatible pointer type

include/net/cfg80211.h:2802: note: expected 'struct cfg80211_bss *' but argument is of type 'unsigned char *'

net/mac80211/mlme.c:2419: warning: passing argument 3 of 'cfg80211_send_rx_assoc' makes pointer from integer without a cast

include/net/cfg80211.h:2802: note: expected 'const u8 *' but argument is of type 'unsigned int'

net/mac80211/mlme.c:2419: error: too few arguments to function 'cfg80211_send_rx_assoc'

net/mac80211/mlme.c: In function 'ieee80211_mgd_deauth':

net/mac80211/mlme.c:2560: error: 'struct cfg80211_deauth_request' has no member named 'bss'

net/mac80211/mlme.c:2561: error: 'struct cfg80211_deauth_request' has no member named 'bss'

net/mac80211/mlme.c:2581: error: 'struct cfg80211_deauth_request' has no member named 'bss'

net/mac80211/mlme.c:2600: error: implicit declaration of function '__cfg80211_auth_canceled'

net/mac80211/mlme.c:2610: error: 'struct cfg80211_deauth_request' has no member named 'local_state_change'

make[2]: *** [net/mac80211/mlme.o] Error 1

make[1]: *** [net/mac80211] Error 2

make: *** [net] Error 2
[Android] desalesouche:
hi , i am trying to compile my kernel with kernel_mode_neon enabled...

i got one error, any help please?

/home/desalesouche/cm/kernel/huawei/honor/arch/arm/vfp/vfpmodule.c: In function ‘kernel_neon_begin’:

/home/desalesouche/cm/kernel/huawei/honor/arch/arm/vfp/vfpmodule.c:616:2: error: implicit declaration of function ‘in_interrupt’ [-Werror=implicit-function-declaration]

BUG_ON(in_interrupt());

^

cc1: some warnings being treated as errors

thank you.
[Android] brymaster5000:
Search this thread and perhaps Google for implicit declaration. There are a bunch of posts previous to this one which should lead you in the right direction.

Sent from my One.
[Android] KuroKeita:
today, i tried to build kernel for my htc j one, but then i get this problem

kurokeita@KuroKeita:/mnt/B03648D0364898EC/kernel/m7wlj$ export ARCH=arm
kurokeita@KuroKeita:/mnt/B03648D0364898EC/kernel/m7wlj$ export CROSS_COMPILE=/mnt/B03648D0364898EC/arm-eabi-4.7/bin/arm-eabi-
kurokeita@KuroKeita:/mnt/B03648D0364898EC/kernel/m7wlj$ make m7wlj_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
kernel/Kconfig.locks:210:warning: multi-line strings not supported
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
#
# configuration written to .config
#
kurokeita@KuroKeita:/mnt/B03648D0364898EC/kernel/m7wlj$ make clean
ls: cannot access /mnt/B03648D0364898EC/kernel/m7wlj/drivers/gud/mobicore_driver/platforms: No such file or directory
/mnt/B03648D0364898EC/kernel/m7wlj/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/mnt/B03648D0364898EC/kernel/m7wlj/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
/mnt/B03648D0364898EC/kernel/m7wlj/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/mnt/B03648D0364898EC/kernel/m7wlj/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found

can anyone help me

P/S: i'm sure that the path is correct
[Android] brymaster5000:
You need a SUBARCH=arm as well.

Sent from my One.
[Android] KuroKeita:
yes, thank you so much ^^
[Android] SnZ:
Hi,

I'm trying to compile btusb module for Nexus 5.

I ran into some problems:

In file included from include/linux/module.h:17:0,
from drivers/bluetooth/btusb.c:25:
drivers/bluetooth/btusb.c: In function ‘__check_ignore_dga’:
include/linux/moduleparam.h:339:45: warning: return from incompatible pointer type
error, forbidden warning: moduleparam.h:339
make[2]: *** [drivers/bluetooth/btusb.o] Error 1
make[1]: *** [drivers/bluetooth] Error 2
make: *** [drivers] Error 2

any ideas how to fix it?
[Android] brymaster5000:
Check each of those error output lines and make sure the functions all match.

Sent from my Lunar Ecliptic One.
[Android] yashartha:
Error Help!!

Hey guys i have been trying to make a custom kernel for my phone Samsung Galaxy Chat Gt-B5330 Using Fedora 20 and Ndk 10, but i have been facing some issue with a driver error.The problem is that after running the make command it starts to build but stops at a point showing some driver error. Please help me as i have tried every possible way in my reach to tackle the problem.

Here's my complete terminal window output.

http://pastebin.com/F3Yyz4fm

Any help will be appriciated. Thanks.
[Android] akshay-shah:
can ny1 help me wid below error..m tryin to build for crater device
[Android] partyzant_x:
Any help?

CC drivers/leds/leds-qpnp.o
drivers/leds/leds-qpnp.c: In function 'qpnp_wled_init':
drivers/leds/leds-qpnp.c:1641:2: error: implicit declaration of function 'WLED1_LED1_CABC_EN' [-Werror=implicit-function-declaration]
drivers/leds/leds-qpnp.c:1642:4: error: 'WLED_CABC_EN_MASK' undeclared (first use in this function)
drivers/leds/leds-qpnp.c:1642:4: note: each undeclared identifier is reported only once for each function it appears in
drivers/leds/leds-qpnp.c:1642:22: error: 'WLED_CABC_EN_ON' undeclared (first use in this function)
cc1: some warnings being treated as errors
make[2]: *** [drivers/leds/leds-qpnp.o] Błąd 1
make[1]: *** [drivers/leds] Błąd 2
make: *** [drivers] Błąd 2
radek@radek-K53SJ:/media/radek/bee9f4ae-71a6-4ed8-9153-7dd674ea803d/CM11/kernel/lge/d620$
[Android] Infidel01:
I feel like you are missing one of the following, ncurses probably....

build-essential libncurses5 zlib1g gawk flex

I may have no idea what I am talking about....
[Android] lozohcum:
I was missing only libncurses5
[Android] satxtreme:
Maybe somebody knows how to compile kernel for GT-I9192 (s4 mini duos).... ps thanks
[Android] desalesouche:
porting kernel 3.4...

hi all.

if someone have a solution/explanation to fix?

home/desalesouche/cm2/kernel/huawei/honor/arch/arm/mach-msm/rpc_server_handset.c:111:12: warning: ‘get_current_machine’ defined but not used [-Wunused-function]

error, forbidden warning: rpc_server_handset.c:111

/home/desalesouche/cm2/kernel/huawei/honor/scripts/Makefile.build:307: recipe for target 'arch/arm/mach-msm/rpc_server_handset.o' failed

make[3]: *** [arch/arm/mach-msm/rpc_server_handset.o] Error 1

kernel source: https://github.com/desteam/huawei-kernel-3.4

thanks.
[Android] pec0ra:
The fastest solution is to search this thread or Google, you would have gained 3 hours !
[Android] desalesouche:
i already found the solution... not with google but with my brain...

thank you for your so precious help and usefull post.
[Android] LordGex:
Thanks for that guide!
[Android] desalesouche:
may i request some help also that error?

/home/desalesouche/cm2/kernel/huawei/honor/drivers/power/huawei_battery.c:478:12: warning: ‘msm_batt_get_level_ret_func’ defined but not used [-Wunused-function]

error, forbidden warning: huawei_battery.c:478

/home/desalesouche/cm2/kernel/huawei/honor/scripts/Makefile.build:307: recipe for target 'drivers/power/huawei_battery.o' failed

make[4]: *** [drivers/power/huawei_battery.o] Error 1

/home/desalesouche/cm2/kernel/huawei/honor/scripts/Makefile.build:443: recipe for target 'drivers/power' failed

kernel source :https://github.com/desteam/34WIPKernel
[Android] pec0ra:
It's the same as the other one. The function at line 478 is defined but not used. Deleting it should fix it. You already asked many times about this kind of error, you should read some info on the "defined but not used c error" so that you won't have any more problem with it ;)
[Android] cah dudul:
please help...
[Android] ice.modding:
You're root?

ice [N]ation
[Android] cah dudul:
yes,,im ROOT..sir

root@rezchildz:/home/ir1apriyanto/android/kernel/akh8960_cm-cm-11.0-pyramid# make -j2
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CC scripts/mod/empty.o
/home/ir1apriyanto/android/android_toolchains/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1/bin/arm-cortex_a15-linux-gnueabihf-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem /home/ir1apriyanto/android/android_toolchains/arm-cortex_a15-linux-gnueabihf-linaro_4.9.1/bin/arm-cortex_a15-linux-gnueabihf-gcc -print-file-name=include [Errno 13] Permission denied -I/home/ir1apriyanto/android/kernel/akh8960_cm-cm-11.0-pyramid/arch/arm/include -Iarch/arm/include/generated -Iinclude -include /home/ir1apriyanto/android/kernel/akh8960_cm-cm-11.0-pyramid/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(empty) -DKBUILD_MODNAME=KBUILD_STR(empty) -c -o scripts/mod/empty.o scripts/mod/empty.c [Errno 13] Permission denied
make[2]: *** [scripts/mod/empty.o] Error 13
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
[Android] uchithisanka:
i build 2 zImgae files but none of that files are working.i compiled it without any errors.i change toolchains also.but i dont know whats happened.i repack zimage with working stock boot.img's ramdisk.but not working.please help me some one please
[Android] pec0ra:
Are you compiling with linaro 4.8 or greater? If this is the case you have to edit the memset for your kernel to work. I don't have time now to show you the changes but if you can't find it pm me and I'll tell you later.

Apparently you don't have enough permission on some of the files.

This is strange if you did it as root (which is not recommended by the way) a good idea would be to use

sudo chown -R user_name:user_name /path/to/kernel

To avoid using root. Then if you still have permissions problem try :

sudo chmod 0755 -R /path/to/kernel

You can also try 0777 instead of 0755.

If you want to know more about these commands take a look on Google.
[Android] uchithisanka:
thanks for helping me.i bootup my kernel successfully after changing the base number.thanks again.

nice thread devs.today i learn how to build a kernel.thanks every one

but i got some problems.how to add a name to a kernel.in my kernel that only show uchi@ubuntu only.i know we can add more lines to that.if anyone know please tell me
[Android] cah dudul:
•thx,sir...i will try again...
[Android] brymaster5000:
That will be in your defconfig file under local_version.

Sent from my Lunar Ecliptic One.
[Android] hell_lock:
There are 2 ways for doing that..

1.Edit the .config file for your kernel. There will be something like localversion, you have to change it.

2.Edit the scripts directly. I dont remember the exact file but its easy to find.
[Android] scrvy:
linux specific turorial would be incredible.

I for one would love to see a Linux specific tutorial. This site doesn't mention, cater to, or promote Linux nearly enough in my stupid opinion.
[Android] cruizz:
greeting :)

anyone can tell me how to find config.gz on xperia Z (yuga) on 4.4.4 firmware(stock kernel), i've try to compile as the readme of kernel (build) instruction ... but i got lot of error ... thanks before

#forgive me for bad english :)
[Android] brymaster5000:
If adb pull /proc/config.gz does not give you the file, then the setting is probably off and it doesn't exist. There is a config in the defconfig file: ikconfig_proc needs to be set =y in order to have the config.gz output.

My suggestion to you would be to look through the source for "device"_defconfig. Replace device with what your device is called, like HTC One is m7_defconfig.

Sent from my Lunar Ecliptic One.
[Android] cruizz:
thanks for reply ... yes it seems that stock kernel not set for the ikcoonfig, so i can't get any config.gz in /proc . i try use another config of other kernel then it can build because the official source just only provide a basic config and need more mod.. but now am facing problem with recovery... i can't get my device boot into cwm/recovery when i pressing vol down/up, the ramdisk n the other things is correct... or i miss some config on my defconfig? :confused:
[Android] quangduong109:
Thanks for your sharing, I'm newbie and I am learning how to custom kernel. Your post is great for my practise ^_^ :victory:
[Android] lss1977:
nice guide, managed to build my first test kernel; with a few tweaks, thanks
[Android] c1scolici:
great tut, thanks for sharing.. i hope i don't screw my phone :D
[Android] Hukanawa:
Little help please..

Hi guys :)

Im stuck in Step 5 Part B-->a I have followed the tutorial exactly. I cannot pull the kernel from the phone, however, the source files included the config file(riogrande_lotus_defconfig) which was already in the configs folder(/home/tman/android/kernel/sony_kernel/arch/arm) when I type in make riogrande_lotus defconfig I get the following error(added a few lines prior to "make riogrande_lotus_defconfig" if that helps :)):

tman@Beast:~/android/kernel/sony_kernel$ export ARCH=arm

tman@Beast:~/android/kernel/sony_kernel$ export CROSS_COMPILE=/home/tman/android/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-

tman@Beast:~/android/kernel/sony_kernel$ make riogrande_lotus_defconfig

HOSTCC scripts/basic/fixdep

HOSTCC scripts/kconfig/conf.o

SHIPPED scripts/kconfig/zconf.tab.c

SHIPPED scripts/kconfig/lex.zconf.c

SHIPPED scripts/kconfig/zconf.hash.c

HOSTCC scripts/kconfig/zconf.tab.o

HOSTLD scripts/kconfig/conf

drivers/input/misc/Kconfig:646:warning: type of 'INPUT_LPS331AP' redefined from 'tristate' to 'boolean'

arch/arm/configs/riogrande_lotus_defconfig:65:warning: override: reassigning to symbol CPU_FREQ_GOV_POWERSAVE

warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))

warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)

warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))

warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)

#

# configuration written to .config

#

I have tried the SUBARCH=arm method as mentioned before, but I get the same result nonetheless.. And I double checked whether all the mentioned libs are installed, and all of them are.. I don't know what I'm doing :/ Could someone please help me or point me in the right direction :D
[Android] brymaster5000:
Look up the tristate versus Boolean warning. That's where you need to start.

Sent from my Lunar Ecliptic One.
[Android] Hukanawa:
hey :) I tried experimenting a few times and I was about the get a zImage after compiling :s but I still get those errors.. Is this normal? Or is it safe to flash the kernel that I have compiled??
[Android] thewadegeek:
Did you do some research like [MENTION=4428185]brymaster5000[/MENTION] recommended? You have three warnings there in your config that need to be resolved. I suggest doing some research into how config files work, it will help you immensely when you begin to make modifications.
[Android] henry0504:
detailed and good tutorial!!
[Android] Lordomn:
what's it mean if the kernel compiled without errors but there is no zImage? any help would be greatly appreciated.

EDIT: I figured out the issue. unfinished jobs. got it fixed zimage now shows. apparently the unfinished jobs were stopping it from completely finishing. good tutorial.
[Android] Lordomn:
[MENTION=3830475]thewadegeek[/MENTION] I am having an issue getting the find .ko modules command to work... this is the command i am entering

find .-name "*.ko" -exec cp {} android/kernel/motorola/msm8960dt-common/kernel_output\;

i keep getting this error : find: missing argument to `-exec'

any help would be appreciated.
[Android] Samgarr:
imselfpy and

Thanks for nice tutorial. I am trying compile cifs.ko module for my Lenovo Yoga 2 830L tablet (intel atom inside, x86_64) and getting this error:

[sam@wrk kernel]$ export ARCH=x86
[sam@wrk kernel]$ export SUBARCH=x86
[sam@wrk kernel]$ make modules
/home/sam/Downloads/osc_4_blade2_kk_13_result/linux/kernel/scripts/gcc-version.sh: line 25: /opt/android-ndk/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gccgcc: No such file or directory
/home/sam/Downloads/osc_4_blade2_kk_13_result/linux/kernel/scripts/gcc-version.sh: line 26: /opt/android-ndk/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gccgcc: No such file or directory
make: /opt/android-ndk/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gccgcc: Command not found
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'relocs'.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
/bin/sh: /opt/android-ndk/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gccgcc: No such file or directory
/home/sam/Downloads/osc_4_blade2_kk_13_result/linux/kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:838: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2

[sam@wrk kernel]$ ls -la /opt/android-ndk/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc
-rwxr-xr-x 1 root root 796792 Sep 8 19:43 /opt/android-ndk/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc

Any help would be appreciated, thanks!