在编译android 的内核 linux3.0时,出现如下错误:make:离开目录“/mnt/sdb/lichee/linux-3.0/arch/arm/mach-sun5i/pm/standby”
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: “include/generated/mach-types.h”是最新的。
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
drivers/built-in.o: In function `disp_resume':
/mnt/sdb/lichee/linux-3.0/drivers/video/sun5i/disp/dev_disp.c:697: undefined reference to `standby_type'
/mnt/sdb/lichee/linux-3.0/drivers/video/sun5i/disp/dev_disp.c:697: undefined reference to `standby_type'
drivers/built-in.o: In function `disp_suspend':
/mnt/sdb/lichee/linux-3.0/drivers/video/sun5i/disp/dev_disp.c:666: undefined reference to `standby_type'
/mnt/sdb/lichee/linux-3.0/drivers/video/sun5i/disp/dev_disp.c:666: undefined reference to `standby_type'
drivers/built-in.o: In function `nand_resume':
/mnt/sdb/lichee/linux-3.0/drivers/block/sun5i_nand/nfd/nand_blk.c:1190: undefined reference to `standby_type'
drivers/built-in.o:/mnt/sdb/lichee/linux-3.0/drivers/block/sun5i_nand/nfd/nand_blk.c:1190: more undefined references to `standby_type' follow
drivers/built-in.o:(.ARM.exidx.init.text+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
drivers/built-in.o:(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
drivers/built-in.o:(.ARM.exidx+0x48): undefined reference to `__aeabi_unwind_cpp_pr1'
`cleanup_module' referenced in section `.gnu.linkonce.this_module' of drivers/built-in.o: defined in discarded section `.exit.text' of drivers/built-in.o
sound/built-in.o: In function `snd_sun5i_codec_resume':
/mnt/sdb/lichee/linux-3.0/sound/soc/sun5i/sun5i-codec.c:1525: undefined reference to `standby_type'
/mnt/sdb/lichee/linux-3.0/sound/soc/sun5i/sun5i-codec.c:1525: undefined reference to `standby_type'
sound/built-in.o: In function `snd_sun5i_codec_suspend':
/mnt/sdb/lichee/linux-3.0/sound/soc/sun5i/sun5i-codec.c:1494: undefined reference to `standby_type'
/mnt/sdb/lichee/linux-3.0/sound/soc/sun5i/sun5i-codec.c:1494: undefined reference to `standby_type'
make: *** [.tmp_vmlinux1] 错误 1请问是哪个错误,怎么解决呀?

解决方案 »

  1.   

    再仔细调试后,发现是因为`cleanup_module' referenced in section `.gnu.linkonce.this_module' of drivers/built-in.o: defined in discarded section `.exit.text' of drivers/built-in.o
    make: *** [.tmp_vmlinux1] 错误 1这个问题出错的,请问哪位大侠知道这个是什么错误,怎么解决呀?
      

  2.   

    我也遇到了  LD      .tmp_vmlinux1
    drivers/built-in.o: In function `disp_resume':
    /Work/A13/lichee/linux-3.0/drivers/video/sun5i/disp/dev_disp.c:700: undefined reference to `standby_type'
    /Work/A13/lichee/linux-3.0/drivers/video/sun5i/disp/dev_disp.c:700: undefined reference to `standby_type'
    drivers/built-in.o: In function `disp_suspend':
    /Work/A13/lichee/linux-3.0/drivers/video/sun5i/disp/dev_disp.c:667: undefined reference to `standby_type'
    /Work/A13/lichee/linux-3.0/drivers/video/sun5i/disp/dev_disp.c:667: undefined reference to `standby_type'
    sound/built-in.o: In function `snd_sun5i_codec_resume':
    /Work/A13/lichee/linux-3.0/sound/soc/sun5i/sun5i-codec.c:1525: undefined reference to `standby_type'
    sound/built-in.o:/Work/A13/lichee/linux-3.0/sound/soc/sun5i/sun5i-codec.c:1525: more undefined references to `standby_type' follow
    make: *** [.tmp_vmlinux1] 错误 1