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:
 
INSTALL_DIR=/opt/ecos/ecos-3.0/redboot/ecc_one/redboot_lpc17xx_install

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 ecosenv.sh, I have the arm-eabi/bin
folder defined in my PATH:

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

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.


-Azhar-


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:
> 
> http://ecos.sourceware.org/cgi-bin/cvsweb.cgi/ecos/examples/Makefile?rev=1&content-type=text/x-cvsweb-markup&cvsroot=ecos
> 
> I hope this helps...
> 
> John Dallaway
> eCos maintainer
> http://www.dallaway.org.uk/john
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Problem-building-an-eCos-application-tp33108389p33115070.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



[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