Olimex Support Forum

ARM => ATMEL => Topic started by: Tony on January 20, 2013, 08:30:57 PM

Title: Olimex-ODS-9.0-revK.exe compile problem with AT91SAM7S64
Post by: Tony on January 20, 2013, 08:30:57 PM
Hello,

I'm trying to compile SW for AT91SAM7S64. I'm having problems compiling strtod() and gcvt() functions. I'm getting this error:

c:/olimexods/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-none-eabi\newlib\libc\reent/../../../../../newlib-1.18.0/newlib/libc/reent/sbrkr.c:60: undefined reference to `_sbrk'

Are there any workarounds for these?

Br. Tony

Title: Re: Olimex-ODS-9.0-revK.exe compile problem with AT91SAM7S64
Post by: maria_olimex on January 22, 2013, 05:01:07 PM
Hello,

You seem to have two yagarto installations on you machine (one is from the OlimexODS installation). Is that intentional? Maybe the compiler is getting default source files mixed up.

Also, undefined references are sometimes inclusion or a linking problem. I'm guessing your source files have all the right #include directives, but there is a problem with the makefile itself. Please give some more information(if you can) about the makefile and the whole project. If you'd like to take a look at everything about makefiles, here is the documentation:
http://sunsite.ualberta.ca/Documentation/Gnu/make-3.79/html_chapter/make_4.html
or another useful site:
http://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html

Best regards,
Maria/OLIMEX