编译内核出错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 就不会有错了~
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 就不会有错了~
相关文章推荐
- undefined reference to `__umoddi3'解决办法
- 编译出错 "undefined reference to"
- 编译出错libicui18n.so.58: undefined reference to `__cxa_throw_bad_array_new_length@CXXABI_1.3.8'
- 编译3.10内核 出现错误 “undefined reference to...." 解决方法
- undefined reference to `__gnu_mcount_nc'的解决 在编译内核时出现了如下错误:
- QT编译出错解决 libQtCore.so: undefined reference to `QInotifyFileSystemWatcherEngine::create()'
- ----linux--内核编译的问题:undefined reference to `printascii'
- gcc编译线程程序需带-lpthread选项(否则出错:undefined reference to `pthread_create')
- FFmpeg编译出错undefined reference to `img_convert’的解决方法
- 编译linux 内核时:decompress.c:(.text+0x25c4): undefined reference to `error'的解决办法
- 编译3.10内核 出现错误 “undefined reference to...." 解决方法
- VIVADO中SDK新建工程编译出错——undefined reference to 'main'
- SDK编译数学函数出错:"undefined reference to 'cos/sin'
- FFmpeg编译出错undefined reference to `img_convert’的解决方法
- 编译出错 "undefined reference to" .
- FFmpeg编译出错undefined reference to `img_convert’的解决方法
- undefined reference to 'socket@12'编译socket出错codeblocks
- 编译内核出现问题: undefined reference to `__gnu_mcount_nc'
- nrpe编译出错: nrpe.c:244: undefined reference to `get_dh512′
- qt+mingw编译出错,提示undefined reference to `**@**'