編譯錯誤:undefined reference to `__umoddi3'的處理
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