您的位置:首页 > Web前端

编译内核出错undefined reference to `__umoddi3'

2009-03-18 17:29 405 查看
今天安装XEN,编译内核linux-2.6.18,make 的时候出错,错误如下:



google了一下看到一篇老外的文章
大概的意思是gcc-4.3太新,新的内核支持了gcc-4.3 肯定没问题,解决办法有两个,那就是用 低版本的gcc,第二种就是修改Makefile

shell $> vim Makefile
#查找
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common
改为:

KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common \
-fno-tree-scev-cprop
然后在
shell $> make 就不会有错了~
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