2017-01-26--编译Linux内核2.6.30版本报错解决
2024-10-09 17:17:26
错误一:
LD .tmp_vmlinux1
init/built-in.o: In function `run_init_process':
/home/ox/tq2440/opt/EmbedSky/linux-2.6.30.4/init/main.c:794: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `init_post':
/home/ox/tq2440/opt/EmbedSky/linux-2.6.30.4/init/main.c:804: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `do_one_initcall':
/home/ox/tq2440/opt/EmbedSky/linux-2.6.30.4/init/main.c:706: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `name_to_dev_t':
/home/ox/tq2440/opt/EmbedSky/linux-2.6.30.4/init/do_mounts.c:78: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `rest_init':
/home/ox/tq2440/opt/EmbedSky/linux-2.6.30.4/init/main.c:453: undefined reference to `__gnu_mcount_nc'
init/built-in.o:/home/ox/tq2440/opt/EmbedSky/linux-2.6.30.4/init/calibrate.c:123: more undefined references to `__gnu_mcount_nc' follow
Makefile:809: recipe for target '.tmp_vmlinux1' failed
make: *** [.tmp_vmlinux1] Error 1
1.解决参考:http://blog.csdn.net/u010445505/article/details/39299855
2.下载得到文件__gnu_mcount_nc_patch.patch.gz后,使用命令:gzip -dc __gnu_mcount_nc_patch.patch.gz | patch -p1,再次编译,搞定
错误二:
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.
1.问题分析:defined不能用
2.问题解决:将kernel/timeconst.pl第373行的defined去掉,即改为:
最新文章
- thinkphp一句话疑难解决笔记
- Swagger-API测试工具实战
- SQL Server中Rowcount与@@Rowcount的用法
- windows7安装python2.7及scrapy
- ios coredata 无任何错误提示crash
- iScroll.js和Swiper.js联合使用时的插件冲突(滑动冲突)
- AS3声音录音
- HTTP 笔记与总结(4 )socket 编程:批量发帖
- vim分屏快捷键使用/增大/减小字体使用
- Java [leetcode 10] Regular Expression Matching
- onvif规范的实现:成功实现ONVIF协议RTSP-Video-Stream与OnvifDeviceManager的视频对接
- Linux网络管理——linux网络配置
- MS13-069(CVE-2013-3205) CCaret use-after-free Vulnerability Analysis (2014.9)
- 3D位置语音,引领吃鸡游戏体验升级
- Node.js框架 —— Express
- VS2017、VS2019没有Setup安装项目(Visual Studio Installer)_解决方案
- Java中equals方法简略描述
- svn和ftp的不同应用场合
- Android (checkBox)
- java框架篇---hibernate之缓存机制