Correct toolchain for compiling kernel - HTC One X

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
[email protected]:~/android/kernel$
Thx for any help

lesmil said:
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
[email protected]:~/android/kernel$
Thx for any help
Click to expand...
Click to collapse
edit: should modify MAKEFILE i guess, gonna try this ^^
edit2: damn, didn't want to reply to myself....

Related

Building Kernel Error | Please Help | Dev.ChaosFirZen

I Get This Problem Please Help Me...
[email protected]:~/kernel$ ARCH=arm CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi make
make: /opt/arm-2011.09/bin/arm-none-eabigcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: /opt/arm-2011.09/bin/arm-none-eabigcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
i think u missing some libraries. u on 64 bit ? maybe u need install 32 libraries
what kind of linux u have?
ChaosFirZen said:
[email protected]:~/kernel$ ARCH=arm CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi make
Click to expand...
Click to collapse
You forgot about export:
Code:
export ARCH=arm
export CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi
and double check if CROSS_COMPILE should be arm-none-eabi or arm-none-eabi- (with a minus at the end)
denisl78 said:
i think u missing some libraries. u on 64 bit ? maybe u need install 32 libraries
what kind of linux u have?
Click to expand...
Click to collapse
Im on 32bit ubuntu..
Sent from my LT18i using XDA App
This What Shows and it doesnt reponse at
export ARCH=arm
export CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi
Click to expand...
Click to collapse
[email protected]:~$ cd kernel
[email protected]:~/kernel$ export ARCH=arm
[email protected]:~/kernel$ export CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi
[email protected]:~/kernel$ setprop persist.world.domination 1
setprop: command not found
[email protected]:~/kernel$ ARCH=arm CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi- make
make: /opt/arm-2011.09/bin/arm-none-eabi-gcc: Command not found
scripts/kconfig/conf -s arch/arm/Kconfig
make: /opt/arm-2011.09/bin/arm-none-eabi-gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: /opt/arm-2011.09/bin/arm-none-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
[email protected]:~/kernel$ export ARCH=arm CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi make
[email protected]:~/kernel$ export ARCH=arm CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi- make
[email protected]:~/kernel$ cd
[email protected]:~$ cd
[email protected]:~$ cd
[email protected]:~$ cd
[email protected]:~$ cd
[email protected]:~$ cd
[email protected]:~$ cd
[email protected]:~$ cd kernel
[email protected]:~/kernel$ export ARCH=arm
[email protected]:~/kernel$ export CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi make
[email protected]:~/kernel$ export CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi- make
[email protected]:~/kernel$ export arm-none-eabi=/opt/arm-2011.09/bin/arm-none-eabi- make
bash: export: `arm-none-eabi=/opt/arm-2011.09/bin/arm-none-eabi-': not a valid identifier
[email protected]:~/kernel$
what u get with :
Code:
file /opt/arm-2011.09/bin/arm-none-eabi-gcc
?
do u installed all build packages ?
i not fluent with deb distributions (more rpm), but maybe
Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool
may help
and
Code:
export ARCH=arm
export CROSS_COMPILE=/opt/arm-2011.09/bin/arm-none-eabi
export KERNEL_DIR=/full/path/to/kernel
make
ChaosFirZen said:
[email protected]:~/kernel$ setprop persist.world.domination 1
setprop: command not found
Click to expand...
Click to collapse
OMGLOL, it's my signature (setprop is android specific)
Anyway, if any packages would be missing make would whine about them first. Just to be sure check official docs
As for exports- I use envsetup.sh-s like this one:
Code:
export ARCH=arm
export CC=arm-spica-linux-uclibcgnueabi-gcc
export CXX=arm-spica-linux-uclibcgnueabi-gcc
export CROSS_COMPILE=arm-spica-linux-uclibcgnueabi-
export PATH=$PATH:${HOME}/x-tools/bin:${HOME}/x-tools/arm-spica-linux-uclibcgnueabi/bin
(this one is for crosstools-ng, you have to adjust names and paths for your environment)
usage:
Code:
. ./envsetup.sh
Please give Me The Full View Of The Script On Your terminal ..
ChaosFirZen said:
Please give Me The Full View Of The Script On Your terminal ..
Click to expand...
Click to collapse
What do you mean by 'full view'?
Command
Code:
. ./envsetup.sh
does not produse any visible output, script just sets variables
tapatalked from Desire
Error During Cross compile
Sir after giving the bellow cmd
make ARCH=arm CROSS_COMPILE=/home/digvijay/Desktop/5-4-12/toolchain/arm-2011.03/bin/arm-none-linux-gnueabi-
I am getting folloeing error
#
# configuration written to .config
#
include/config/auto.conf:15:warning: symbol value 'arch/x86/configs/x86_64_defconfig' invalid for ARCH_DEFCONFIG
include/config/auto.conf:106:warning: symbol value 'elf64-x86-64' invalid for OUTPUT_FORMAT
make: execvp: /home/digvijay/Desktop/5-4-12/toolchain/arm-2011.03/bin/arm-none-linux-gnueabi-gcc: Permission denied
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
/bin/sh: /home/digvijay/Desktop/5-4-12/toolchain/arm-2011.03/bin/arm-none-linux-gnueabi-gcc: Permission denied
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
Please help me out.. pleas its urgent. ASAP
It seems that you don't have ARM config, make still tries to build x86.
Do exports and 'make menuconfig' first to check if config is correct
tapatalked from Xperia Arc S
Hey all, i get the same error
I close the terminal and re-open it and i get rid of this but now i've foud another error
>ARCH=arm CROSS_COMPILER=$CCOMPILER make
scripts/kconfig/conf -s arch/arm/Kconfig
arch/arm/mach-msm/Kconfig:1509:warning: multi-line strings not supported
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
cc1: erreur: unrecognized command line option ‘-mlittle-endian’
cc1: erreur: unrecognized command line option ‘-mno-thumb-interwork’
kernel/bounds.c:1:0: erreur: unknown ABI (aapcs-linux) for -mabi= switch
kernel/bounds.c:1:0: erreur: bad value (armv5t) for -march= switch
make[1]: *** [kernel/bounds.s] Erreur 1
make: *** [prepare0] Erreur 2
cc1: erreur: unrecognized command line option ‘-mlittle-endian’
cc1: erreur: unrecognized command line option ‘-mno-thumb-interwork’
Can someone help me ?
arc_u said:
Hey all, i get the same error
I close the terminal and re-open it and i get rid of this but now i've foud another error
>ARCH=arm CROSS_COMPILER=$CCOMPILER make
Click to expand...
Click to collapse
IIRC it should be: make ARCH=arm [...] (make first, then arguments)
arc_u said:
scripts/kconfig/conf -s arch/arm/Kconfig
arch/arm/mach-msm/Kconfig:1509:warning: multi-line strings not supported
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
cc1: erreur: unrecognized command line option ‘-mlittle-endian’
cc1: erreur: unrecognized command line option ‘-mno-thumb-interwork’
kernel/bounds.c:1:0: erreur: unknown ABI (aapcs-linux) for -mabi= switch
kernel/bounds.c:1:0: erreur: bad value (armv5t) for -march= switch
make[1]: *** [kernel/bounds.s] Erreur 1
make: *** [prepare0] Erreur 2
Click to expand...
Click to collapse
You have errors in kernel config
-kernel is NOT compiled for arm
-cpu is armv7, not armv5t
Do exports and
Code:
make menuconfig
before you try to compile
>make menuconfig
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Erreur 1
make: *** [menuconfig] Erreur 2
EDIT: installed the libncurses5-dev and it seems to work now, i've to configure now
But what config i've to do
ARCH=arm CROSS_COMPILE=/opt/arm-2010q1/bin/arm-none-eabi- make semc_anzu_defconfig
or
make menuconfig (and what i have to do exactly in menuconfig?)
arc_u said:
EDIT: installed the libncurses5-dev and it seems to work now, i've to configure now
But what config i've to do
ARCH=arm CROSS_COMPILE=/opt/arm-2010q1/bin/arm-none-eabi- make semc_anzu_defconfig
or
make menuconfig (and what i have to do exactly in menuconfig?)
Click to expand...
Click to collapse
1. Do required exports
2. make semc_anzu_defconfig (this will create kernel config required for make- copy of semc_anzu_defconfig)
3. If you want to make any changes (drivers/options/modules/whatever) in config- make menuconfig
4. make
A lot of thanks for your help
I do the following export
export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-
then
make semc_anzu_defconfig
make
make
CHK include/linux/version.h
make[1]: « include/asm-arm/mach-types.h » est à jour.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562:12: attention : ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982:10: attention : ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112:9: attention : ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
In file included from include/linux/mempolicy.h:62:0,
from init/main.c:52:
include/linux/pagemap.h: In function ‘fault_in_pages_readable’:
include/linux/pagemap.h:415:16: erreur: variable ‘c’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [init/main.o] Erreur 1
make: *** [init] Erreur 2
very disappointed
arc_u said:
very disappointed
Click to expand...
Click to collapse
This needs to be added in Makefile :
Code:
# This warning generated too much noise in a regular build.
KBUILD_CFLAGS += $(call cc-option, -Wno-unused-but-set-variable)
By default the toolchain stops compiling on all errors.

Why this error happens?{Kernel building}

Device Drivers->USB support->USB Gadget Support->USB Gadget Drivers->Serial Gadget (with CDC ACM and CDC OBEX support) gives error
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
CHK include/generated/compile.h
CC drivers/usb/usb-common.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:90:14: error: 'GSERIAL_NO_PORTS' undeclared here (not in a function)
drivers/usb/gadget/f_acm.c:90:3: warning: 'gacm_ports' defined but not used [-Wunused-variable]
drivers/usb/gadget/f_acm.c:102:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:989:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
make[3]: *** [drivers/usb/gadget/serial.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
after adding
Code:
#define GSERIAL_NO_PORTS 3
to drivers/usb/gadget/f_acm.c gives this errors:
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:104:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:991:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
LD drivers/usb/gadget/g_serial.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `gport_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:393: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:396: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:399: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:400: undefined reference to `ghsic_data_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:403: undefined reference to `ghsuart_data_disconnect'
drivers/built-in.o: In function `gport_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:341: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:344: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:347: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:353: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:357: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:362: undefined reference to `ghsuart_data_connect'
drivers/built-in.o: In function `acm_port_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:204: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:207: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:210: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:211: undefined reference to `ghsic_data_disconnect'
drivers/built-in.o: In function `acm_port_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:160: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:163: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:166: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:172: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:176: undefined reference to `ghsic_ctrl_disconnect'
make: *** [.tmp_vmlinux1] Error 1
Please help)
and source https://github.com/CyanogenMod/android_kernel_sony_apq8064/tree/cm-11.0/drivers/usb/gadget
suleymanovemil8 said:
Device Drivers->USB support->USB Gadget Support->USB Gadget Drivers->Serial Gadget (with CDC ACM and CDC OBEX support) gives error
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
CHK include/generated/compile.h
CC drivers/usb/usb-common.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:90:14: error: 'GSERIAL_NO_PORTS' undeclared here (not in a function)
drivers/usb/gadget/f_acm.c:90:3: warning: 'gacm_ports' defined but not used [-Wunused-variable]
drivers/usb/gadget/f_acm.c:102:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:989:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
make[3]: *** [drivers/usb/gadget/serial.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
after adding
Code:
#define GSERIAL_NO_PORTS 3
to drivers/usb/gadget/f_acm.c gives this errors:
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:104:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:991:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
LD drivers/usb/gadget/g_serial.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `gport_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:393: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:396: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:399: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:400: undefined reference to `ghsic_data_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:403: undefined reference to `ghsuart_data_disconnect'
drivers/built-in.o: In function `gport_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:341: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:344: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:347: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:353: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:357: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:362: undefined reference to `ghsuart_data_connect'
drivers/built-in.o: In function `acm_port_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:204: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:207: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:210: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:211: undefined reference to `ghsic_data_disconnect'
drivers/built-in.o: In function `acm_port_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:160: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:163: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:166: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:172: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:176: undefined reference to `ghsic_ctrl_disconnect'
make: *** [.tmp_vmlinux1] Error 1
Please help)
and source https://github.com/CyanogenMod/android_kernel_sony_apq8064/tree/cm-11.0/drivers/usb/gadget
Click to expand...
Click to collapse
I am having this problem too where you able to solve it?
borillion_star said:
I am having this problem too where you able to solve it?
Click to expand...
Click to collapse
it is still unsolved
suleymanovemil8 said:
Device Drivers->USB support->USB Gadget Support->USB Gadget Drivers->Serial Gadget (with CDC ACM and CDC OBEX support) gives error
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
CHK include/generated/compile.h
CC drivers/usb/usb-common.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:90:14: error: 'GSERIAL_NO_PORTS' undeclared here (not in a function)
drivers/usb/gadget/f_acm.c:90:3: warning: 'gacm_ports' defined but not used [-Wunused-variable]
drivers/usb/gadget/f_acm.c:102:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:989:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
make[3]: *** [drivers/usb/gadget/serial.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
after adding
Code:
#define GSERIAL_NO_PORTS 3
to drivers/usb/gadget/f_acm.c gives this errors:
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:104:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:991:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
LD drivers/usb/gadget/g_serial.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `gport_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:393: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:396: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:399: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:400: undefined reference to `ghsic_data_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:403: undefined reference to `ghsuart_data_disconnect'
drivers/built-in.o: In function `gport_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:341: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:344: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:347: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:353: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:357: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:362: undefined reference to `ghsuart_data_connect'
drivers/built-in.o: In function `acm_port_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:204: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:207: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:210: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:211: undefined reference to `ghsic_data_disconnect'
drivers/built-in.o: In function `acm_port_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:160: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:163: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:166: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:172: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:176: undefined reference to `ghsic_ctrl_disconnect'
make: *** [.tmp_vmlinux1] Error 1
Please help)
and source https://github.com/CyanogenMod/android_kernel_sony_apq8064/tree/cm-11.0/drivers/usb/gadget
Click to expand...
Click to collapse
You solve it ?

