undefined reference to `__gnu_mcount_nc'的解决 在编译内核时出现了如下错误:
来源:互联网 发布:java毕业设计管理系统 编辑:程序博客网 时间:2024/05/02 05:06
现undefined reference to `__gnu_mcount_nc'的解决
在编译内核时出现了如下错误:
init/built-in.o: In function `do_one_initcall':
calibrate.c:(.text+0x14): undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `init_post':
calibrate.c:(.text+0x1d4): undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `name_to_dev_t':
calibrate.c:(.text+0x358): undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `rest_init':
calibrate.c:(.ref.text+0x10): undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `calibrate_delay':
calibrate.c:(.cpuinit.text+0x10): undefined reference to `__gnu_mcount_nc'
arch/arm/kernel/built-in.o:io.c:(.text+0x10): more undefined references to `__gnu_mcount_nc' follow
make: *** [.tmp_vmlinux1] Error 1
上网参阅以下两个网页,
http://forum.ubuntu.org.cn/viewtopic.php?t=333083http://blog.sina.com.cn/s/blog_7d3976fc01012itz.html得出解决方法:在网上下载一个补丁文件:地址如下:
www.arm9home.net/job.php?action-download-pid-37009-tid-7318-aid-1431.html
方法一,下载到Linux内核目录下,然后gunzip -dc __gnu_mcount_nc_patch.patch.gz |patch -p1
方法二,下载之后放在linux根目录下,并解压得到:__gnu_mcount_nc_patch.patch 文件。
然后,在终端进入linux根目录,执行以下语句进行打包:
zcat __gnu_mcount_nc_patch.patch | patch p1 或者
(注意:“__”为两个下划线连在一起,“p1”后面的是阿拉伯数字1,还要注意空格)
再重新编译就好了
- undefined reference to `__gnu_mcount_nc'的解决 在编译内核时出现了如下错误:
- 【嵌入式Linux】[内核编译]:内核编译时出现的问题:undefined reference to `__gnu_mcount_nc'
- 编译内核出现问题: undefined reference to `__gnu_mcount_nc'
- undefined reference to `__gnu_mcount_nc'
- 解决编译OpenCV项目时出现的undefined reference to cv::xxxx错误
- 编译3.10内核 出现错误 “undefined reference to...." 解决方法
- NDK编译出现undefined reference to错误
- 交叉编译中出现的 'Undefined reference to __aeabi_read_tp' 错误
- 编译什么时候出现Undefined reference to 的错误
- linux编译出现undefined reference to `pow‘的错误
- gcc 编译出现undefined reference to‘pthread_create’的错误
- PHP 5.3.10 编译安装时出现 undefined reference to `libiconv' 错误的解决方法
- PHP 编译安装时出现 undefined reference to `libiconv' 错误的解决方法
- 解决编译opencv3.0时出现的问题undefined reference to `parallel_pthreads_set_threads_num(int)'
- 解决DEV C++编译时出现的“ undefined reference to `___dyn_tls_init_callback'...”问题
- 解决使用NDK进行编译时出现undefined reference to function的问题
- 编译tslib1.4出现错误undefined reference to rpl_malloc错误
- linux 下安装opencv3.0在编译时出现的问题undefined reference to `parallel_pthreads_set_threads_num(int)'
- 查看Eclipse版本号及各个版本区别
- java内部类机制
- ScalaTest
- Linux是怎么启动的(整理)
- 知道Ping的最后一个返回值TTL是什么意思吗?
- undefined reference to `__gnu_mcount_nc'的解决 在编译内核时出现了如下错误:
- “automation服务器不能创建对象”的问题的解决
- 笔记77-listview属性介绍
- Java sleep() 和 wait() 有什么区别
- 设计模式笔记-工厂模式
- 常用的机器学习&数据挖掘知识(点)
- 搭建Android开发环境
- xp系统如何建立iis站点
- 冒泡排序