LPC2368 uip demo GCC linker fails

esemese wrote on Tuesday, January 13, 2009:

When I try to build this demo from the download I get linker errors such as:

mallocr.c:(.text+0x2c): undefined reference to `_sbrk_r’
mallocr.c:(.text+0x3c): undefined reference to `_sbrk_r’
mallocr.c:(.text+0x48): undefined reference to `_sbrk_r’


stdio.c:(.text+0x6e): undefined reference to `_lseek_r’
stdio.c:(.text+0x86): undefined reference to `_write_r’

This seems to refer to problems with missing code in newlib.

Can anyone point me to the resolution of this?
I am using the WINARM (GCC compiler).


woops_ wrote on Tuesday, January 13, 2009:

Looks like the GCC library is not defined. Dont know why it is trying to use read and write in any case. Maybe set configUSE_TRACE_FACILITY to 0 in FreeRTOSConfig.h.

You need to define the library used. Best to download yagarto and use that instead of winarm.

esemese wrote on Tuesday, January 13, 2009:

OK, I’ll try that.