Compile stock Lolipop kernel

I've downloaded stock kernel source from this website, the problem is that I get this error when compiling:
Code:
[email protected]:~/kernel$ make
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/leds/leds-qpnp.o
drivers/leds/leds-qpnp.c: In function ‘qpnp_led_set’:
drivers/leds/leds-qpnp.c:2213:14: error: ‘led_sequence_lock’ undeclared (first use in this function)
mutex_lock(&led_sequence_lock); /* RGB LED synchronize in kddi */
^
drivers/leds/leds-qpnp.c:2213:14: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:307: recipe for target 'drivers/leds/leds-qpnp.o' failed
make[2]: *** [drivers/leds/leds-qpnp.o] Error 1
scripts/Makefile.build:443: recipe for target 'drivers/leds' failed
make[1]: *** [drivers/leds] Error 2
Makefile:951: recipe for target 'drivers' failed
make: *** [drivers] Error 2
[email protected]:~/kernel$
I didn't modify anything, I am using arm-linux-gnueabi-linaro_4.8.4-2014.11 toolchain, thanks
I managed to get it to compile, there are some files that need to be fixed first in order to get it working :good:

Compile lineage kernel problems

Code:
[email protected] ~ $ '/home/stefanstgs/Desktop/android_kernel_htc_msm8974/kk'
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
arch/arm/configs/m8_defconfig:413:warning: symbol value 'y' invalid for MSM_KGSL_DEFAULT_GPU_HUNG_NO_PANIC
arch/arm/configs/m8_defconfig:557:warning: override: reassigning to symbol EXT4_FS_SECURITY
arch/arm/configs/m8_defconfig:687:warning: override: reassigning to symbol AUDIT
arch/arm/configs/m8_defconfig:688:warning: override: reassigning to symbol SECURITY
arch/arm/configs/m8_defconfig:689:warning: override: reassigning to symbol LSM_MMAP_MIN_ADDR
arch/arm/configs/m8_defconfig:690:warning: override: reassigning to symbol SECURITY_NETWORK
arch/arm/configs/m8_defconfig:691:warning: override: reassigning to symbol SECURITY_SELINUX
arch/arm/configs/m8_defconfig:694:warning: override: reassigning to symbol NF_CONNTRACK_SECMARK
arch/arm/configs/m8_defconfig:695:warning: override: reassigning to symbol NETFILTER_XT_TARGET_CONNSECMARK
arch/arm/configs/m8_defconfig:696:warning: override: reassigning to symbol NETFILTER_XT_TARGET_SECMARK
arch/arm/configs/m8_defconfig:697:warning: override: reassigning to symbol IP_NF_SECURITY
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
CHK include/linux/version.h
WRAP arch/arm/include/generated/asm/irq_regs.h
UPD include/linux/version.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/percpu.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/simd.h
WRAP arch/arm/include/generated/asm/sizes.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
HOSTCC scripts/dtc/checks.o
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
Generating include/generated/mach-types.h
CC kernel/bounds.s
arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
HOSTCC scripts/dtc/data.o
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 2
Makefile:992: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
SHIPPED scripts/dtc/dtc-lexer.lex.c
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/genksyms/lex.lex.o
SHIPPED scripts/dtc/dtc-parser.tab.h
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/dtc.o
CC scripts/mod/empty.o
HOSTCC scripts/dtc/flattree.o
arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/dtc/fstree.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/srcpos.o
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/util.o
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
Makefile:512: recipe for target 'scripts' failed
make: *** [scripts] Error 2
Build Failed
[email protected] ~ $ '/home/stefanstgs/Desktop/android_kernel_htc_msm8974/kk'
arch/arm/configs/m8_defconfig:413:warning: symbol value 'y' invalid for MSM_KGSL_DEFAULT_GPU_HUNG_NO_PANIC
arch/arm/configs/m8_defconfig:557:warning: override: reassigning to symbol EXT4_FS_SECURITY
arch/arm/configs/m8_defconfig:687:warning: override: reassigning to symbol AUDIT
arch/arm/configs/m8_defconfig:688:warning: override: reassigning to symbol SECURITY
arch/arm/configs/m8_defconfig:689:warning: override: reassigning to symbol LSM_MMAP_MIN_ADDR
arch/arm/configs/m8_defconfig:690:warning: override: reassigning to symbol SECURITY_NETWORK
arch/arm/configs/m8_defconfig:691:warning: override: reassigning to symbol SECURITY_SELINUX
arch/arm/configs/m8_defconfig:694:warning: override: reassigning to symbol NF_CONNTRACK_SECMARK
arch/arm/configs/m8_defconfig:695:warning: override: reassigning to symbol NETFILTER_XT_TARGET_CONNSECMARK
arch/arm/configs/m8_defconfig:696:warning: override: reassigning to symbol NETFILTER_XT_TARGET_SECMARK
arch/arm/configs/m8_defconfig:697:warning: override: reassigning to symbol IP_NF_SECURITY
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CC scripts/mod/empty.o
arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:512: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
Build Failed
[email protected] ~ $ '/home/stefanstgs/Desktop/android_kernel_htc_msm8974/kk'
arch/arm/configs/m8_defconfig:413:warning: symbol value 'y' invalid for MSM_KGSL_DEFAULT_GPU_HUNG_NO_PANIC
arch/arm/configs/m8_defconfig:557:warning: override: reassigning to symbol EXT4_FS_SECURITY
arch/arm/configs/m8_defconfig:687:warning: override: reassigning to symbol AUDIT
arch/arm/configs/m8_defconfig:688:warning: override: reassigning to symbol SECURITY
arch/arm/configs/m8_defconfig:689:warning: override: reassigning to symbol LSM_MMAP_MIN_ADDR
arch/arm/configs/m8_defconfig:690:warning: override: reassigning to symbol SECURITY_NETWORK
arch/arm/configs/m8_defconfig:691:warning: override: reassigning to symbol SECURITY_SELINUX
arch/arm/configs/m8_defconfig:694:warning: override: reassigning to symbol NF_CONNTRACK_SECMARK
arch/arm/configs/m8_defconfig:695:warning: override: reassigning to symbol NETFILTER_XT_TARGET_CONNSECMARK
arch/arm/configs/m8_defconfig:696:warning: override: reassigning to symbol NETFILTER_XT_TARGET_SECMARK
arch/arm/configs/m8_defconfig:697:warning: override: reassigning to symbol IP_NF_SECURITY
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
CC scripts/mod/empty.o
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:512: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/stefanstgs/Desktop/android_kernel_htc_msm8974/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found
Build Failed
This arm-eabi-gcc thing keeps popping up, used 2 different toolchains and it just doesn t want to compile. Some help would be much appreciatted, I hope the long terminal text won t make you instantly quit the post .
You don't see Devs around this Q&A, you'll have better luck if you post this question here - https://forum.xda-developers.com/htc-one-m8/general/discussion-android-7-nougat-t3505252

