poblem with gcc compiling kernel - Android Q&A, Help & Troubleshooting

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

Related

OS X Lion Kernel Building Error

Good morning all!!
I'm trying to build a kernel from HTC source and I keep getting the following error:
Code:
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:
/Volumes/gingerbread/lexikon-2.6.35-gb-mr/arch/arm/include/asm/dma-mapping.h: In function 'dma_cache_post_ops':
/Volumes/gingerbread/lexikon-2.6.35-gb-mr/arch/arm/include/asm/dma-mapping.h:442: error: implicit declaration of function 'arch_has_speculative_dfetch'
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
If anyone could post guidance it would be greatly appreciated, I'll keep pounding away at it on my own as well!

[Q] Compiling CM kernel error

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?

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?

Error While Making CyanogenMod Recovery

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?

Categories

Resources