九鼎创展论坛中文版English
登录 | 立即注册 设为首页收藏本站 切换到宽版
查看: 8835|回复: 4
打印 上一主题 下一主题

4412 内核源码编译问题

[复制链接]
跳转到指定楼层
楼主
发表于 2015-3-11 14:06:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 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$


请帮忙看下原因,谢谢了
回复

使用道具 举报

沙发
发表于 2015-3-11 15:53:33 | 只看该作者
arm-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory


你自己指定了交叉编译工具?我记得内核不是用的这个交叉编译器呀
回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2015-3-11 15:59:33 | 只看该作者
armeasy 发表于 2015-3-11 15:53
你自己指定了交叉编译工具?我记得内核不是用的这个交叉编译器呀

请问 64位系统补丁 没有安装,是否编译内核会有影响?
回复 支持 反对

使用道具 举报

地板
发表于 2015-3-27 17:47:10 | 只看该作者
Leo 发表于 2015-3-11 15:59
请问 64位系统补丁 没有安装,是否编译内核会有影响?

使用64位ubuntu编译android系统时,需要安装的补丁包
apt-get  install lsb-core  libc6-dev-i386  g++-multilib lib32z1-dev  lib32ncurses5-dev
回复 支持 反对

使用道具 举报

5#
发表于 2015-7-4 02:19:40 | 只看该作者
需要安装的补丁包有没有链接呢。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|深圳市九鼎创展科技官方论坛 ( 粤ICP备11028681号-2  

GMT+8, 2024-11-23 17:09 , Processed in 0.019219 second(s), 17 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表