OS X Lion Kernel Building Error - Android Q&A, Help & Troubleshooting

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!

Related

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

[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] First time compiling kernel with a governor and I got errors. Im lost.

I am trying to compile a kernel for my device(kyleprods or GT-S7582 or Galaxy S duos 2) because I havent found any custom kernel out here. Im compiling from source. I tried compiling WITHOUT any tweaks or such, just plain compile after downloading the source, and it compiled successfully. I tried adding smartassv2 but I got these errors after running "make -j1" twice. Can anybody help/guide me? It is really my first time doing these things, because I'm very interested.
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
Creating rdb link for Hawaii
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/cpufreq/cpufreq_smartass2.o
drivers/cpufreq/cpufreq_smartass2.c:175:10: error: ‘THIS_MODULE’ undeclared here (not in a function)
.owner = THIS_MODULE,
^
drivers/cpufreq/cpufreq_smartass2.c: In function ‘cpufreq_smartass_timer’:
drivers/cpufreq/cpufreq_smartass2.c:295:1: error: implicit declaration of function ‘cputime64_sub’ [-Werror=implicit-function-declaration]
delta_idle = cputime64_sub(now_idle, this_smartass->time_in_idle);
^
drivers/cpufreq/cpufreq_smartass2.c: At top level:
drivers/cpufreq/cpufreq_smartass2.c:869:16: error: expected declaration specifiers or ‘...’ before string constant
MODULE_AUTHOR ("Erasmux");
^
drivers/cpufreq/cpufreq_smartass2.c:870:21: error: expected declaration specifiers or ‘...’ before string constant
MODULE_DESCRIPTION ("'cpufreq_smartass2' - A smart cpufreq governor");
^
drivers/cpufreq/cpufreq_smartass2.c:871:17: error: expected declaration specifiers or ‘...’ before string constant
MODULE_LICENSE ("GPL");
^
cc1: some warnings being treated as errors
make[2]: *** [drivers/cpufreq/cpufreq_smartass2.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2

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

Categories

Resources