本帖最后由 Leo 于 2015-3-11 14:18 编辑
ubuntu安装使用 ubuntu-12.04.5-dvd-amd64.iso
安装好ubuntu后编译内核出现以下问题
./mk-k 编译光盘源码x4412_ics_rtm_v10_140617.tar.bz2,一开始出现以下错误信息
leo@ubuntu:/mnt/hgfs/x4412_ics_rtm_v10$ ./mk -k
arch/arm/Kconfig:1386:warning: 'HZ': number is invalid
arch/arm/Kconfig:1387:warning: 'HZ': number is invalid
arch/arm/Kconfig:1388:warning: 'HZ': number is invalid
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm/Kconfig:1386:warning: 'HZ': number is invalid
arch/arm/Kconfig:1387:warning: 'HZ': number is invalid
arch/arm/Kconfig:1388:warning: 'HZ': number is invalid
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
arm-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
leo@ubuntu:/mnt/hgfs/x4412_ics_rtm_v10$
有确认cc1存在 prebuilt\linux-x86\toolchain\arm-linux-androideabi-4.4.x\libexec\gcc\arm-linux-androideabi\4.4.3 ,且属性正常
使用./mk-k 编译光盘源码x4412_jlb_rtm_v10.tar.bz2,编译中间出现以下错误信息
CC net/netfilter/xt_mark.o
CC net/netfilter/xt_connmark.o
net/netfilter/xt_mark.c: In function 'mark_tg':
net/netfilter/xt_mark.c:32:32: error: dereferencing pointer to incomplete type
net/netfilter/xt_mark.c:32:46: error: dereferencing pointer to incomplete type
net/netfilter/xt_mark.c: In function 'mark_mt':
net/netfilter/xt_mark.c:41:27: error: dereferencing pointer to incomplete type
net/netfilter/xt_mark.c:41:42: error: dereferencing pointer to incomplete type
net/netfilter/xt_mark.c:41:56: error: dereferencing pointer to incomplete type
net/netfilter/xt_mark.c: At top level:
net/netfilter/xt_mark.c:49:27: error: invalid application of 'sizeof' to incomplete type 'struct xt_mark_tginfo2'
net/netfilter/xt_mark.c:58:27: error: invalid application of 'sizeof' to incomplete type 'struct xt_mark_mtinfo1'
make[2]: *** [net/netfilter/xt_mark.o] Error 1
make[2]: *** Waiting for unfinished jobs....
net/netfilter/xt_connmark.c: In function 'connmark_tg':
net/netfilter/xt_connmark.c:51:14: error: dereferencing pointer to incomplete type
net/netfilter/xt_connmark.c:52:7: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
net/netfilter/xt_connmark.c:52:7: note: each undeclared identifier is reported only once for each function it appears in
net/netfilter/xt_connmark.c:53:30: error: dereferencing pointer to incomplete type
net/netfilter/xt_connmark.c:53:46: error: dereferencing pointer to incomplete type
net/netfilter/xt_connmark.c:59:7: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
net/netfilter/xt_connmark.c:60:30: error: dereferencing pointer to incomplete type
net/netfilter/xt_connmark.c:61:30: error: dereferencing pointer to incomplete type
net/netfilter/xt_connmark.c:67:7: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
net/netfilter/xt_connmark.c:68:31: error: dereferencing pointer to incomplete type
net/netfilter/xt_connmark.c:69:29: error: dereferencing pointer to incomplete type
net/netfilter/xt_connmark.c: In function 'connmark_mt':
net/netfilter/xt_connmark.c:104:26: error: dereferencing pointer to incomplete type
net/netfilter/xt_connmark.c:104:41: error: dereferencing pointer to incomplete type
net/netfilter/xt_connmark.c:104:55: error: dereferencing pointer to incomplete type
net/netfilter/xt_connmark.c: At top level:
net/netfilter/xt_connmark.c:129:27: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
net/netfilter/xt_connmark.c:140:27: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_mtinfo1'
make[2]: *** [net/netfilter/xt_connmark.o] Error 1
make[1]: *** [net/netfilter] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [net] Error 2
make: *** Waiting for unfinished jobs....
leo@ubuntu:/mnt/hgfs/x4412_jlb_rtm_v10$
按照手册安装64位系统补丁有提示补丁包不存在,如下,是否和这个相关?
leo@ubuntu:/mnt/hgfs/x4412_jlb_rtm_v10$ sudo apt-get install lsb-corelibc6-dev-i386g++-multiliblib32z1-devlib32ncurses5-dev
[sudo] password for leo:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lsb-corelibc6-dev-i386g++-multiliblib32z1-devlib32ncurses5-dev
E: Couldn't find any package by regex 'lsb-corelibc6-dev-i386g++-multiliblib32z1-devlib32ncurses5-dev'
leo@ubuntu:/mnt/hgfs/x4412_jlb_rtm_v10$
为的gcc的版本如下:
leo@ubuntu:/mnt/hgfs/x4412_jlb_rtm_v10$ gcc --version
gcc (Ubuntu/Linaro 4.4.7-1ubuntu2) 4.4.7
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
leo@ubuntu:/mnt/hgfs/x4412_jlb_rtm_v10$
请帮忙看下原因,谢谢了
|