Chinaunix首页 | 论坛 | 博客
  • 博客访问: 424436
  • 博文数量: 53
  • 博客积分: 2746
  • 博客等级: 少校
  • 技术积分: 829
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-14 10:41
文章分类

全部博文(53)

文章存档

2016年(2)

2013年(1)

2012年(7)

2011年(10)

2010年(5)

2009年(20)

2008年(8)

我的朋友

分类: LINUX

2011-04-27 14:49:03

出错信息:
 
ernel/built-in.o: In function `timespec_add_ns':
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:174:
undefined reference to `__aeabi_uldivmod'
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:179:
undefined reference to `__aeabi_uldivmod'
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:174:
undefined reference to `__aeabi_uldivmod'
/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:179:
undefined reference to `__aeabi_uldivmod'

分析及解决方法:
此版本的gcc 对内核编译优化出错,打下面补丁即可;
 
173 173 { 
174 174         ns += a->tv_nsec; 
175 175         while(unlikely(ns >= NSEC_PER_SEC)) { 
  176                 /* The following asm() prevents the compiler from 
  177                  * optimising this loop into a modulo operation.  */ 
  178                 asm("" : "+r"(ns)); 
  179  
176 180                 ns -= NSEC_PER_SEC; 
177 181                 a->tv_sec++; 
178 182         } 
   
    补丁来致openwrt:https://dev.openwrt.org/browser/trunk/target/linux/s3c24xx/patches-2.6.24/1300-fix-gcc-4.3-false-modulo-optimization.patch.patch?rev=13613
 
重编译,解决。
 
阅读(2700) | 评论(0) | 转发(0) |
0

上一篇:在 Ubuntu 10.04 编译安装 sb2

下一篇:LFS 文档

给主人留下些什么吧!~~