当前位置: 技术问答>linux和unix
linux内核编译问题
来源: 互联网 发布时间:2016-06-21
本文导语: 最近在整linux移植,编译内核遇到如下错误,望高手指教 Freescale001:~/linux-2.6.20.4 #make CHK include/linux/version.h make[1]: `include/asm-arm/mach-types.h' is up to date. CHK include/linux/utsrelease.h CHK include/linu...
最近在整linux移植,编译内核遇到如下错误,望高手指教
Freescale001:~/linux-2.6.20.4
#make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CHK include/linux/compile.h
AS arch/arm/kernel/crunch-bits.o
arch/arm/kernel/crunch-bits.S: Assembler messages:
arch/arm/kernel/crunch-bits.S:140: Error: Maverick MVFX register expected -- `cfmv32sc mvdx0,dspsc'
arch/arm/kernel/crunch-bits.S:149: Error: Maverick MVFX register expected -- `cfmvsc32 dspsc,mvdx0'
make[1]: *** [arch/arm/kernel/crunch-bits.o] Error 1
make: *** [arch/arm/kernel] Error 2
|
楼主你用的是啥gcc,最少要用4.0版本以上的gcc编译
|
貌似gcc的版本不对啊。出现了认为错误的汇编指令格式。
|
貌似arm 的汇编器不认得你的汇编指令,确认汇编器没用错(和你的目标硬件有关)然后使用较高版本的4.0up