This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cross_compiler error!HELP ME


Hi all:
	My machine is i386 and the OS is redhat 9.0. After i downloaded the
gcc-3.3.4 package, I try to compile it for xscale target board.
	My configure command is: configure --host=i386-linux
--target=armv51-aio-linux-gnu  --prefix=/usr/local/arm/3.3.4
--enable-language=c,c++ --program-prefix=arm-linux- --with-cpu=xscale

	Then i  start to "make" the package, but the error always occurs as
following show:

	/root/all_in_one/toolchain/gcc-3.3.4/arm-linux/gcc/xgcc
-B/root/all_in_one/toolchain/gcc-3.3.4/arm-linux/gcc/
-B/usr/local/arm/3.4.1//armv51-aio-linux-gnu/bin/
-B/usr/local/arm/3.4.1//armv51-aio-linux-gnu/lib/ -isystem
/usr/local/arm/3.4.1//armv51-aio-linux-gnu/include -O2 -DIN_GCC
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include  -I. -I. -I../../gcc -I../../gcc/.
-I../../gcc/config -I../../gcc/../include  -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss  \
  -Dinhibit_libc -c ../../gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
make[1]: Leaving directory
`/root/all_in_one/toolchain/gcc-3.3.4/arm-linux/gcc'
../../gcc/crtstuff.c: In function `__do_global_dtors_aux':
../../gcc/crtstuff.c:280: warning: passing arg 1 of
`__deregister_frame_info' discards qualifiers from pointer target type
../../gcc/crtstuff.c: In function `frame_dummy':
../../gcc/crtstuff.c:316: warning: passing arg 1 of `__register_frame_info'
discards qualifiers from pointer target type
/tmp/ccDiaKEM.s: Assembler messages:
/tmp/ccDiaKEM.s:36: Warning: rest of line ignored; first ignored character
is `@'
/tmp/ccDiaKEM.s:37: Warning: rest of line ignored; first ignored character
is `@'
/tmp/ccDiaKEM.s:38: Error: no such instruction: `stmfd sp!,{r4,r5,lr}'
/tmp/ccDiaKEM.s:39: Error: no such instruction: `ldr r5,.L10'
/tmp/ccDiaKEM.s:40: Error: no such instruction: `ldrb r3,[r5,'
/tmp/ccDiaKEM.s:41: Error: expecting operand after ','; got nothing
/tmp/ccDiaKEM.s:42: Error: no such instruction: `ldmnefd sp!,{r4,r5,pc}'
/tmp/ccDiaKEM.s:43: Error: no such instruction: `ldr r4,.L10+4'
/tmp/ccDiaKEM.s:44: Error: no such instruction: `ldr r3,[r4,'
/tmp/ccDiaKEM.s:45: Error: no such instruction: `ldr r2,[r3,'
/tmp/ccDiaKEM.s:46: Error: expecting operand after ','; got nothing
/tmp/ccDiaKEM.s:47: Error: no such instruction: `beq .L9'
/tmp/ccDiaKEM.s:49: Error: no such instruction: `ldr r3,[r4,'
/tmp/ccDiaKEM.s:50: Error: too many memory references for `add'
/tmp/ccDiaKEM.s:51: Error: invalid char '[' beginning operand 2 `[r4'
/tmp/ccDiaKEM.s:52: Error: too many memory references for `mov'
/tmp/ccDiaKEM.s:53: Error: too many memory references for `mov'
/tmp/ccDiaKEM.s:54: Error: no such instruction: `ldr r3,[r4,'
/tmp/ccDiaKEM.s:55: Error: no such instruction: `ldr r2,[r3,'
/tmp/ccDiaKEM.s:56: Error: expecting operand after ','; got nothing
/tmp/ccDiaKEM.s:57: Error: no such instruction: `bne .L6'
/tmp/ccDiaKEM.s:59: Error: no such instruction: `ldr r3,.L10+8'
/tmp/ccDiaKEM.s:60: Error: expecting operand after ','; got nothing
/tmp/ccDiaKEM.s:61: Error: no such instruction: `ldrne r0,.L10+12'
/tmp/ccDiaKEM.s:62: Error: no such instruction: `movne lr,pc'
/tmp/ccDiaKEM.s:63: Error: no such instruction: `movne pc,r3'
/tmp/ccDiaKEM.s:65: Error: expecting operand after ','; got nothing
/tmp/ccDiaKEM.s:66: Error: invalid char '[' beginning operand 2 `[r5'
/tmp/ccDiaKEM.s:67: Error: no such instruction: `ldmfd sp!,{r4,r5,pc}'
/tmp/ccDiaKEM.s:78: Warning: rest of line ignored; first ignored character
is `@'
/tmp/ccDiaKEM.s:79: Warning: rest of line ignored; first ignored character
is `@'
/tmp/ccDiaKEM.s:80: Error: invalid char '[' beginning operand 2 `[sp'
/tmp/ccDiaKEM.s:82: Error: no such instruction: `bl __do_global_dtors_aux'
/tmp/ccDiaKEM.s:84: Error: no such instruction: `ldr pc,[sp],'
/tmp/ccDiaKEM.s:90: Warning: rest of line ignored; first ignored character
is `@'
/tmp/ccDiaKEM.s:91: Warning: rest of line ignored; first ignored character
is `@'
/tmp/ccDiaKEM.s:92: Error: no such instruction: `ldr r3,.L16'
/tmp/ccDiaKEM.s:93: Error: expecting operand after ','; got nothing
/tmp/ccDiaKEM.s:94: Error: invalid char '[' beginning operand 2 `[sp'
/tmp/ccDiaKEM.s:95: Error: no such instruction: `ldr r0,.L16+4'
/tmp/ccDiaKEM.s:96: Error: no such instruction: `ldr r1,.L16+8'
/tmp/ccDiaKEM.s:97: Error: no such instruction: `movne lr,pc'
/tmp/ccDiaKEM.s:98: Error: no such instruction: `movne pc,r3'
/tmp/ccDiaKEM.s:100: Error: no such instruction: `ldr r0,.L16+12'
/tmp/ccDiaKEM.s:101: Error: no such instruction: `ldr r3,[r0,'
/tmp/ccDiaKEM.s:102: Error: expecting operand after ','; got nothing
/tmp/ccDiaKEM.s:103: Error: no such instruction: `ldreq pc,[sp],'
/tmp/ccDiaKEM.s:104: Error: no such instruction: `ldr r3,.L16+16'
/tmp/ccDiaKEM.s:105: Error: expecting operand after ','; got nothing
/tmp/ccDiaKEM.s:106: Error: no such instruction: `ldreq pc,[sp],'
/tmp/ccDiaKEM.s:107: Error: no such instruction: `ldr lr,[sp],'
/tmp/ccDiaKEM.s:108: Error: no such instruction: `b _Jv_RegisterClasses'
/tmp/ccDiaKEM.s:120: Warning: rest of line ignored; first ignored character
is `@'
/tmp/ccDiaKEM.s:121: Warning: rest of line ignored; first ignored character
is `@'
/tmp/ccDiaKEM.s:122: Error: invalid char '[' beginning operand 2 `[sp'
/tmp/ccDiaKEM.s:124: Error: no such instruction: `bl frame_dummy'
/tmp/ccDiaKEM.s:126: Error: no such instruction: `ldr pc,[sp],'
make[1]: *** [crtbegin.o] Error 1
make: *** [all-gcc] Error 2


	What's wrong with it? Is there anyone give a hand!  thank you very
much!
						Daniel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]