I am trying to build a kernel for moto g 2014 based on cm source.
Code:
[email protected]:~/kernelmoto$ export ARCH=arm
[email protected]:~/kernelmoto$ export CROSS_COMPILER=~/android/arm-cortex_a7-linux/arm-cortex_a7-linux-gnueabihf-
[email protected]:~/kernelmoto$ make titan_defconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
#
# configuration written to .config
#
[email protected]:~/kernelmoto$ make -j6
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
CHK include/linux/version.h
CC scripts/mod/empty.o
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/kernelmoto$
what am I missing, I am using the linaro toolchain. How do I fix these errors?
Related
Im trying to compile a CM kernel for my device using this guide:
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
I run into this error:
[email protected]:~/android/kernel/cm-kernel$ make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
cc1: error: unrecognized command line option ‘-mlittle-endian’
cc1: error: unrecognized command line option ‘-mapcs’
cc1: error: unrecognized command line option ‘-mno-sched-prolog’
scripts/mod/empty.c:1:0: error: unknown ABI (apcs-gnu) for -mabi= switch
scripts/mod/empty.c:1:0: error: bad value (armv4t) for -march= switch
scripts/mod/empty.c:1:0: error: bad value (arm9tdmi) for -mtune= switch
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/android/kernel/cm-kernel$
I did have a look in the scripts/mod/empty.c file. Only line of txt in there is:
/* empty file to figure out endianness / word size */
my config file: http://www.mediafire.com/?5kq9m6vecl22rzx
Someone a idee how to fix this problem?
[Q] Syntax error: "(" unexpected scripts/kconfig/conf --silentoldconfig Kconfig
Trying to compile kernel for my tab but gettings this error
Tried make clean
Tried mrproper
Also checked toolchain path 100 times
Code:
[email protected](none) ~/kernel $ make willow_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
#
# configuration written to .config
#
[email protected](none) ~/kernel $ export CROSS_COMPILE=/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-
[email protected](none) ~/kernel $ export ARCH=arm
[email protected](none) ~/kernel $ make -j4
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
ALPS IF Driver build option : -DACC_10BIT -DMAG_15BIT
CC scripts/mod/empty.o
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/Makefile.build:305: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:441: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Any?
blttalas said:
Trying to compile kernel for my tab but gettings this error
Tried make clean
Tried mrproper
Also checked toolchain path 100 times
Code:
[email protected](none) ~/kernel $ make willow_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
#
# configuration written to .config
#
[email protected](none) ~/kernel $ export CROSS_COMPILE=/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-
[email protected](none) ~/kernel $ export ARCH=arm
[email protected](none) ~/kernel $ make -j4
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
ALPS IF Driver build option : -DACC_10BIT -DMAG_15BIT
CC scripts/mod/empty.o
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/Makefile.build:305: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:441: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Try to use another versions of toolchain.
when i try to compile a kernel with this command
Code:
make ARCH=arm CROSS_COMPILE=arm-eabi- modules_prepare
i get this error:
Code:
CC_PATH/arm-eabi- modules_prepare
make: /arm-eabi-gcc: command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: /arm-eabi-gcc: not found
/home/user/Desktop/ArchiKernel-smdk4412/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 127
Makefile:1216: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
can someone help me?
thanks in advance
when i try to compile a kernel with this command
Code:
make ARCH=arm CROSS_COMPILE=arm-eabi- modules_prepare
i get this error:
Code:
CC_PATH/arm-eabi- modules_prepare
make: /arm-eabi-gcc: command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: /arm-eabi-gcc: not found
/home/user/Desktop/ArchiKernel-smdk4412/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 127
Makefile:1216: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
can someone help me?
thanks in advance
So, I was trying to do the command:
Code:
make recoveryimage -j5
And got this error:
Code:
CC arch/arm/mach-msm/hotplug.o
CC arch/arm/mach-msm/board-8916.o
CC arch/arm/mach-msm/ext-buck-control.o
CC arch/arm/mach-msm/msm_mem_hole.o
LD arch/arm/mach-msm/built-in.o
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/tanuj/android/cyanogenmod/kernel/xolo/black'
build/core/tasks/kernel.mk:286: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
target thumb C++: recovery <= bootable/recovery/adb_install.cpp
make: *** wait: No child processes. Stop.
#### make failed to build some targets (06:35 (mm:ss)) ####
Can somebody tell me how to get rid of this?