嵌入式linux在DOM上的构建过程遇到的问题?

来源:互联网 发布:寇森怎么复活的知乎 编辑:程序博客网 时间:2024/05/16 06:05

内核编译方面问题:

主机环境说明:系统用的是fedora的 内核版本是2.6.24(自己升过级)。GCC版本3.4.3  目标板要用的内核版本是2.6.2

在编译过程出现:

arch/i386/kernel/process.c:497: error: conflicting types for '__switch_to'
include/asm/system.h:13: error: previous declaration of '__switch_to' was here
arch/i386/kernel/process.c:497: error: conflicting types for '__switch_to'
include/asm/system.h:13: error: previous declaration of '__switch_to' was here
make[1]: *** [arch/i386/kernel/process.o] Error 1
make: *** [arch/i386/kernel] Error 2

原因:GCC版本过高

办法:同上重新下载低版本的GCC。重新使用的GCC版本是3.2.2  编译通过:-0