当前位置: 技术问答>linux和unix
内核编译的问题--scripts/basic/fixdep.c: In function ‘traps’:
来源: 互联网 发布时间:2016-12-17
本文导语: 我的系统是ubuntu10.4 gcc的版本是4.4.3 make menuconfig官网上下载的2.6.8的内核出现下列错误 HOSTCC scripts/basic/fixdep scripts/basic/fixdep.c: In function ‘traps’: scripts/basic/fixdep.c:359: warning: dereferencing type-punned pointer will break...
我的系统是ubuntu10.4 gcc的版本是4.4.3
make menuconfig官网上下载的2.6.8的内核出现下列错误
知道什么原因错,但不知道怎么改,新手求指教。。。。。。。上网搜索了很久全部是版本不对没有头文件的解决方法,我这个好像不适用,
make menuconfig官网上下载的2.6.8的内核出现下列错误
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:359: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/basic/fixdep.c:361: warning: dereferencing type-punned pointer will break strict-aliasing rules
HOSTCC scripts/basic/split-include
scripts/basic/split-include.c: In function ‘main’:
scripts/basic/split-include.c:133: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/basic/docproc
SHIPPED scripts/kconfig/zconf.tab.h
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:94: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:350: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/kconfig/mconf.o
scripts/kconfig/mconf.c:91: error: static declaration of ‘current_menu’ follows non-static declaration
scripts/kconfig/lkc.h:63: note: previous declaration of ‘current_menu’ was here
scripts/kconfig/mconf.c: In function ‘exec_conf’:
scripts/kconfig/mconf.c:223: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result
scripts/kconfig/mconf.c: In function ‘show_textbox’:
scripts/kconfig/mconf.c:551: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2
知道什么原因错,但不知道怎么改,新手求指教。。。。。。。上网搜索了很久全部是版本不对没有头文件的解决方法,我这个好像不适用,
|
友情帮顶
|
scripts/kconfig/mconf.c
91行的current_menu声明可能有点问题
91行的current_menu声明可能有点问题