This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Build problems; Please help
- To: nickc at cygnus dot com
- Subject: RE: Build problems; Please help
- From: "Jagat Brahma" <jpbrahma at hotmail dot com>
- Date: Mon, 24 Jul 2000 23:18:43 GMT
- Cc: gcc at gcc dot gnu dot org
>Hi Jagat,
>
>: I have build gas as part of the package binutils. It is build and
>: it is picking up the assembler that is build for the arm. Here is
>: the output with -v flag to the gcc.
>
>: cc1 /var/tmp/ccmGXaHg.i -mthumb -g -g1 -O2 -version -fno-inline -o
>: /var/tmp/ccH7l0Fp.s
>
>: as -o libgcc/thumb/_divdi3.o /var/tmp/ccH7l0Fp.s
>
>: /var/tmp/ccH7l0Fp.s:353: Error: bad instruction `push {r4,r5,r6,r7,lr}'
>: : -------------------------------------------------
>: This shows that it is picking up the correct assembler binary.
>
>OK - I was wrong, sorry.
>
>Presumably then the compiler is producing a bad assembler output,
>which is then being rejected. Can you show us what the assembler
>output around line 353 looks like ?
Here is the output
(the actual line number in the prev mail was a typo the actual line
number is 95)
====================================================
/home/jbrahma/local/zip/build-egcs/gcc/xgcc
-B/home/jbrahma/local/zip/build-egcs/gcc/
-B/home/jbrahma/local/arm-wrs-vxworks/bin/
-I/home/jbrahma/local/arm-wrs-vxworks/include -O2
-DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2 -isystem
./include -Dinhibit_libc -fno-inline -g1 -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I.
-I../../egcs-20000717/gcc -I../../egcs-20000717/gcc/config
-I../../egcs-20000717/gcc/../include -mthumb -DL_muldi3
-c ../../egcs-20000717/gcc/libgcc2.c -o libgcc/thumb/_muldi3.o
/var/tmp/ccAGbkAf.s: Assembler messages:
/var/tmp/ccAGbkAf.s:95: Error: bad instruction `push {r4,r5,r6,r7,lr}'
make[2]: *** [libgcc/thumb/_muldi3.o] Error 1
make[2]: Leaving directory `/home/jbrahma/local/zip/build-egcs/gcc'
-----------------------------------------------------------------
-----------------------libgcc2.s---------------------------------
.stabn 162,0,0,0
.align 0
.stabs "__muldi3:F(17,7)",36,0,187,___muldi3
.stabs "u:P(17,7)",64,0,186,0
.stabs "v:P(17,7)",64,0,186,2
.global ___muldi3
.thumb_func
___muldi3:
line 95:>>>> push {r4, r5, r6, r7, lr}
@ Inlined umul_ppmm
mov r5, r0, lsr #16
mov r7, r2, lsr #16
bic r4, r0, r5, lsl #16
bic lr, r2, r7, lsl #16
mul ip, r4, lr
mul lr, r5, lr
mul r4, r7, r4
mul r7, r5, r7
adds r4, lr, r4
addcs r7, r7, #65536
adds ip, ip, r4, lsl #16
adc r7, r7, r4, lsr #16
-----------------------------------------
Moreover if I remove the option -mthumb it works.
Again it tries to build the multilib with --enable-multilib=no.
Here is the configure script that I used.
../egcs-20000717/configure --prefix=/home/jbrahma/local
--target=arm-wrs-vxworks \
--with-newlib --disable-biendian --enable-languages="c c++"
--enable-multilib=no \
--with-cpu=strongarm110
Thanks
JP Brahma
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com