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

简介:
       今天安装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 就不会有错了~


本文转自Deidara 51CTO博客,原文链接:http://blog.51cto.com/deidara/140005,如需转载请自行联系原作者
相关文章
解决办法:undefined reference to symbol 'shm_open@@GLIBC_2.2.5'
解决办法:undefined reference to symbol 'shm_open@@GLIBC_2.2.5'
225 0
|
Linux C语言 计算机视觉
OpenIN2 Linux 编译OpenCV 报错undefined reference to `xxx@xxx‘
OpenIN2 Linux 编译OpenCV 报错undefined reference to `xxx@xxx‘
215 0
OpenIN2 Linux 编译OpenCV 报错undefined reference to `xxx@xxx‘
undefined reference to `major‘
undefined reference to `major‘
198 0
NDK编译doubango时出现错误:undefined reference to ‘stderr‘
NDK编译doubango时出现错误:undefined reference to ‘stderr‘
96 0
undefined reference to `swr_init+
undefined reference to `swr_init+
90 0
解决办法:undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
解决办法:undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
208 0
|
编译器 C++
Dev-c++中将头文件和头文件函数分离,编译主函数跳出undefined reference to 的问题解决
Dev-c++中将头文件和头文件函数分离,编译主函数跳出undefined reference to 的问题解决
Dev-c++中将头文件和头文件函数分离,编译主函数跳出undefined reference to 的问题解决
关于 海思平台sample的demo中添加ffmpeg静态库(.a)报错误undefined reference toavpriv_pix_fmt_hps_avi等错误 的解决方法
关于 海思平台sample的demo中添加ffmpeg静态库(.a)报错误undefined reference toavpriv_pix_fmt_hps_avi等错误 的解决方法
关于 海思平台sample的demo中添加ffmpeg静态库(.a)报错误undefined reference toavpriv_pix_fmt_hps_avi等错误 的解决方法