2009年5月4日星期一

郭光景: arm-linux内核编译错误集

郭光景:arm-linux内核编译错误集: "arm-linux内核编译错误集

1,编译linux-2.6.22内核时出现如下错误:

arm-linux-ld:arch/arm/kernel/vmlinux.lds:541: parse error
make: *** [.tmp_vmlinux1] 错误 1
根据提示,找到编译内核文件夹下的arch/arm/kernel/vmlinux.lds文件中第541行,看到

/*
* These must never be empty
* If you have to comment these two assert statements out, your
* binutils is too old (for other reasons as well)
*/
ASSERT((__proc_info_end - __proc_info_begin), “missing CPU support”)
ASSERT((__arch_info_end - __arch_info_begin), “no machine record defined”)

没错,就是这里显示出错了,注解上写着if you have to comment these two assert statements out, your binutils is too old (for other reasons as well),我用arm-linux交叉编译工具的3.4.3版本,看来已经很旧了。

只要把这两句comment out就可以了,注意要使用/**/这种注释。"

没有评论:

发表评论