主题 : FC9+4.3.2交叉编译器怎么不能编译内核2.6.13 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 3939
精华: 0
发帖: 63
金钱: 550 两
威望: 463 点
综合积分: 126 分
注册时间: 2009-02-17
最后登录: 2012-08-31
楼主  发表于: 2009-04-29 20:09

 FC9+4.3.2交叉编译器怎么不能编译内核2.6.13

我按照mini2440手册建立了最新的开发环境FC9+4.3.2,可以编译2.6.29,但是编译mini2440以前的kernel-2.6.13时出现如下问题,不知道是怎么回事,Makefile也改了
[root@localhost kernel-2.6.13]# make menuconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/mconf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
lex.zconf.c:2972: warning: ‘input’ defined but not used
  HOSTLD  scripts/kconfig/mconf
  HOSTCC  scripts/lxdialog/checklist.o
  HOSTCC  scripts/lxdialog/inputbox.o
scripts/lxdialog/inputbox.c: In function ‘dialog_inputbox’:
scripts/lxdialog/inputbox.c:107: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
scripts/lxdialog/inputbox.c:109: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/lxdialog/inputbox.c:117: warning: pointer targets in passing argument 2 of ‘waddnstr’ differ in signedness
scripts/lxdialog/inputbox.c:147: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
  HOSTCC  scripts/lxdialog/lxdialog.o
scripts/lxdialog/lxdialog.c: In function ‘j_inputbox’:
scripts/lxdialog/lxdialog.c:211: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness
  HOSTCC  scripts/lxdialog/menubox.o
  HOSTCC  scripts/lxdialog/msgbox.o
  HOSTCC  scripts/lxdialog/textbox.o
  HOSTCC  scripts/lxdialog/util.o
  HOSTCC  scripts/lxdialog/yesno.o
  HOSTLD  scripts/lxdialog/lxdialog
scripts/kconfig/mconf arch/arm/Kconfig
drivers/char/Kconfig:820: syntax error, unexpected T_WORD
drivers/char/Kconfig:823: invalid menu option
make[1]: *** [menuconfig] Error 1
make: *** [menuconfig] Error 2
[root@localhost kernel-2.6.13]#
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-04-29 20:22
scripts/kconfig/mconf arch/arm/Kconfig
drivers/char/Kconfig:820: syntax error, unexpected T_WORD
drivers/char/Kconfig:823: invalid menu option

这个跟交叉编译器没关系(还没用到交叉编译呢),你自己看看你的drivers/char/Kconfig第820行和823行写了什么东西吧
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 3939
精华: 0
发帖: 63
金钱: 550 两
威望: 463 点
综合积分: 126 分
注册时间: 2009-02-17
最后登录: 2012-08-31
2楼  发表于: 2009-04-29 20:36
找到问题了,原来drivers/char/Kconfig:820中是heip 本来应该是help
谢谢!


不过编译模块时遇到问题了
[root@localhost kernel-2.6.13]# make modules
make: /usr/local/arm/3.4.2/bin/arm-linux-gcc: Command not found
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  SYMLINK include/asm -> include/asm-arm
  SPLIT   include/linux/autoconf.h -> include/config/*
  CC      scripts/mod/empty.o
/bin/sh: /usr/local/arm/3.4.2/bin/arm-linux-gcc: No such file or directory
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2

但是/usr/local/arm/3.4.2/bin/arm-linux-gcc是存在的呀
[ 此帖被zzh2008在2009-04-29 20:48重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-04-29 21:43

 回 2楼(zzh2008) 的帖子

那就见鬼了,重装系统吧       
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 3939
精华: 0
发帖: 63
金钱: 550 两
威望: 463 点
综合积分: 126 分
注册时间: 2009-02-17
最后登录: 2012-08-31
4楼  发表于: 2009-04-30 13:40
但在2.6.29下make modules 就能通过,不知道这是怎么回事


问题解决了,以前的2.6.13在是windows下解压后拷到FC9的,后来在FC9下重新解压后就行了。不知道这有什么区别
以后压缩文件最好在linux下解压,要不就可以出问题了。
[ 此帖被zzh2008在2009-04-30 14:37重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2009-04-30 16:52
以后压缩文件最好在linux下解压,要不就可以出问题了。

Windows不支持符号链接,在Linux下用的东西,最好不要用Windows来解压
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 31026
精华: 0
发帖: 11
金钱: 55 两
威望: 11 点
综合积分: 22 分
注册时间: 2010-10-25
最后登录: 2011-08-31
6楼  发表于: 2011-04-28 14:58
Makefile 需要修改哪些地方,才能在4.3.2下编译2.6.13??
好好学习