Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 1 month ago.
mbed RTOS GCC compile error
Hi everyone,
i got some compiling error. I'm just export http://mbed.org/handbook/CMSIS-RTOS import to IDE build, everything seems to be OK exept one err..
Can anyone know anything about that ?
Sys. config :
Win8 x64 gcc-arm-none-eabi 4.7.2 GNU Make 3.81
using Eclipse and yagarto
Console output:
**** Build of configuration Default for project mBed_RTos_test **** make all arm-none-eabi-as -mcpu=cortex-m3 -mthumb -o mbed-rtos/rtx/LPC1768/GCC_ARM/SVC_Table.o mbed-rtos/rtx/LPC1768/GCC_ARM/SVC_Table.s arm-none-eabi-as -mcpu=cortex-m3 -mthumb -o mbed-rtos/rtx/LPC1768/GCC_ARM/HAL_CM3.o mbed-rtos/rtx/LPC1768/GCC_ARM/HAL_CM3.s arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu99 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtx/rt_Task.o mbed-rtos/rtx/rt_Task.c arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu99 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtx/rt_System.o mbed-rtos/rtx/rt_System.c arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu99 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtx/rt_List.o mbed-rtos/rtx/rt_List.c arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu99 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtx/rt_Time.o mbed-rtos/rtx/rt_Time.c arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu99 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtx/rt_Semaphore.o mbed-rtos/rtx/rt_Semaphore.c arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu99 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtx/rt_Mailbox.o mbed-rtos/rtx/rt_Mailbox.c arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu99 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtx/rt_CMSIS.o mbed-rtos/rtx/rt_CMSIS.c arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu99 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtx/HAL_CM.o mbed-rtos/rtx/HAL_CM.c arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu99 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtx/rt_Robin.o mbed-rtos/rtx/rt_Robin.c arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu99 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtx/rt_MemBox.o mbed-rtos/rtx/rt_MemBox.c arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu99 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtx/RTX_Conf_CM.o mbed-rtos/rtx/RTX_Conf_CM.c arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu99 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtx/rt_Event.o mbed-rtos/rtx/rt_Event.c arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu99 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtx/rt_Mutex.o mbed-rtos/rtx/rt_Mutex.c arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu++98 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o main.o main.cpp arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu++98 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtos/Thread.o mbed-rtos/rtos/Thread.cpp arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu++98 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtos/RtosTimer.o mbed-rtos/rtos/RtosTimer.cpp arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu++98 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtos/Semaphore.o mbed-rtos/rtos/Semaphore.cpp arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DTARGET_LPC1768 -DTARGET_M3 -DTARGET_NXP -DTARGET_LPC176X -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M3 -DARM_MATH_CM3 -std=gnu++98 -I. -I./mbed-rtos -I./mbed-rtos/rtx -I./mbed-rtos/rtx/LPC1768 -I./mbed-rtos/rtx/LPC1768/GCC_ARM -I./mbed-rtos/rtos -I./mbed -I./mbed/LPC1768 -I./mbed/LPC1768/GCC_ARM -o mbed-rtos/rtos/Mutex.o mbed-rtos/rtos/Mutex.cpp arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float -T./mbed/LPC1768/GCC_ARM/LPC1768.ld -L./mbed/LPC1768/GCC_ARM -o cmsis_rtos_basic.elf mbed-rtos/rtx/LPC1768/GCC_ARM/SVC_Table.o mbed-rtos/rtx/LPC1768/GCC_ARM/HAL_CM3.o mbed-rtos/rtx/rt_Task.o mbed-rtos/rtx/rt_System.o mbed-rtos/rtx/rt_List.o mbed-rtos/rtx/rt_Time.o mbed-rtos/rtx/rt_Semaphore.o mbed-rtos/rtx/rt_Mailbox.o mbed-rtos/rtx/rt_CMSIS.o mbed-rtos/rtx/HAL_CM.o mbed-rtos/rtx/rt_Robin.o mbed-rtos/rtx/rt_MemBox.o mbed-rtos/rtx/RTX_Conf_CM.o mbed-rtos/rtx/rt_Event.o mbed-rtos/rtx/rt_Mutex.o main.o mbed-rtos/rtos/Thread.o mbed-rtos/rtos/RtosTimer.o mbed-rtos/rtos/Semaphore.o mbed-rtos/rtos/Mutex.o mbed/LPC1768/GCC_ARM/cmsis_nvic.o mbed/LPC1768/GCC_ARM/system_LPC17xx.o mbed/LPC1768/GCC_ARM/core_cm3.o mbed/LPC1768/GCC_ARM/startup_LPC17xx.o -lcpp -lcapi -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -lcpp -lcapi -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys arm-none-eabi-gcc: error: nano.specs: No such file or directory make: *** [cmsis_rtos_basic.elf] Error 1 **** Build Finished ****
1 Answer
11 years, 1 month ago.
Hi, thx for answer.. i'v got yagarto-bu-2.23.1_gcc-4.7.2-c-c++_nl-1.20.0_gdb-7.5.1_eabi_20121222 and yagarto-tools-20121018-setup
Hello Ales Tabarka,
what version of GCC are you using? What is your toolchain?
With ARM GCC 4.7, you are not supposed to receive that error.
posted by Martin Kojtal 30 Sep 2013Fixed :) i need to update GCC from version 4.7.2 to 4.7.3
posted by Ales Tabarka 03 Oct 2013