[LG Optimus 2x] thehero21:
compiling/building the kernel failed - any hints?

@spica:

first: thank you very much your hard work on this kernel !!!

now the problem:

for building the kernel from your git-source (branch * master 260b78d) with arm-none-eabi-gcc 4.6.2 20110630 (prerelease) (vorkChain_r4-LinaroBase), i had to modify

*** Makefile

- MODFLAGS = -DMODULE -O3 -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=soft -floop-block -floop-interchange floop-strip-mine -ffast-math -funsafe-looop-optimizations -funsafe-math-optimizations -fbranch-target-load-optimize2

+ MODFLAGS = -DMODULE -mfloat-abi=softfp -mfpu=vfpv3-d16 -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a9 -march=armv7-a -ftree-vectorize -funswitch-loops

- CFLAGS_KERNEL = -O3 -pipe -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=soft -floop-block -floop-interchange floop-strip-mine -ffast-math -funsafe-looop-optimizations -funsafe-math-optimizations -fbranch-target-load-optimize2

+ CFLAGS_KERNEL = -mfloat-abi=softfp -mfpu=vfpv3-d16 -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a9 -march=armv7-a -ftree-vectorize -funswitch-loops

*** drivers/net/wireless/bcm4329/Makefile

- -Wall -Wstrict-prototypes -Werror \

+ -Wall -Wstrict-prototypes \

compiles now fine so far, but linker errors

========= start-snaphot ======

make -f scripts/Makefile.build obj=net/unix

make -f scripts/Makefile.build obj=net/wanrouter

make -f scripts/Makefile.build obj=net/wireless

make -f scripts/Makefile.build obj=net/xfrm

make -f scripts/Makefile.build obj=arch/arm/lib

make -f scripts/Makefile.build obj=lib

make -f scripts/Makefile.build obj=lib/zlib_deflate

make -f scripts/Makefile.build obj=lib/zlib_inflate

set -e; if [ ! -r .version ]; then rm -f .version; echo 1 >.version; else mv .version .old_version; expr 0$(cat .old_version) + 1 >.version; fi; make -f scripts/Makefile.build obj=init

/bin/sh /mass/usrsrc/HP-Krnl-2.6.32.9/scripts/mkcompile_h include/linux/compile.h \

"arm" "y" "y" "arm-none-eabi-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack"

UPD include/linux/compile.h

arm-none-eabi-gcc -Wp,-MD,init/.version.o.d -nostdinc -isystem /usr/local/lib/gcc/arm-none-eabi/4.6.2/include -Iinclude -I/mass/usrsrc/HP-Krnl-2.6.32.9/arch/arm/include -include include/linux/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-tegra/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -mfloat-abi=softfp -mfpu=vfpv3-d16 -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a9 -march=armv7-a -ftree-vectorize -funswitch-loops -DSTAR_COUNTRY_ -DSTAR_OPERATOR_ -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(version)" -D"KBUILD_MODNAME=KBUILD_STR(version)" -c -o init/.tmp_version.o init/version.c

arm-none-eabi-ld -EL -r -o init/built-in.o init/main.o init/version.o init/mounts.o init/initramfs.o init/calibrate.o

arm-none-eabi-ld -EL -p --no-undefined -X --build-id -o .tmp_vmlinux1 -T arch/arm/kernel/vmlinux.lds arch/arm/kernel/head.o arch/arm/kernel/init_task.o init/built-in.o --start-group usr/built-in.o arch/arm/kernel/built-in.o arch/arm/mm/built-in.o arch/arm/common/built-in.o arch/arm/mach-tegra/built-in.o arch/arm/vfp/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o block/built-in.o arch/arm/lib/lib.a lib/lib.a arch/arm/lib/built-in.o lib/built-in.o drivers/built-in.o sound/built-in.o firmware/built-in.o net/built-in.o --end-group

init/built-in.o: In function `start_kernel':

calibrate.c:(.init.text+0x630): undefined reference to `kmem_cache_init'

calibrate.c:(.init.text+0x6ac): undefined reference to `kmem_cache_init_late'

init/built-in.o: In function `mount_block_root':

calibrate.c:(.init.text+0xb44): undefined reference to `kmem_cache_alloc'

calibrate.c:(.init.text+0xd78): undefined reference to `kmem_cache_free'

init/built-in.o: In function `unpack_to_rootfs':

calibrate.c:(.init.text+0x12b4): undefined reference to `kmem_cache_alloc'

calibrate.c:(.init.text+0x12c4): undefined reference to `kmem_cache_alloc'

calibrate.c:(.init.text+0x12d4): undefined reference to `kmem_cache_alloc'

calibrate.c:(.init.text+0x14d4): undefined reference to `kfree'

calibrate.c:(.init.text+0x14e0): undefined reference to `kfree'

calibrate.c:(.init.text+0x14f8): undefined reference to `kfree'

calibrate.c:(.init.text+0x1500): undefined reference to `kfree'

calibrate.c:(.init.text+0x1508): undefined reference to `kfree'

calibrate.c:(.init.text+0x1518): undefined reference to `malloc_sizes'

init/built-in.o: In function `do_copy':

calibrate.c:(.init.text+0x17e4): undefined reference to `kfree'

init/built-in.o: In function `maybe_link.part.6':

========= end-snaphot ======

if possible - please help :-)

thx in advance