ninja: build stopped: subcommand failed.

I have been building LineageOS 15.1 for Samsung S6 and S6 Edge for a while without any real issues.
I am using my own 'zero' repo's that are duplicates of the ones available on the official LineageOS github repo with a few local fixes.
My build environment is an Ubuntu 16.04 VM. The build tools recently forced me to upgrade to Python 3.6.3 which I had to install manually.
Since then the build fails whilst compiling the Exynos7420 Kernel. The error message seems to vary but its always at the Exynos7420 kernel part.
I am building with my own certificates so the script is a little different from a standard LineageOS build:
Code:
source build/envsetup.sh
breakfast zeroltexx
mka target-files-package dist otatools
The last lines of the output and the error I got the last time:
Code:
[ 0% 2/93156] Generated: (/home/andy/android...ut/target/product/zeroltexx/android-info.txt)
FAILED: /home/andy/android/lineage/out/target/product/zeroltexx/android-info.txt
/bin/bash -c "(build/tools/check_radio_versions.py ) && (echo \"board=universal7420\" > /home/andy/android/lineage/out/target/product/zeroltexx/android-info.txt )"
File "build/tools/check_radio_versions.py", line 56
print "*** Error opening \"%s.sha1\"; can't verify %s" % (fn, key)
^
SyntaxError: invalid syntax
[ 0% 7/93156] Building Kernel Config
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
GEN /home/andy/android/lineage/out/target/product/zeroltexx/obj/KERNEL_OBJ/Makefile
Kconfig:15:warning: environment variable ANDROID_MAJOR_VERSION undefined
arch/arm64/configs/lineageos_zeroltexx_defconfig:624:warning: override: reassigning to symbol INET_DIAG
#
# configuration written to .config
#
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
GEN /home/andy/android/lineage/out/target/product/zeroltexx/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
Kconfig:15:warning: environment variable ANDROID_MAJOR_VERSION undefined
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
ninja: build stopped: subcommand failed.
19:27:22 ninja failed with: exit status 1
#### failed to build some targets (08:22 (mm:ss)) ####
Any pointers as to how I debug this? It must be something to do with the upgrade to python 3.6.3, however I am not skilled in the arts of scripting...
Cheers
Andy
If I clean everything out of the /out folder and re-run the commands it always fails at the same point:
Code:
FIPS : Generating hmac of fmp and updating vmlinux...
HMAC-SHA256(builtime_bytes.bin)= 5d384fe6b55f757aa0ef31391e8cbb5ffb947cd886235203f2690988f879aec8
FIPS : Generating hmac of crypto and updating vmlinux...
HMAC-SHA256(builtime_bytes.bin)= d6e18e7da3d688cd63ab5598991c05bd4c538f71d383fbe7e9f668f23d1e040a
OBJCOPY arch/arm64/boot/Image
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
Building DTBs
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[2]: Nothing to be done for 'dtbs'.
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
Building Kernel Modules
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
GEN /home/andy/android/lineage/out/target/product/zeroltexx/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
Using /home/andy/android/lineage/kernel/samsung/exynos7420 as source for kernel
CHK include/generated/utsrelease.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
CALL /home/andy/android/lineage/kernel/samsung/exynos7420/scripts/checksyscalls.sh
HOSTLD scripts/mod/modpost
Building modules, stage 2.
MODPOST 0 modules
/home/andy/android/lineage/kernel/samsung/exynos7420/scripts/Makefile.fwinst:45: target '/lib/firmware/tsp_stm/stm_z1.fw' given more than once in the same rule
/home/andy/android/lineage/kernel/samsung/exynos7420/scripts/Makefile.fwinst:45: target '/lib/firmware/abov/abov_valley.fw' given more than once in the same rule
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
ninja: build stopped: subcommand failed.
23:05:52 ninja failed with: exit status 1
#### failed to build some targets (17:53 (mm:ss)) ####
Anyone?
ADB100 said:
If I clean everything out of the /out folder and re-run the commands it always fails at the same point:
Code:
FIPS : Generating hmac of fmp and updating vmlinux...
HMAC-SHA256(builtime_bytes.bin)= 5d384fe6b55f757aa0ef31391e8cbb5ffb947cd886235203f2690988f879aec8
FIPS : Generating hmac of crypto and updating vmlinux...
HMAC-SHA256(builtime_bytes.bin)= d6e18e7da3d688cd63ab5598991c05bd4c538f71d383fbe7e9f668f23d1e040a
OBJCOPY arch/arm64/boot/Image
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
Building DTBs
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[2]: Nothing to be done for 'dtbs'.
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
Building Kernel Modules
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
GEN /home/andy/android/lineage/out/target/product/zeroltexx/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
Using /home/andy/android/lineage/kernel/samsung/exynos7420 as source for kernel
CHK include/generated/utsrelease.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
CALL /home/andy/android/lineage/kernel/samsung/exynos7420/scripts/checksyscalls.sh
HOSTLD scripts/mod/modpost
Building modules, stage 2.
MODPOST 0 modules
/home/andy/android/lineage/kernel/samsung/exynos7420/scripts/Makefile.fwinst:45: target '/lib/firmware/tsp_stm/stm_z1.fw' given more than once in the same rule
/home/andy/android/lineage/kernel/samsung/exynos7420/scripts/Makefile.fwinst:45: target '/lib/firmware/abov/abov_valley.fw' given more than once in the same rule
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
ninja: build stopped: subcommand failed.
23:05:52 ninja failed with: exit status 1
#### failed to build some targets (17:53 (mm:ss)) ####
Anyone?
Click to expand...
Click to collapse
I know it's old, but did you manage to solve it?
I have the same problem

Categories

Resources