Hi, when i upload my sketch I get the following message: Code: opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-sbrkr.o): In function `_sbrk_r': sbrkr.c:(.text._sbrk_r+0xc): warning: undefined reference to `_sbrk' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-abort.o): In function `abort': abort.c:(.text.abort+0xa): warning: undefined reference to `_exit' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-signalr.o): In function `_kill_r': signalr.c:(.text._kill_r+0xe): warning: undefined reference to `_kill' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-signalr.o): In function `_getpid_r': signalr.c:(.text._getpid_r+0x2): warning: undefined reference to `_getpid' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-writer.o): In function `_write_r': writer.c:(.text._write_r+0x10): warning: undefined reference to `_write' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-closer.o): In function `_close_r': closer.c:(.text._close_r+0xc): warning: undefined reference to `_close' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-fstatr.o): In function `_fstat_r': fstatr.c:(.text._fstat_r+0xe): warning: undefined reference to `_fstat' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-isattyr.o): In function `_isatty_r': isattyr.c:(.text._isatty_r+0xc): warning: undefined reference to `_isatty' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-lseekr.o): In function `_lseek_r': lseekr.c:(.text._lseek_r+0x10): warning: undefined reference to `_lseek' /opt/arduino-1.5.4/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-readr.o): In function `_read_r': readr.c:(.text._read_r+0x10): warning: undefined reference to `_read' Sketch uses 60,244 bytes (11%) of program storage space. Maximum is 524,288 bytes. Inner erase and reset routine: successiful!! Erase flash Write 62728 bytes to flash [ ] 0% (0/246 pages) [= ] 4% (10/246 pages) [== ] 8% (20/246 pages) [=== ] 12% (30/246 pages) [==== ] 16% (40/246 pages) [====== ] 20% (50/246 pages) [======= ] 24% (60/246 pages) [======== ] 28% (70/246 pages) [========= ] 32% (80/246 pages) [========== ] 36% (90/246 pages) [============ ] 40% (100/246 pages) [============= ] 44% (110/246 pages) [============== ] 48% (120/246 pages) [=============== ] 52% (130/246 pages) [================= ] 56% (140/246 pages) [================== ] 60% (150/246 pages) [=================== ] 65% (160/246 pages) [==================== ] 69% (170/246 pages) [===================== ] 73% (180/246 pages) [======================= ] 77% (190/246 pages) [======================== ] 81% (200/246 pages) [========================= ] 85% (210/246 pages) [========================== ] 89% (220/246 pages) [============================ ] 93% (230/246 pages) [============================= ] 97% (240/246 pages) [==============================] 100% (246/246 pages) Verify 62728 bytes of flash [ ] 0% (0/246 pages) [= ] 4% (10/246 pages) [== ] 8% (20/246 pages) [=== ] 12% (30/246 pages) [==== ] 16% (40/246 pages) [====== ] 20% (50/246 pages) [======= ] 24% (60/246 pages) [======== ] 28% (70/246 pages) [========= ] 32% (80/246 pages) [========== ] 36% (90/246 pages) [============ ] 40% (100/246 pages) [============= ] 44% (110/246 pages) [============== ] 48% (120/246 pages) [=============== ] 52% (130/246 pages) [================= ] 56% (140/246 pages) [================== ] 60% (150/246 pages) [=================== ] 65% (160/246 pages) [==================== ] 69% (170/246 pages) [===================== ] 73% (180/246 pages) [======================= ] 77% (190/246 pages) [======================== ] 81% (200/246 pages) [========================= ] 85% (210/246 pages) [========================== ] 89% (220/246 pages) [============================ ] 93% (230/246 pages) [============================= ] 97% (240/246 pages) [==============================] 100% (246/246 pages) Verify successful Set boot flash true CPU reset. I am using Linaro Ubuntu 11.10 Release Version 1.3 I don't know why I am getting this error?
I was seeing this same generic warning: "undefined reference to '_sbrk'. After some searching around, I found a post in the Arduino forum that gave me a clue to the solution: http://forum.arduino.cc/index.php?topic=79595.240;wap2 The error seems to be related to the syscalls_sam3.c file, found in the directory /opt/arduino-1.5.4/hardware/arduino/sam/cores/arduino I compared my system's version of this file to the current version on Github (https://github.com/UDOOboard/Arduino/blob/udoo/hardware/arduino/sam/cores/arduino/syscalls_sam3.c), and I found a major difference. The entire "Exported functions" section of the file was commented out in my file. I'm not sure why it was like this (maybe to fix some other compatibility issue), but it seems like there's been an update to the Arduino IDE since I downloaded the Linaro Ubuntu 11.10 v1.3 image. To get rid of the warning, I simply removed the comments so the entire "Exported functions" section was visible.