[Q] Compiling CM kernel error - Android Q&A, Help & Troubleshooting

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?

Related

[Q] HTC Jetstream kernel issue

Hi
I am trying to build Jetstream Kernel on Ubuntu system with arm-eabi-gcc compiler but i am getting the following error
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/dma-mapping.h:93,
from arch/arm/kernel/asm-offsets.c:15:
/home/kgoel/android_kernels/puccini_lte_att_wwe_hc-32-crc-2.6.35/arch/arm/include/asm/dma-mapping.h:13:51: error: arch/arm/mach-msm/include/mach/memory.h: No such file or directory
In file included from include/linux/dma-mapping.h:93,
from arch/arm/kernel/asm-offsets.c:15:
/home/kgoel/android_kernels/puccini_lte_att_wwe_hc-32-crc-2.6.35/arch/arm/include/asm/dma-mapping.h: In function 'dma_cache_post_ops':
/home/kgoel/android_kernels/puccini_lte_att_wwe_hc-32-crc-2.6.35/arch/arm/include/asm/dma-mapping.h:444: error: implicit declaration of function 'arch_has_speculative_dfetch'
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
Can someone please help me with this ?
-K

[Q] Syntax error: "(" unexpected scripts/kconfig/conf --silentoldconfig Kconfig

[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.

poblem with gcc compiling kernel

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

poblem with gcc compiling kernel

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

Trying to build a kernel

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?

Categories

Resources