This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem building an eCos application


Hi,

I have a problem building an eCos application.  Just a bit of background
info:

-I have eCos 3.0 installed in cygwin.
-I'm working on LPC1768 - since the default folder doesn't contain a
hardware template for LPC17xx, I had to download from anoncvs and use the
Olimex LPC1766 template with very little modification.
-set my repository accordingly (C:\cygwin\opt\ecos\ecos-3.0\repository\ecos)
-installed the arm-eabi toolchain when downloading eCos >> Build Tools Path
set as C:\cygwin\opt\ecos\gnutools\arm-eabi\bin.
-[extra info] also have Codesourcery G++ Lite (for ARM CM3) installed in a
folder outside of cygwin

When I tried to build a redboot package for my target, I was able to build
and download it successfully, as the Hyperterminal output printed out the
correct message (LPC1766 since I was using this template).

When I tried building a new eCos application, I was able to generate the
.ecc file, but in order for me to generate the .elf file, I had to run a
Makefile which contained only one main.c file.  I ran into this error when
running make in cygwin:

$ make
cc -I/opt/ecos/ecos-3.0/redboot/ecc_one/redboot_lpc17xx_install/include 
-nostartfiles
-L/opt/ecos/ecos-3.0/redboot/ecc_one/redboot_lpc17xx_install/lib -Ttarget.ld 
main.c   -o main
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
skipping incompatible
/opt/ecos/ecos-3.0/redboot/ecc_one/redboot_lpc17xx_install/lib/vectors.o
when searching for vectors.o
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
skipping incompatible
/opt/ecos/ecos-3.0/redboot/ecc_one/redboot_lpc17xx_install/lib/vectors.o
when searching for vectors.o
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot
find vectors.o
collect2: ld returned 1 exit status
<builtin>: recipe for target `main' failed
make: *** [main] Error 1

I read from elsewhere that the linker file is wrong in this case, but I
really have no idea where and how to modify my linker file.  I have checked
that C:\cygwin\usr\lib does not exist at all.  Any form of help is greatly
appreciated.

Thank you!
-- 
View this message in context: http://old.nabble.com/Problem-building-an-eCos-application-tp33108389p33108389.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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]