[Miscellaneous Android Development] mornage:
I'm having problems building CM9 for my device. It's been going good until I get to the kernel.

If I let CM9 build the kernel by placing the source in kernel/allwinner/a10 I get the following:

system/core/toolbox/Android.mk:85: warning: overriding commands for target `out/target/product/a10/system/bin/lsof'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/a10/system/bin/lsof'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/a10/system/etc/mkshrc'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/a10/system/etc/mkshrc'
No private recovery resources for TARGET_DEVICE a10
build/core/tasks/kernel.mk:140: warning: overriding commands for target `out/target/product/a10/kernel'
build/core/Makefile:36: warning: ignoring old commands for target `out/target/product/a10/kernel'
make -C kernel/allwinner/a10/ O=/home/orange/CM9/out/target/product/a10/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/orange/CM9/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-" "kernel/allwinner/a10
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [/home/orange/CM9/out/target/product/a10/obj/KERNEL_OBJ/.config] Error 1

I have compiled the kernel separately and placed this in device/allwinner/a10 but then when building I get:

build/core/tasks/kernel.mk:26: ***************************************************************
build/core/tasks/kernel.mk:27: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:28: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:29: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:30: * source repository to kernel/allwinner/a10
build/core/tasks/kernel.mk:31: * See
build/core/tasks/kernel.mk:32: * for more information *
build/core/tasks/kernel.mk:33: ***************************************************************
build/core/tasks/kernel.mk:140: warning: overriding commands for target `out/target/product/a10/kernel'
build/core/Makefile:36: warning: ignoring old commands for target `out/target/product/a10/kernel'
target Prebuilt: (out/target/product/a10/kernel)
target Symbolic: libstdc++ (out/target/product/a10/symbols/system/lib/libstdc++.so)
target Symbolic: libm (out/target/product/a10/symbols/system/lib/libm.so)
acp: omitting directory 'device/allwinner/a10/kernel'
target thumb C++: libui <= frameworks/base/libs/ui/Keyboard.cpp
target thumb C++: libui <= frameworks/base/libs/ui/KeyLayoutMap.cpp
target thumb C++: libui <= frameworks/base/libs/ui/KeyCharacterMap.cpp
target thumb C++: libui <= frameworks/base/libs/ui/VirtualKeyMap.cpp
In file included from <command-line>:0:
./system/core/include/arch/linux-arm/AndroidConfig.h:209:1: warning: "__linux__" redefined
<built-in>: warning: this is the location of the previous definition
In file included from <command-line>:0:
./system/core/include/arch/linux-arm/AndroidConfig.h:209:1: warning: "__linux__" redefined
<built-in>: warning: this is the location of the previous definition
In file included from <command-line>:0:
./system/core/include/arch/linux-arm/AndroidConfig.h:209:1: warning: "__linux__" redefined
<built-in>: warning: this is the location of the previous definition
In file included from <command-line>:0:
./system/core/include/arch/linux-arm/AndroidConfig.h:209:1: warning: "__linux__" redefined
<built-in>: warning: this is the location of the previous definition
In file included from frameworks/base/include/utils/FileMap.h:25,
from frameworks/base/include/utils/Tokenizer.h:22,
from frameworks/base/include/ui/VirtualKeyMap.h:25,
from frameworks/base/libs/ui/VirtualKeyMap.cpp:21:
frameworks/base/include/utils/Compat.h:25:2: error: #error "_FILE_OFFSET_BITS < 64; large files are not supported on this platform"
In file included from frameworks/base/include/utils/FileMap.h:25,
from frameworks/base/include/utils/Tokenizer.h:22,
from frameworks/base/include/utils/PropertyMap.h:23,
from frameworks/base/include/ui/Keyboard.h:23In file included from frameworks/base/include/utils/FileMap.h:25,
from frameworks/base/libs/ui/KeyCharacterMap.cpp:22,
from frameworks/base/include/utils/Tokenizer.h:22:
,
from frameworks/base/include/utils/PropertyMap.h:23frameworks/base/include/utils/Compat.h:25:2:,
from frameworks/base/include/ui/Keyboard.h:23 ,
from frameworks/base/libs/ui/KeyLayoutMap.cpp:21error: :
#error "_FILE_OFFSET_BITS < 64; large files are not supported on this platform"frameworks/base/include/utils/Compat.h:25:2:
error: #error "_FILE_OFFSET_BITS < 64; large files are not supported on this platform"
In file included from frameworks/base/include/utils/FileMap.h:25,
from frameworks/base/include/utils/Tokenizer.h:22,
from frameworks/base/include/utils/PropertyMap.h:23,
from frameworks/base/include/ui/Keyboard.h:23,
from frameworks/base/libs/ui/Keyboard.cpp:23:
frameworks/base/include/utils/Compat.h:25:2: error: #error "_FILE_OFFSET_BITS < 64; large files are not supported on this platform"
In file included from frameworks/base/include/utils/FileMap.h:25,
from frameworks/base/include/utils/Tokenizer.h:22,
from frameworks/base/include/utils/PropertyMap.h:23,
from frameworks/base/include/ui/Keyboard.h:23,
from frameworks/base/libs/ui/KeyLayoutMap.cpp:21:
frameworks/base/include/utils/Compat.h:28: error: conflicting declaration 'typedef off_t off64_t'
bionic/libc/include/sys/types.h:70: error: 'off64_t' has a previous declaration as 'typedef loff_t off64_t'
In file included from frameworks/base/include/utils/FileMap.h:25,
from frameworks/base/include/utils/Tokenizer.h:22,
from frameworks/base/include/ui/VirtualKeyMap.h:25,
from frameworks/base/libs/ui/VirtualKeyMap.cpp:21:
frameworks/base/include/utils/Compat.h:28: error: conflicting declaration 'typedef off_t off64_t'
bionic/libc/include/sys/types.h:70: error: 'off64_t' has a previous declaration as 'typedef loff_t off64_t'
make: *** [out/target/product/a10/obj/SHARED_LIBRARIES/libui_intermediates/VirtualKeyMap.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from frameworks/base/include/utils/FileMap.h:25,
from frameworks/base/include/utils/Tokenizer.h:22,
from frameworks/base/include/utils/PropertyMap.h:23,
from frameworks/base/include/ui/Keyboard.h:23,
from frameworks/base/libs/ui/KeyCharacterMap.cpp:22:
frameworks/base/include/utils/Compat.h:28: error: conflicting declaration 'typedef off_t off64_t'
bionic/libc/include/sys/types.h:70: error: 'off64_t' has a previous declaration as 'typedef loff_t off64_t'
In file included from frameworks/base/include/utils/FileMap.h:25,
from frameworks/base/include/utils/Tokenizer.h:22,
from frameworks/base/include/utils/PropertyMap.h:23,
from frameworks/base/include/ui/Keyboard.h:23,
from frameworks/base/libs/ui/Keyboard.cpp:23:
frameworks/base/include/utils/Compat.h:28: error: conflicting declaration 'typedef off_t off64_t'
bionic/libc/include/sys/types.h:70: error: 'off64_t' has a previous declaration as 'typedef loff_t off64_t'
make: *** [out/target/product/a10/obj/SHARED_LIBRARIES/libui_intermediates/KeyLayoutMap.o] Error 1
make: *** [out/target/product/a10/obj/SHARED_LIBRARIES/libui_intermediates/Keyboard.o] Error 1
make: *** [out/target/product/a10/obj/SHARED_LIBRARIES/libui_intermediates/KeyCharacterMap.o] Error 1

Any ideas how to get around this? or does anyone have another kernel source at all?