作者tstanly ()
看板LinuxDev
标题Re: [问题] compile gcc2.95.3 error
时间Thu Apr 16 09:30:56 2009
※ 引述《tstanly ()》之铭言:
: compile error如下
: ../../gcc-2.95.3/gcc/config/arm/arm.c:530: error: lvalue required as left
: operand of assignment
: make[1]: *** [arm.o] Error 1
: make[1]: Leaving directory
: `/opt/embedded_workplace/build-tools/build-boot-gcc/gcc'
: make: *** [all-gcc] Error 2
: 去google过 但没找到答案.....
: 请问该如何解决
: 谢谢
找到解决方法如下 晚上再来试试看了
不过我cpu是32bit...
===================
An error like ‘~~/arm.c:530: error: invalid lvalue in assignment’ will
occur if you compile it on a 64-bit machine.The contant of this line is:
The contant of this line is:
( arm_prog_mode =TARGET_APCS_32 ? PROG_MODE_PROG32 : PROG_MODE_PROG26; ) (
arm_prog_mode =TARGET_APCS_32 ? PROG_MODE_PROG32 : PROG_MODE_PROG26; )
Open file gcc-2.95.3/gcc/config/arm/arm.h and find the line: Open file
gcc-2.95.3/gcc/config/arm/arm.h and find the line:
#define arm_prog_mode ((enum attr_prog_mode) arm_prgmode)
Modify it as:
#define arm_prog_mode (arm_prgmode)
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.116.133.98
1F:→ NTUSTqq5566:请问你有成功解决吗? 07/23 16:38