Re: Problem building an eCos application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hi John,

Thanks for the response, I realised my Makefile was the same as the link
initially, but I made some stupid changes (I actually had the last line, but
instead of main: main.o, I had $(TARGET):$(OBJECTS), which I had commented
out after defining my INSTALL_DIR on the top of my Makefile).

Basically, my first few lines in Makefile looks like this now:

include $(INSTALL_DIR)/include/pkgconf/ecos.mak

The rest of it is exactly the same as the link you gave me (I changed
$(TARGET):$(OBJECTS) to main: main.o just to be safe).  However, I got back
the same error which I have been getting before I did the stupid mistake (of
commenting out the $(TARGET):$(OBJECTS) definition).  Now the error is this:

arm-eabi-gcc -c -o main.o      
-I/opt/ecos/ecos-3.0/redboot/ecc_one/redboot_lpc17xx_install/include -Wall
-Wpointer-arith -Wstrict-prototypes -Wundef -Woverloaded-virtual
-Wno-write-strings -mcpu=cortex-m3 -mthumb -g -O2 -ffunction-sections
-fdata-sections -fno-rtti -fno-exceptions main.c
make: arm-eabi-gcc: Command not found
Makefile:28: recipe for target `main.o' failed
make: *** [main.o] Error 127

This is so weird.  When I checked my, I have the arm-eabi/bin
folder defined in my PATH:

ECOS_REPOSITORY=/opt/ecos/ecos-3.0/repository/ecos/packages ; export

PATH=/opt/ecos/ecos-3.0/tools/bin:$PATH ; export PATH

PATH=/opt/ecos/gnutools/arm-eabi/bin:$PATH ; export PATH

And I've also checked my ecos.mak file in the install directory to check
that ECOS_COMMAND_PREFIX is defined as 'arm-eabi-'.  I'm not sure if this is
an incorrect path problem, but I don't quite know where to go from here.

Thank you.


John Dallaway-2 wrote:
> az83 wrote:
> [ snip ]
> Your makefile is attempting building your code for native execution
> using "cc". You will need to build your eCos application for remote
> execution on LPC17xx using "arm-eabi-gcc". Take a look at the example
> makefile from eCos CVS which could be adapted to build your application
> code:
> I hope this helps...
> John Dallaway
> eCos maintainer
> -- 
> Before posting, please read the FAQ:
> and search the list archive:

View this message in context:
Sent from the Sourceware - ecos-discuss mailing list archive at

Before posting, please read the FAQ:
and search the list archive:

[Index of Archives]     [Linux Embedded]     [U-Boot V2]     [Linux Kernel]     [Linux MIPS]     [Linux ARM]     [Linux for the Blind]     [Linux Resources]     [Photo]     [Yosemite]     [ISDN Cause Codes]     [eCos Home]

  Powered by Linux