android源码编译之奇怪的问题(ubuntu11上)

Darkwind 发布于 2011/07/04 14:20
阅读 3K+
收藏 0

其实该装的包都已经装了,开始编译以后大约半小时的时候,会自动退出编译,回到默认命令行,从log中我没看到什么明显的报错提示,我把log贴上来,希望各位高手不吝赐教,谢谢!

 

target arm C: vgpreload_core-arm-linux <= external/valgrind/coregrind/vg_preloaded.c

target arm C: vgpreload_drd-arm-linux <= external/valgrind/drd/drd_pthread_intercepts.c

target arm C: vgpreload_drd-arm-linux <= external/valgrind/drd/drd_qtcore_intercepts.c

target arm C: vgpreload_drd-arm-linux <= external/valgrind/drd/drd_strmem_intercepts.c

target arm C: vgpreload_helgrind-arm-linux <= external/valgrind/helgrind/hg_intercepts.c

target arm C: vgpreload_memcheck-arm-linux <= external/valgrind/memcheck/mc_replace_strmem.c

Generated: (out/target/product/gallo/android-info.txt)

Install: out/host/linux-x86/bin/apicheck

make -C kernel O=../out/target/product/gallo/obj/KERNEL ARCH=arm CROSS_COMPILE=arm-eabi- tegra_gallo_defconfig

make[1]: Entering directory `/home/douzeyun/workspace2/HDMI/kernel'

host SharedLib: libESR_Portable (out/host/linux-x86/obj/lib/libESR_Portable.so)

  HOSTCC  scripts/basic/fixdep

host StaticLib: libzipfile (out/host/linux-x86/obj/STATIC_LIBRARIES/libzipfile_intermediates/libzipfile.a)

  GEN     /home/douzeyun/workspace2/HDMI/out/target/product/gallo/obj/KERNEL/Makefile

host StaticLib: libunz (out/host/linux-x86/obj/STATIC_LIBRARIES/libunz_intermediates/libunz.a)

host SharedLib: libfst (out/host/linux-x86/obj/lib/libfst.so)

  HOSTCC  scripts/basic/docproc

/home/douzeyun/workspace2/HDMI/kernel/scripts/basic/docproc.c: In function ‘docsect’:

/home/douzeyun/workspace2/HDMI/kernel/scripts/basic/docproc.c:336:10: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result

host StaticLib: libtinyxml (out/host/linux-x86/obj/STATIC_LIBRARIES/libtinyxml_intermediates/libtinyxml.a)

  HOSTCC  scripts/basic/hash

Install: out/host/linux-x86/lib/libESR_Portable.so

Install: out/host/linux-x86/lib/libfst.so

host Executable: adb (out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb)

/usr/bin/ld: skipping incompatible /usr/lib/libncurses.so when searching for -lncurses

/usr/bin/ld: skipping incompatible /usr/lib/libncurses.a when searching for -lncurses

/usr/bin/ld: cannot find -lncurses

collect2: ld returned 1 exit status

make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1

make: *** Waiting for unfinished jobs....

  HOSTCC  scripts/kconfig/conf.o

  HOSTCC  scripts/kconfig/kxgettext.o

  SHIPPED scripts/kconfig/zconf.tab.c

  SHIPPED scripts/kconfig/lex.zconf.c

  SHIPPED scripts/kconfig/zconf.hash.c

  HOSTCC  scripts/kconfig/zconf.tab.o

  HOSTLD  scripts/kconfig/conf

#

# configuration written to .config

#

make[1]: Leaving directory `/home/douzeyun/workspace2/HDMI/kernel'

有时候停的早,有时候停的晚,反正都没有编译完成,就自己退出了。

加载中
0
TrulyBelieve
TrulyBelieve

/usr/bin/ld: cannot find -lncurses

collect2: ld returned 1 exit status

貌似ncurses的开发包找不到

D
Darkwind
我现在有的是libncurses5-dev, libncursesw5-dev
D
Darkwind
那正确的应该是装哪个包哦?如果apt-get的话~
0
TrulyBelieve
TrulyBelieve

