[Android Software/Hacking General [Developers Only]] zhangxiao83:
I am using kernel source code from:

android.googlesource.com/kernel/msm.git

branch:

android-msm-2.6.35

tried to compile with google's toolchain on a 32bit Ubuntu

here are the errors:

...
LD init/built-in.o
LD .tmp_vmlinux1
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function parse_tag_msm_partition:nand_partitions.c(.init.text+0xbcc): error: undefined reference to 'msm_nand_data'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function sapphire_init:board-sapphire.c(.init.text+0x1b20): error: undefined reference to 'msm_device_uart3'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function sapphire_init:board-sapphire.c(.init.text+0x1b38): error: undefined reference to 'msm_device_uart_dm1'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function sapphire_map_io:board-sapphire.c(.init.text+0x1bc4): error: undefined reference to 'msm_clocks_7x01a'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function sapphire_map_io:board-sapphire.c(.init.text+0x1bc8): error: undefined reference to 'msm_num_clocks_7x01a'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function sapphire_init_panel:htc_headset.c(.init.text+0x1ec0): error: undefined reference to 'msm_device_mdp'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function sapphire_init_panel:htc_headset.c(.init.text+0x1ec8): error: undefined reference to 'msm_device_mddi0'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function sapphire_init_mmc:htc_headset.c(.init.text+0x2054): error: undefined reference to 'msm_add_sdcc'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function sapphire_init_mmc:htc_headset.c(.init.text+0x2074): error: undefined reference to 'msm_add_sdcc'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function msm_add_usb_devices:htc_headset.c(.init.text+0x24d0): error: undefined reference to 'msm_device_hsusb'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function devices:board-sapphire.c(.init.data+0xa0): error: undefined reference to 'msm_device_smd'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function devices:board-sapphire.c(.init.data+0xa4): error: undefined reference to 'msm_device_nand'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function devices:board-sapphire.c(.init.data+0xa8): error: undefined reference to 'msm_device_i2c'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function devices:board-sapphire.c(.init.data+0xac): error: undefined reference to 'msm_device_uart1'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: arch/arm/mach-msm/built-in.o: in function devices:board-sapphire.c(.init.data+0xb0): error: undefined reference to 'msm_device_uart_dm1'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: drivers/built-in.o: in function msm_i2c_recover_bus_busy:i2c-msm.c(.text+0x70868): error: undefined reference to 'msm_set_i2c_mux'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: drivers/built-in.o: in function msm_i2c_recover_bus_busy:i2c-msm.c(.text+0x70a40): error: undefined reference to 'msm_set_i2c_mux'
/home/zhangxiao/downloads/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-ld: drivers/built-in.o: in function msm_i2c_probe:i2c-msm.c(.text+0x70fec): error: undefined reference to 'msm_set_i2c_mux'
make: *** [.tmp_vmlinux1] Error 1

Does anyone know how to solve this problem...?