天天看点

linux内核编译错误集锦

1,我是用的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

解决方法:

这样处理

删除

@val = @{$canned_values{$hz}};

if (!defined(@val)) {

@val = compute_values($hz);

}

output前面加入

$cv = $canned_values{$hz};

@val = defined($cv) ? @$cv : compute_values($hz);

以后会不定时更新

QQ:519841366

本页版权归作者和博客园所有,欢迎转载,但未经作者同意必须保留此段声明,

且在文章页面明显位置给出原文链接,否则保留追究法律责任的权利

继续阅读