11 years, 6 months ago.

off-line compiler and SDK source code gives errors.

Hello everyone,

Im using the LPC1768 mbed and the SDK from source code (not the SDK binary files). When I compile wtih the on-lilne compiler eveything works fine. When I export to GCC (Code Sourcery) format and try to compile off-line I get the following error. It looks like the compiler is getting hung up on the '-Os' option when trying to compile the startup file. It does not like that option.

(As a side note, IF I export the project with the SDK as a BINARY file, the project compiles fine off-line. This tells me that my code-sourcery compiling environment is working good)

Anyone have any clues as to what is going on? Thanks!

C:\mbed>cs-make
arm-none-eabi-as  -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions 
-mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections  -

DTARGET_LPC1768 -DTOOLCHAIN_GCC_CS -DNDEBUG -o 
mbed-NXP/cmsis/LPC1768/GCC_CS/startup_LPC17xx.o mbed-NXP/cmsis/LPC1768/GCC_CS/startup_LPC17xx.s

arm-none-eabi-as: unrecognized option `-Os'

cs-make: *** [mbed-NXP/cmsis/LPC1768/GCC_CS/startup_LPC17xx.o] Error 1

1 Answer

11 years, 6 months ago.

I think this is a bug. I submitted a bug report here:

https://mbed.org/forum/bugs-suggestions/topic/4401/