编译错误:undefined reference to `__umoddi3'的处理
来源:互联网 发布:虚拟交易平台网站源码 编辑:程序博客网 时间:2024/06/05 10:18
用gcc 4.3编译kernel 2.6.22,结果出现:
undefined reference to `__umoddi3'
这样的错误。查google是gcc 4.3太新的问题,在更新的kernel应该没有这个问题,解决的办法如下:
cd kernel
vi Makefile
找到:
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs /
-fno-strict-aliasing -fno-common /
-Werror-implicit-function-declaration
增加一行,修改成:
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs /
-fno-strict-aliasing -fno-common /
-Werror-implicit-function-declaration /
-fno-tree-scev-cprop
undefined reference to `__umoddi3'
这样的错误。查google是gcc 4.3太新的问题,在更新的kernel应该没有这个问题,解决的办法如下:
cd kernel
vi Makefile
找到:
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs /
-fno-strict-aliasing -fno-common /
-Werror-implicit-function-declaration
增加一行,修改成:
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs /
-fno-strict-aliasing -fno-common /
-Werror-implicit-function-declaration /
-fno-tree-scev-cprop
- 编译错误:undefined reference to `__umoddi3'的处理
- undefined reference to `__umoddi3'解决办法
- Android NDK编译错误处理-- error: undefined reference to '__dso_handle'
- ”Undefined reference to“ 的处理
- ”Undefined reference to“ 的处理
- ”Undefined reference to“ 的处理
- Undefined reference to” 的处理
- “Undefined reference to” 的处理
- 编译错误undefined reference to `dlsym' 的解决方法
- 交叉编译中出现的 'Undefined reference to __aeabi_read_tp' 错误
- 编译什么时候出现Undefined reference to 的错误
- linux编译出现undefined reference to `pow‘的错误
- ubuntu编译mksquash_lzma-3.2的错误:undefined reference to `inflateReset
- gcc 编译出现undefined reference to‘pthread_create’的错误
- 编译错误undefined reference to `dlopen' 'dlsym' 'dlclose'的解决方法
- 一个WINSOCKET undefined reference to ...的错误的处理
- 编译错误:undefined reference to `vtable for
- 编译错误undefined reference to `dlsym'
- 关于servlet的理解(1)
- 一句话的多种写法
- XNA Unleashed 部分翻译(1)
- C#学习4——字符串与正则表达式
- JavaScript全局优化带来的负面效果……
- 编译错误:undefined reference to `__umoddi3'的处理
- [转帖]可支持1亿pv/天的数据库缓存系统
- 免疫共沉淀
- 主板检测卡(POST卡)故障代码及排除方法速查表
- 看“单一职责原则”的感悟
- asp.net连接Access数据库
- 为谁刻下伤痕
- JavaScript通用校验汇总
- 身份证15转18位