配置linux内核还是不行阿!我快疯了阿!再次发贴!前辈指点!

shaoxiaojing5193 2012-09-13 03:08:55
问题是这样的,我载了一个内核,是 www.kernel.org里面载的,运行 make menuconfig命令进行配置,发现有一大堆错误阿,然后我网上查了资料都说可能是gcc版本问题,我又折腾了非常久的时间把 gcc,g++, arm-linux-gcc这三个玩意的版本弄成低一点的版本,都是3.*的版本。。。而且我的内核版本是直接从晚上载的哦,不是从外面的系统共享进来的。
按道理应该没问题阿,可是编译之后还是一样的问题阿,我不懂。。。。这么小的问题已经困扰我好几天了,不过如果这个问题能够解决,我相信我有学到东西!麻烦前辈指点阿,小弟把错误信息贴出来,感激不尽阿!!!在线等答案。。。
错误提示如下:
...全文
136 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
shaoxiaojing5193 2012-09-13
  • 打赏
  • 举报
回复
补充错误提示,糊涂阿,下午发贴的时候竟然给忘了

HOSTCC scripts/fixdep
SHIPPED scripts/kconfig/zconf.tab.h
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/mconf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
HOSTCC -fPIC scripts/kconfig/zconf.tab.o
HOSTLLD -shared scripts/kconfig/libkconfig.so
HOSTLD scripts/kconfig/mconf
HOSTCC scripts/lxdialog/checklist.o
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:29:20: curses.h: 没有那个文件或目录
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:127: error: syntax error before "use_colors"
scripts/lxdialog/dialog.h:127: warning: type defaults to `int' in declaration of `use_colors'
scripts/lxdialog/dialog.h:127: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:128: error: syntax error before "use_shadow"
scripts/lxdialog/dialog.h:128: warning: type defaults to `int' in declaration of `use_shadow'
scripts/lxdialog/dialog.h:128: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:130: error: syntax error before "attributes"
scripts/lxdialog/dialog.h:130: warning: type defaults to `int' in declaration of `attributes'
scripts/lxdialog/dialog.h:130: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:143: error: syntax error before '*' token
scripts/lxdialog/dialog.h:143: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:146: error: syntax error before '*' token
scripts/lxdialog/dialog.h:146: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:147: error: syntax error before '*' token
scripts/lxdialog/dialog.h:147: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:148: error: syntax error before '*' token
scripts/lxdialog/dialog.h:149: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:150: error: syntax error before '*' token
scripts/lxdialog/dialog.h:150: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c:32: error: syntax error before '*' token
scripts/lxdialog/checklist.c:34: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c: In function `print_item':
scripts/lxdialog/checklist.c:38: warning: implicit declaration of function `wattrset'
scripts/lxdialog/checklist.c:38: error: `win' undeclared (first use in this function)
scripts/lxdialog/checklist.c:38: error: (Each undeclared identifier is reported only once
scripts/lxdialog/checklist.c:38: error: for each function it appears in.)
scripts/lxdialog/checklist.c:39: warning: implicit declaration of function `wmove'
scripts/lxdialog/checklist.c:39: error: `choice' undeclared (first use in this function)
scripts/lxdialog/checklist.c:41: warning: implicit declaration of function `waddch'
scripts/lxdialog/checklist.c:44: error: `selected' undeclared (first use in this function)
scripts/lxdialog/checklist.c:46: warning: implicit declaration of function `wprintw'
scripts/lxdialog/checklist.c:46: error: `status' undeclared (first use in this function)
scripts/lxdialog/checklist.c:51: warning: implicit declaration of function `mvwaddch'
scripts/lxdialog/checklist.c:51: error: `item' undeclared (first use in this function)
scripts/lxdialog/checklist.c:53: warning: implicit declaration of function `waddstr'
scripts/lxdialog/checklist.c:56: warning: implicit declaration of function `wrefresh'
scripts/lxdialog/checklist.c: At top level:
scripts/lxdialog/checklist.c:64: error: syntax error before '*' token
scripts/lxdialog/checklist.c:66: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c: In function `print_arrows':
scripts/lxdialog/checklist.c:67: error: `win' undeclared (first use in this function)
scripts/lxdialog/checklist.c:67: error: `y' undeclared (first use in this function)
scripts/lxdialog/checklist.c:67: error: `x' undeclared (first use in this function)
scripts/lxdialog/checklist.c:69: error: `scroll' undeclared (first use in this function)
scripts/lxdialog/checklist.c:82: error: `height' undeclared (first use in this function)
scripts/lxdialog/checklist.c:85: error: `item_no' undeclared (first use in this function)
scripts/lxdialog/checklist.c:85: error: `choice' undeclared (first use in this function)
scripts/lxdialog/checklist.c: At top level:
scripts/lxdialog/checklist.c:103: error: syntax error before '*' token
scripts/lxdialog/checklist.c:104: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c: In function `print_buttons':
scripts/lxdialog/checklist.c:105: error: `width' undeclared (first use in this function)
scripts/lxdialog/checklist.c:106: error: `height' undeclared (first use in this function)
scripts/lxdialog/checklist.c:108: error: `dialog' undeclared (first use in this function)
scripts/lxdialog/checklist.c:108: error: `selected' undeclared (first use in this function)
scripts/lxdialog/checklist.c: In function `dialog_checklist':
scripts/lxdialog/checklist.c:126: error: `WINDOW' undeclared (first use in this function)
scripts/lxdialog/checklist.c:126: error: `dialog' undeclared (first use in this function)
scripts/lxdialog/checklist.c:126: error: `list' undeclared (first use in this function)
scripts/lxdialog/checklist.c:126: warning: left-hand operand of comma expression has no effect
scripts/lxdialog/checklist.c:132: warning: implicit declaration of function `endwin'
scripts/lxdialog/checklist.c:133: warning: implicit declaration of function `fprintf'
scripts/lxdialog/checklist.c:133: error: `stderr' undeclared (first use in this function)
scripts/lxdialog/checklist.c:150: error: `COLS' undeclared (first use in this function)
scripts/lxdialog/checklist.c:151: error: `LINES' undeclared (first use in this function)
scripts/lxdialog/checklist.c:153: error: `stdscr' undeclared (first use in this function)
scripts/lxdialog/checklist.c:155: warning: implicit declaration of function `newwin'
scripts/lxdialog/checklist.c:156: warning: implicit declaration of function `keypad'
scripts/lxdialog/checklist.c:156: error: `TRUE' undeclared (first use in this function)
scripts/lxdialog/checklist.c:189: warning: implicit declaration of function `subwin'
scripts/lxdialog/checklist.c:221: warning: implicit declaration of function `wnoutrefresh'
scripts/lxdialog/checklist.c:223: warning: implicit declaration of function `doupdate'
scripts/lxdialog/checklist.c:226: warning: implicit declaration of function `wgetch'
scripts/lxdialog/checklist.c:233: error: `KEY_UP' undeclared (first use in this function)
scripts/lxdialog/checklist.c:233: error: `KEY_DOWN' undeclared (first use in this function)
scripts/lxdialog/checklist.c:243: error: `FALSE' undeclared (first use in this function)
scripts/lxdialog/checklist.c:244: warning: implicit declaration of function `scrollok'
scripts/lxdialog/checklist.c:245: warning: implicit declaration of function `wscrl'
scripts/lxdialog/checklist.c:272: error: called object is not a function
scripts/lxdialog/checklist.c:308: warning: implicit declaration of function `delwin'
scripts/lxdialog/checklist.c:312: error: `KEY_LEFT' undeclared (first use in this function)
scripts/lxdialog/checklist.c:313: error: `KEY_RIGHT' undeclared (first use in this function)
scripts/lxdialog/checklist.c:126: warning: statement with no effect
scripts/lxdialog/checklist.c: At top level:
scripts/lxdialog/dialog.h:130: warning: array 'attributes' assumed to have one element
make[2]: *** [scripts/lxdialog/checklist.o] 错误 1
make[1]: *** [menuconfig] 错误 2
make: *** [menuconfig] 错误 2

shaoxiaojing5193 2012-09-13
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]

想学知识哇。。。 那根据错误 一个个改就是了
[/Quote]


不需要一个一个改吧,改了这个又会有新的错误,而且这些错误本来不应该有的,我在其它电脑试了,是可以的,直接配置成功,所以现在的问题是我的编译工具有问题把。。。唉
shaoxiaojing5193 2012-09-13
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

你是想交叉编译呢?还是直接编译啊?
[/Quote]


我应该是直接编译吧,我也不是很懂,根据视频来操作的,话说不管是交叉编译还是直接编译我的工具版本都没什么问题把。。。
xigua1102 2012-09-13
  • 打赏
  • 举报
回复
这种问题,需要慢慢弄,出问题,是好事,直接就编译通过了,啥都学不到
双月鸟之roc 2012-09-13
  • 打赏
  • 举报
回复
重新下载内核文件,配置低版本的交叉工具链!
希望你最好能把错误贴一下!
  • 打赏
  • 举报
回复
想学知识哇。。。 那根据错误 一个个改就是了
bestman 2012-09-13
  • 打赏
  • 举报
回复
你是想交叉编译呢?还是直接编译啊?

21,597

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