用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
阅读(2675) | 评论(0) | 转发(0) |