Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

Errors while building example 15

Posted by nagaraju on August 13, 2013
Hi ,
When i try to build the example15 from the real time kernel practical guide.
I am getting the following errors please clarify me.
I am building the examples with arm-none-linux-eabi-gcc.

/firma/nagaraju/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin/../lib/gcc/arm-none-eabi/4.6.3/../../../../arm-none-eabi/lib/thumb2/libc.a(lib_a-writer.o): In function `_write_r':
writer.c:(.text+0x16): undefined reference to `_write'
/firma/nagaraju/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin/../lib/gcc/arm-none-eabi/4.6.3/../../../../arm-none-eabi/lib/thumb2/libc.a(lib_a-closer.o): In function `_close_r':
closer.c:(.text+0x12): undefined reference to `_close'
/firma/nagaraju/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin/../lib/gcc/arm-none-eabi/4.6.3/../../../../arm-none-eabi/lib/thumb2/libc.a(lib_a-lseekr.o): In function `_lseek_r':
lseekr.c:(.text+0x16): undefined reference to `_lseek'
/firma/nagaraju/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin/../lib/gcc/arm-none-eabi/4.6.3/../../../../arm-none-eabi/lib/thumb2/libc.a(lib_a-readr.o): In function `_read_r':
readr.c:(.text+0x16): undefined reference to `_read'
collect2: ld returned 1 exit status
make: *** [Maschinen_Simulation.axf] Error 1

Thanks,
Nagaraju


RE: Errors while building example 15

Posted by nagaraju on August 13, 2013
Please clarify me how to resolve the above errors

RE: Errors while building example 15

Posted by Richard on August 13, 2013
Looks like the C libraries you are using require you to provide the implementation of some helper functions. I guess you are using newlib?

Does the 'linux' in the compiler name mean it runs or Linux, or builds for Linux. If it builds for Linux then it is not a compiler that can be used with FreeRTOS.

Regards.

RE: Errors while building example 15

Posted by nagaraju on August 14, 2013
I am building the example programmes with arm-none-eabi-gcc tool-chain. Please suggest me which version of libc i have to use for compiling.

I have used following lib for compiling the source.
http://ftp.gnu.org/gnu/libc/glibc-2.18.tar.bz2

RE: Errors while building example 15

Posted by Dave on August 14, 2013
That looks like a Linux library. Are you able to build the complete projects following the instructions in the book, with the tools described in the book?

RE: Errors while building example 15

Posted by nagaraju on August 14, 2013
No i am not using the tools described in the book.
I am running these examples on ti stellaris DK-LM3s9b96 board.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS