红联Linux门户
Linux帮助

Ubuntu 64位下编译Linux内核出现Can't use 'defined(@array)'

发布时间:2017-06-04 11:07:44来源:linux网站作者:huabiaochen
在Ubuntu 64位环境下编译嵌入式Linux内核时出现了以下错误提示:
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.
 
仔细看了错误提示后,kernel/timeconst.pl 文件中 373行的
if (!defined(@val)) {
改为if (!@val) { 
(把defined去掉)即可。
 
在ubuntu16.04LTS下编译linux内核(从kernel 4.5升级到4.8.13):http://www.linuxdiyf.com/linux/26797.html
 
本文永久更新地址:http://www.linuxdiyf.com/linux/31257.html