天嵌 ARM开发社区

 找回密码
 注册
查看: 1908|回复: 4

linux 2.6.30.4内核编译 一个错误 请版主帮忙看下

[复制链接]
hlj79513 发表于 2011-4-7 20:53:37 | 显示全部楼层 |阅读模式
MODPOST vmlinux.o
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
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] 错误 1
 楼主| hlj79513 发表于 2011-4-7 20:55:57 | 显示全部楼层
:( 为 冒号 括号
 楼主| hlj79513 发表于 2011-4-7 21:03:02 | 显示全部楼层
哦。有这样问题的帖子了http://bbs.embedsky.net/viewthread.php?tid=7736
 楼主| hlj79513 发表于 2011-4-8 10:16:45 | 显示全部楼层
google了下  需要打补丁 原因是eabi编译器太新了
将补丁放到 和源码同一目录
cd 进源码目录
$gunzip -dc ../__gnu_mcount_nc_patch.patch.gz |patch -p1

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
shufexiu 发表于 2011-4-8 11:08:29 | 显示全部楼层
:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-10-3 00:25 , Processed in 1.028254 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表