https://www.linuxdiyf.com/linux/21019.html
ubuntu16.04下内核编译出现recipe for target 'kernel' failed
发布时间:2016-05-28 10:18:32来源:linux网站作者:Bonker
我是用的ubuntu16.04 32位系统,编译内核linux-3.0.1。
出现如下错误:
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.
/opt/ARM/mini6410/linux/linux-2.6.38/kernel/Makefile:140: recipe for target 'kernel/timeconst.h' failed
make[1]: *** [kernel/timeconst.h] Error 255
Makefile:916: recipe for target 'kernel' failed
make: *** [kernel] Error 2
解决方法:需要2步
vim kernel/timeconst.pl
/****************************************************************************/
:set nu //显示行号
/372 + 回车 // 搜索行号 或者搜索内容
/@val = @{$canned_values{$hz}}; +回车 //所搜内容
esc:u //撤销
esc&