Welcome, Guest

Author Topic: Olimex-ODS-9.0-revK.exe compile problem with AT91SAM7S64  (Read 2949 times)

Tony

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Olimex-ODS-9.0-revK.exe compile problem with AT91SAM7S64
« 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

« Last Edit: January 20, 2013, 08:32:36 PM by Tony »

maria_olimex

  • Newbie
  • *
  • Posts: 36
  • Karma: +3/-0
Re: Olimex-ODS-9.0-revK.exe compile problem with AT91SAM7S64
« Reply #1 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