查一下/usr/lib目录下的ncurses相关文件,ls -l /usr/lib/*ncurses*

确定以下文件存在

/usr/lib/libncurses.so

/usr/lib/libncurses.a

D
Darkwind
那个我已经拷贝的别人的文件,麻烦你再看下吧,现在这个是经常看到的结果,刚才那个LOG我也是第一次碰到。
0
D
Darkwind

不对,最常停的在这里,不是那个LOG,那俩文件我从别处拷了过来,这回不是那个原因,是经常看到的结果。

 

 

/home/douzeyun/workspace2/HDMI/kernel/drivers/video/tegra/nvmap/nvmap_heap.c: In function 'nvmap_block_to_heap':

/home/douzeyun/workspace2/HDMI/kernel/drivers/video/tegra/nvmap/nvmap_heap.c:892: warning: unused variable 'h'

/home/douzeyun/workspace2/HDMI/kernel/drivers/video/tegra/nvmap/nvmap_heap.c:891: warning: unused variable 'bh'

  CC      drivers/video/tegra/nvmap/nvmap_mru.o

  CC      drivers/usb/storage/usb.o

  CC      drivers/usb/storage/initializers.o

  CC      drivers/usb/storage/sierra_ms.o

  LD      drivers/video/tegra/nvmap/built-in.o

  LD      drivers/video/tegra/built-in.o

  LD      drivers/video/built-in.o

  CC      drivers/usb/storage/option_ms.o

  LD      drivers/usb/storage/usb-storage.o

  LD      drivers/usb/storage/usb-libusual.o

  LD      drivers/usb/storage/built-in.o

  LD      drivers/usb/built-in.o

  LD      drivers/built-in.o

  LD      vmlinux.o

  MODPOST vmlinux.o

WARNING: modpost: Found 1 section mismatch(es).

To see full details build your kernel with:

'make CONFIG_DEBUG_SECTION_MISMATCH=y'

  GEN     .version

  CHK     include/generated/compile.h

  UPD     include/generated/compile.h

  CC      init/version.o

  LD      init/built-in.o

  LD      .tmp_vmlinux1

  KSYM    .tmp_kallsyms1.S

  AS      .tmp_kallsyms1.o

  LD      .tmp_vmlinux2

  KSYM    .tmp_kallsyms2.S

  AS      .tmp_kallsyms2.o

  LD      vmlinux

  SYSMAP  System.map

  SYSMAP  .tmp_System.map

  Building modules, stage 2.

  MODPOST 2 modules

  OBJCOPY arch/arm/boot/Image

  Kernel: arch/arm/boot/Image is ready

  CC      drivers/net/wireless/bcm4329/bcm4329.mod.o

  CC      drivers/scsi/scsi_wait_scan.mod.o

  AS      arch/arm/boot/compressed/head.o

  GZIP    arch/arm/boot/compressed/piggy.gzip

  CC      arch/arm/boot/compressed/misc.o

  CC      arch/arm/boot/compressed/decompress.o

  LD [M]  drivers/net/wireless/bcm4329/bcm4329.ko

  LD [M]  drivers/scsi/scsi_wait_scan.ko

  SHIPPED arch/arm/boot/compressed/lib1funcs.S

  AS      arch/arm/boot/compressed/lib1funcs.o

  AS      arch/arm/boot/compressed/piggy.gzip.o

  LD      arch/arm/boot/compressed/vmlinux

  OBJCOPY arch/arm/boot/zImage

  Kernel: arch/arm/boot/zImage is ready

make[1]: Leaving directory `/home/douzeyun/workspace2/HDMI/kernel'

make -C kernel O=../out/target/product/gallo/obj/KERNEL ARCH=arm CROSS_COMPILE=arm-eabi- modules

make[1]: Entering directory `/home/douzeyun/workspace2/HDMI/kernel'

  CHK     include/linux/version.h

  GEN     /home/douzeyun/workspace2/HDMI/out/target/product/gallo/obj/KERNEL/Makefile

  Using /home/douzeyun/workspace2/HDMI/kernel as source for kernel

  CHK     include/generated/utsrelease.h

make[3]: `include/generated/mach-types.h' is up to date.

  CALL    /home/douzeyun/workspace2/HDMI/kernel/scripts/checksyscalls.sh

  Building modules, stage 2.

  MODPOST 2 modules

make[1]: Leaving directory `/home/douzeyun/workspace2/HDMI/kernel'

rm -rf out/target/product/gallo/obj/KERNEL/lib/modules

make -C kernel O=../out/target/product/gallo/obj/KERNEL ARCH=arm CROSS_COMPILE=arm-eabi- modules_install INSTALL_MOD_PATH=lib/modules

make[1]: Entering directory `/home/douzeyun/workspace2/HDMI/kernel'

  INSTALL drivers/net/wireless/bcm4329/bcm4329.ko

  INSTALL drivers/scsi/scsi_wait_scan.ko

  DEPMOD  2.6.36.3-00003-g9d42a91

make[1]: Leaving directory `/home/douzeyun/workspace2/HDMI/kernel'

mkdir -p out/target/product/gallo/system/lib/modules

cp -r `find out/target/product/gallo/obj/KERNEL/lib/modules -name *.ko` out/target/product/gallo/system/lib/modules


0
D
Darkwind
执行到这个以后就自动OVER。。。
0
crossmix
crossmix
源码编译正确吗?
返回顶部
顶部