This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


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

Building newlib for arm - setjmp.S and thumb?


After successfully building an arm toolchain with binutils-2.10.1 and
 gcc-core-20010320 for arm-elf, I tried to configure and make
newlib-1.9.0 as follows:

# ../newlib-1.9.0/configure --host=i686-pc-linux-gnu --target=arm-elf

The make proceeded for awhile before it had problems with assembling
setjmp.S.
The appropriate makefile chatter is shown below:

****** Makefile chatter *******
arm-elf-gcc -B/var/ftp/packages/ArmGnutools/src/newlib-arm-elf/arm-elf/newli
b/ -
isystem
/var/ftp/packages/ArmGnutools/src/newlib-arm-elf/arm-elf/newlib/targ-inc
lude -isystem
/var/ftp/packages/ArmGnutools/src/newlib-1.9.0/newlib/libc/include
 -DPACKAGE=\"newlib\" -DVERSION=\"1.9.0\"  -I. -I../../../../../../../newlib
-1.9
.0/newlib/libc/sys/arm  -O2 -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY -DARM_RDI_M
ONIT
OR -I./../../../targ-include -I./../../../../../../../newlib-1.9.0/newlib/li
bc/s
ys/arm/../../../libc/include -fno-builtin      -g -O2  -mthumb -c
../../../../..
/../../newlib-1.9.0/newlib/libc/sys/arm/setjmp.S
../../../../../../../newlib-1.9.0/newlib/libc/sys/arm/setjmp.S: Assembler
messag
es:
../../../../../../../newlib-1.9.0/newlib/libc/sys/arm/setjmp.S:97: Error:
r15 no
t allowed here
../../../../../../../newlib-1.9.0/newlib/libc/sys/arm/setjmp.S:117: Error:
r15 n
ot allowed here
make[6]: *** [setjmp.o] Error 1
make[6]: Leaving directory
`/var/ftp/packages/ArmGnutools/src/newlib-arm-elf/arm
***********************************

It looks like it is trying to compile for thumb (note the -mthumb flag), but
I don't think that the arm thumb architecture lets you use register r15.
Does anyone know how can I tell the configure script that I want plain arm,
and not thumb output? Shouldn't the toolchain be setup for plain arm use in
the first place?

I'd appreciate any clues you folks might have.
-Kurt Jensen
Quantum Design


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