Problems making newlib with CodeSourcery arm-none-eabi-gcc

Can Finner
Fri Apr 15 07:09:00 GMT 2011

On Wed, Apr 6, 2011 at 1:43 AM, Eigil Krogh Sørensen
<> wrote:
> Hi
> When I try to build the latest newlib from CVS with Sourcery G++ Lite 2010.09-51 I get this error:
> "
> ...
> Making all in arm
> make[9]: Entering directory `/opt/ecos/newlib/build/arm-none-eabi/armv6-m/newlib/libc/sys/arm'
> arm-none-eabi-gcc -B/opt/ecos/newlib/build/arm-none-eabi/armv6-m/newlib/ -isystem /opt/ecos/newlib/build/arm-none-eabi/armv6-m/newlib/targ-include -isystem /opt/ecos/newlib/src/newlib/libc/include -B/opt/ecos/newlib/build/arm-none-eabi/armv6-m/libgloss/arm -L/opt/ecos/newlib/build/arm-none-eabi/armv6-m/libgloss/libnosys -L/opt/ecos/newlib/src/libgloss/arm  -mthumb -march=armv6-m -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.19.0\" -DPACKAGE_STRING=\"newlib\ 1.19.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -I/opt/ecos/newlib/src/newlib/libc/sys/arm -DARM_RDI_MONITOR -fno-builtin     -DARM_RDI_MONITOR -fno-builtin   -g -O2  -mthumb -march=armv6-m -c -o lib_a-trap.o `test -f 'trap.S' || echo '/opt/ecos/newlib/src/newlib/libc/sys/arm/'`trap.S
> /opt/ecos/newlib/src/newlib/libc/sys/arm/trap.S: Assembler messages:
> /opt/ecos/newlib/src/newlib/libc/sys/arm/trap.S:88: Error: lo register required -- `sub ip,sp,ip'
> make[9]: *** [lib_a-trap.o] Error 1
> ...
> "
> configure is run this way (before make):
> CC=arm-none-eabi-gcc LD=arm-none-eabi-ld /opt/ecos/newlib/src/configure --prefix=`pwd` --target=arm-none-eabi --host=arm
> Is there anything I can do to solve that problem ?
Hi, I just did the work recently and might have a clue. Guess the
problem is that the support for armv6-m multilib is not in newlib yet.
further more, you might want to use
--disable-newlib-supplied-syscalls, since board-specific codes are
move into libgloss now. unfortunately, the problem exists in libgloss
too and armv6-m version multilib can not be built correctly.



More information about the Newlib mailing list