kernel编译报Can't use 'defined(@array)'问题
来源:互联网 发布:软件外包网站有哪些 编辑:程序博客网 时间:2024/06/04 19:52
在编译LINUX3.3内核时,报了一个 错误:
TIMEC kernel/timeconst.h
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.
/mnt/WORKSPACE/omapl138/kernel/linux-3.3/kernel/Makefile:130: recipe for target 'kernel/timeconst.h' failed
make[1]: *** [kernel/timeconst.h] Error 255
Makefile:945: recipe for target 'kernel' failed
make: *** [kernel] Error 2
make: *** 正在等待未完成的任务....
CC fs/super.o
最后调查发现是和所使用的UBUNTU版本有关系,在使用ubuntu 16.04编译时,报这个错误;
使用ubuntu 12.04编译时,不会报这个错误。
依照编译器的提示kernel/timeconst.pl line 373,在ubuntu16.04中可以通过修改kernel/timeconst.pl的第373行:
把if (!defined(@val))修改成
#if (!defined(@val))
if (!@val){
@val = compute_values($hz);
}
即可以修正这个问题。
之前看网页上有介绍可能和64位机器环境有关系,ubuntu16.04和ubuntu12.04都是32位的虚拟机,应该和64位无关。
- kernel编译报Can't use 'defined(@array)'问题
- Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl
- Ubuntu16.04编译make内核出错Can't use 'defined(@array)'
- 在Ubuntu 下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法
- Can't use 'defined(@array)' (Maybe you should just omit the defined()?)(编译内核时候的错误)
- 在Ubuntu 64位环境下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法
- 在Ubuntu 64位环境下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法
- 在Ubuntu 64位环境下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法
- 在Ubuntu 64位环境下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法
- 在Ubuntu 64位环境下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法
- Can't use 'defined(@array)' (Maybe you should just omit the defined()?)
- Can't use FLAG_RECEIVER_BOOT_UPGRADE 问题
- linux-kernel编译出现can't read private key
- “ERROR: can't get kernel image!”问题的解决方法
- Can't get kernel image!
- Zynq --can't get kernel
- Android Studio集成SVN报错:can't use subversion command line client : svn
- Android Studio报错“Can't use Subversion command line client: svn”的解决
- 机器学习业务实践之路
- HDU 1598 find the most comfortable road 二分+bfs or 并查集枚举
- selenium实现excel文件数据的读、写
- java 容器
- 等待事件:enq: SQ
- kernel编译报Can't use 'defined(@array)'问题
- 电子标识成智能交通得力助手!引领未来智能交通
- nc.vo.pubapp.pattern.exception.PubAppBusinessException异常的处理
- 自动化的基于TypeScript的HTML5游戏开发
- python语法(一)-------python 日期,时间
- python_hive平台搭建
- python的np.random模块
- (报错)backslash-newline at end of file
- java的set数据类型,是什么?怎么用?