Newlib clash with libmaple - Olimexino-STM32

Started by paulj, July 29, 2014, 12:25:14 AM

Previous topic - Next topic

paulj

Good evening everyone!

I have an Olimexino-STM32 and I am trying to set up to use a command line tool chain. I am using the Gentoo linux distribution. I have installed the maple IDE and everything is working, but when I build a toolchain for arm-none-eabi, I am getting errors when compiling and linking libmaple:

/usr/lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/libc.a(lib_a-syscalls.o): In function `_sbrk':
/var/tmp/portage/cross-arm-none-eabi/newlib-2.0.0/work/newlib-2.0.0/newlib/libc/sys/arm/syscalls.c:499: undefined reference to `end'
collect2: error: ld returned 1 exit status
make: *** [build/maple.elf] Error 1


The versions: newlib-2.0.0, and gcc-4.7.3

Can anyone point me at information to get around this issue?

Many thanks!
Paul

PS - Moved this to the correct forum - apologies if you came across it in its previous location...!

paulj

I have worked around this issue by installing the tool chain from source in my local user directory. This means I can understand and control the compilation options more clearly. I can now compile libmaple and test programs, as well as upload them. I am now confirming the correctness of the program compilation.