linux內(nèi)核編譯錯(cuò)誤
交叉編譯器:arm-linux-gcc 4.3.3
錯(cuò)誤:
arch/arm/mm/alignment.c: In function proc_alignment_write:
arch/arm/mm/alignment.c:119: error: read-only variable __r2 used as asm output
arch/arm/mm/alignment.c:119: error: read-only variable __r2 used as asm output
arch/arm/mm/alignment.c:119: error: read-only variable __r2 used as asm output
arch/arm/mm/alignment.c:119: error: read-only variable __r2 used as asm output
make[1]: *** [arch/arm/mm/alignment.o] 錯(cuò)誤 1
make: *** [arch/arm/mm] 錯(cuò)誤 2
arch/arm/mm/alignment.c:119: error: read-only variable __r2 used as asm output
arch/arm/mm/alignment.c:119: error: read-only variable __r2 used as asm output
arch/arm/mm/alignment.c:119: error: read-only variable __r2 used as asm output
arch/arm/mm/alignment.c:119: error: read-only variable __r2 used as asm output
make[1]: *** [arch/arm/mm/alignment.o] 錯(cuò)誤 1
make: *** [arch/arm/mm] 錯(cuò)誤 2
解決辦法:選擇較低版本的交叉編譯器,比如3.4.1。
評(píng)論