[HTC One X] lesmil:
Hi guys,

I would like to ask if somebody would advise me a working toolchain for compiling kernel for HOX (it's 4.18.401.4 crc). I tried the one that's in README in source code zip (git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6) and all toolchains from Christopher83. I am still getting erros like this:

HOSTCC scripts/basic/fixdep

HOSTCC scripts/kconfig/conf.o

SHIPPED scripts/kconfig/zconf.tab.c

SHIPPED scripts/kconfig/zconf.lex.c

SHIPPED scripts/kconfig/zconf.hash.c

HOSTCC scripts/kconfig/zconf.tab.o

HOSTLD scripts/kconfig/conf

drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group

arch/arm/configs/ap33_android_defconfig:590:warning: override: reassigning to symbol DYNAMIC_DEBUG

warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)

warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)

#

# configuration written to .config

#

/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected

scripts/kconfig/conf --silentoldconfig Kconfig

drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group

warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)

warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)

/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected

CHK include/linux/version.h

UPD include/linux/version.h

CHK include/generated/utsrelease.h

UPD include/generated/utsrelease.h

CC scripts/mod/empty.o

/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected

make[2]: *** [scripts/mod/empty.o] Error 2

make[1]: *** [scripts/mod] Error 2

make: *** [scripts] Error 2

make: *** Waiting for unfinished jobs....

make: Entering directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'

./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h

/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected

make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.

/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected

make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.

make -C /home/lesmil/android/kernel M=/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03 modules

/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected

make[1]: Entering directory `/home/lesmil/android/kernel'

WARNING: Symbol version dump /home/lesmil/android/kernel/Module.symvers

is missing; modules will have no dependencies and modversions.

CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o

/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected

make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o] Error 2

make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat] Error 2

make[2]: *** Waiting for unfinished jobs....

CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o

CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o

/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected

make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o] Error 2

make[4]: *** Waiting for unfinished jobs....

/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected

make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o] Error 2

make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx] Error 2

make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless] Error 2

make[1]: *** [_module_/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03] Error 2

make[1]: Leaving directory `/home/lesmil/android/kernel'

make: *** [modules] Error 2

make: Leaving directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'

total 0

-rwxr-xr-x 1 lesmil lesmil 4766760 May 15 11:18 /home/lesmil/android/kernel/BUILD/modules/../zImage

lesmil@lesmilVM:~/android/kernel$

Thx for any help :)