From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manfred Bergmann To: gcc-help@gcc.gnu.org Subject: problems building gcc for arm-elf Date: Wed, 29 Aug 2001 06:50:00 -0000 Message-id: <200108291349.PAA08959@sunserv02.iis.fhg.de> X-SW-Source: 2001-08/msg00237.html Hi, tried to build gcc3.0.1 as a cross compiler for arm-elf target on a x86 hosted linux. this is my configure line: ../gcc-src-all/gcc-3.0.1/configure --prefix=/usr/local/gcc-301-arm-elf \ --target=arm-elf --enable-languages=c,c++ binutils version is: 2.10.91 The compiling stage goes well, but i get some assembler errors: /home/mberg/_transfer/gcc-build-arm-elf/gcc/xgcc -B/home/mberg/_transfer/gcc-build-arm-elf/gcc/ -B/usr/local/gcc-301-arm-elf/arm-elf/bin/ -B/usr/local/gcc-301-arm-elf/arm-elf/lib/ -isystem /usr/local/gcc-301-arm-elf/arm-elf/include -O2 -DCROSS_COMPILE -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -Dinhibit_libc -fno-inline -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-src-all/gcc-3.0.1/gcc -I../../gcc-src-all/gcc-3.0.1/gcc/. -I../../gcc-src-all/gcc-3.0.1/gcc/config -I../../gcc-src-all/gcc-3.0.1/gcc/../include -DL_udivsi3 -xassembler-with-cpp -c ../../gcc-src-all/gcc-3.0.1/gcc/config/arm/lib1funcs.asm -o libgcc/./_udivsi3.o /tmp/ccnvjvyR.s: Assembler messages: /tmp/ccnvjvyR.s:2: Error: Rest of line ignored. First ignored character is `@'. /tmp/ccnvjvyR.s:3: Error: Rest of line ignored. First ignored character is `@'. /tmp/ccnvjvyR.s:52: Error: no such instruction: `work .req r4@XXXX is this safe?' /tmp/ccnvjvyR.s:53: Error: no such instruction: `dividend .req r0' /tmp/ccnvjvyR.s:54: Error: no such instruction: `divisor .req r1' /tmp/ccnvjvyR.s:55: Error: no such instruction: `overdone .req r2' /tmp/ccnvjvyR.s:56: Error: no such instruction: `result .req r2' /tmp/ccnvjvyR.s:57: Error: no such instruction: `curbit .req r3' /tmp/ccnvjvyR.s:58: Error: no such instruction: `ip .req r12' /tmp/ccnvjvyR.s:59: Error: no such instruction: `sp .req r13' /tmp/ccnvjvyR.s:60: Error: no such instruction: `lr .req r14' /tmp/ccnvjvyR.s:61: Error: no such instruction: `pc .req r15' /tmp/ccnvjvyR.s:318: Error: expecting operand after ','; got nothing /tmp/ccnvjvyR.s:319: Error: no such instruction: `beq Ldiv0' /tmp/ccnvjvyR.s:320: Error: expecting operand after ','; got nothing /tmp/ccnvjvyR.s:321: Error: expecting operand after ','; got nothing /tmp/ccnvjvyR.s:322: Error: too many memory references for `cmp' /tmp/ccnvjvyR.s:323: Error: no such instruction: `blo Lgot_result' /tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is `@'. /tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is `@'. /tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is `@'. /tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is `@'. /tmp/ccnvjvyR.s:325: Error: expecting operand after ','; got nothing /tmp/ccnvjvyR.s:325: Error: no such instruction: `cmplo divisor,dividend' /tmp/ccnvjvyR.s:325: Error: no such instruction: `movlo divisor,divisor,lsl' /tmp/ccnvjvyR.s:325: Error: no such instruction: `movlo curbit,curbit,lsl' /tmp/ccnvjvyR.s:325: Error: no such instruction: `blo Loop1' /tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is `@'. /tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is `@'. /tmp/ccnvjvyR.s:325: Error: expecting operand after ','; got nothing /tmp/ccnvjvyR.s:325: Error: no such instruction: `cmplo divisor,dividend' /tmp/ccnvjvyR.s:325: Error: no such instruction: `movlo divisor,divisor,lsl' /tmp/ccnvjvyR.s:325: Error: no such instruction: `movlo curbit,curbit,lsl' /tmp/ccnvjvyR.s:325: Error: no such instruction: `blo Lbignum' /tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is `@'. /tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is `@'. /tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is `@'. /tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is `@'. /tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is `@'. /tmp/ccnvjvyR.s:325: Error: too many memory references for `cmp' /tmp/ccnvjvyR.s:325: Error: no such instruction: `subhs dividend,dividend,divisor' /tmp/ccnvjvyR.s:325: Error: no such instruction: `orrhs result,result,curbit' /tmp/ccnvjvyR.s:325: Error: too many memory references for `cmp' /tmp/ccnvjvyR.s:325: Error: no such instruction: `subhs dividend,dividend,divisor,lsr' /tmp/ccnvjvyR.s:325: Error: no such instruction: `orrhs result,result,curbit,lsr' /tmp/ccnvjvyR.s:325: Error: too many memory references for `cmp' /tmp/ccnvjvyR.s:325: Error: no such instruction: `subhs dividend,dividend,divisor,lsr' /tmp/ccnvjvyR.s:325: Error: no such instruction: `orrhs result,result,curbit,lsr' /tmp/ccnvjvyR.s:325: Error: too many memory references for `cmp' /tmp/ccnvjvyR.s:325: Error: no such instruction: `subhs dividend,dividend,divisor,lsr' /tmp/ccnvjvyR.s:325: Error: no such instruction: `orrhs result,result,curbit,lsr' /tmp/ccnvjvyR.s:325: Error: expecting operand after ','; got nothing /tmp/ccnvjvyR.s:325: Error: no such instruction: `movnes curbit,curbit,lsr' /tmp/ccnvjvyR.s:325: Error: no such instruction: `movne divisor,divisor,lsr' /tmp/ccnvjvyR.s:325: Error: no such instruction: `bne Loop3' /tmp/ccnvjvyR.s:327: Error: too many memory references for `mov' /tmp/ccnvjvyR.s:328: Error: too many memory references for `mov' /tmp/ccnvjvyR.s:332: Error: invalid char '[' beginning operand 2 `[sp' /tmp/ccnvjvyR.s:332: Error: no such instruction: `bl __div0 (PLT)' /tmp/ccnvjvyR.s:332: Error: expecting operand after ','; got nothing /tmp/ccnvjvyR.s:332: Error: no such instruction: `ldmia sp!,{pc}' make[2]: *** [libgcc/./_udivsi3.o] Error 1 make[2]: Leaving directory `/home/mberg/_transfer/gcc-build-arm-elf/gcc' make[1]: *** [stmp-multilib] Error 2 make[1]: Leaving directory `/home/mberg/_transfer/gcc-build-arm-elf/gcc' make: *** [all-gcc] Error 2 can somebody tell me how to fix this? thx in advance... Manfred Bergmann