Re: [問題] compile gcc2.95.3 error

看板LinuxDev作者時間16年前 (2009/04/16 09:30), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《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

07/23 16:38, , 1F
請問你有成功解決嗎?
07/23 16:38, 1F
文章代碼(AID): #19vefHH2 (LinuxDev)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
文章代碼(AID): #19vefHH2 (LinuxDev)