|
我编译前把本机的gcc降低为gcc-4.4 $ll /usr/bin/gcc* lrwxrwxrwx 1 root root 16 4月 1 00:34 /usr/bin/gcc -> /usr/bin/gcc-4.4*
编译的出错信息如下:
CHK include/linux/version.h CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/basic/hash CC kernel/bounds.s GEN include/linux/bounds.h CC arch/x86/kernel/asm-offsets.s GEN include/asm/asm-offsets.h CALL scripts/checksyscalls.sh HOSTCC scripts/genksyms/genksyms.o HOSTCC scripts/genksyms/lex.o HOSTCC scripts/genksyms/parse.o HOSTLD scripts/genksyms/genksyms CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/modpost.o scripts/mod/modpost.c: In function ‘get_markers’: scripts/mod/modpost.c:1562: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result scripts/mod/modpost.c: In function ‘add_marker’: scripts/mod/modpost.c:1982: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost HOSTCC scripts/selinux/mdp/mdp HOSTCC scripts/kallsyms scripts/kallsyms.c: In function ‘read_symbol’: scripts/kallsyms.c:112: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result HOSTCC scripts/conmakehash CC init/main.o ld: Relocatable linking with relocations from format elf32-i386 (init/main.o) to format elf64-x86-64 (init/.tmp_mx_main.o) is not supported mv: cannot stat ‘init/.tmp_mx_main.o’: No such file or directory CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o CC init/do_mounts.o ld: Relocatable linking with relocations from format elf32-i386 (init/do_mounts.o) to format elf64-x86-64 (init/.tmp_mx_do_mounts.o) is not supported mv: cannot stat ‘init/.tmp_mx_do_mounts.o’: No such file or directory CC init/do_mounts_rd.o CC init/do_mounts_initrd.o CC init/do_mounts_md.o LD init/mounts.o ld: Relocatable linking with relocations from format elf64-x86-64 (init/do_mounts_rd.o) to format elf32-i386 (init/mounts.o) is not supported make[1]: *** [init/mounts.o] Error 1 make: *** [init] Error 2
|