在Ubuntu 64位环境下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法

在编译嵌入式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) {

后,编译成功。

你可能感兴趣的:(在Ubuntu 64位环境下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法)