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