This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Re: Help! Some runtime problems & Linking


Thanks Nick. But still I couldn't figure out where I'm
going wrong. Please look below for the Makefile I'm
using for my application. Can someone point to me
where I'm going wrong. 

Thanks.

Rob.

---------
Makefile
---------

INSTALL_DIR=$$(INSTALL_DIR) # override on make command
line

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

XCC           = $(ECOS_COMMAND_PREFIX)gcc
XCXX          = $(XCC)
XLD           = $(XCC)
CFLAGS        = -g -Wall -mcpu=arm7tdmi
-I$(INSTALL_DIR)/include
CXXFLAGS      = $(CFLAGS)
LDFLAGS       = -nostartfiles -L$(INSTALL_DIR)/lib
-Ttarget.ld
OBJ = codes.o init.o io_lookup.o worker.o

#RULES

all: mcu

clean:
        -rm -f mcu mcu.o codes.o init.o io_lookup.o
worker.o

init.o: init.cc mcu_firmware.h
        $(XCC) $(LDFLAGS) $(CFLAGS) -c init.cc

codes.o: codes.cc mcu_firmware.h init.o
        $(XCC) $(LDFLAGS) $(CFLAGS) -c codes.cc

io_lookup.o: io_lookup.cc mcu_firmware.h init.o
        $(XCC) $(LDFLAGS) $(CFLAGS) -c io_lookup.cc

worker.o: worker.cc mcu_firmware.h init.o
        $(XCC) $(LDFLAGS) $(CFLAGS) -c worker.cc

mcu: mcu_firmware.cc mcu_firmware.h $(OBJ)
        $(XCC) $(LDFLAGS) $(CFLAGS) -o mcu
mcu_firmware.cc $(OBJ)








--- Nick Garnett <nickg@ecoscentric.com> wrote:

> Robert Allen <rba_ny@yahoo.com> writes:
> 
> > Hi guys,
> >     I have a multi-threaded application written in
> > C++. It compiled well. when I try to run it, this
> is
> > what I'm getting --
> > 
> > Program received signal SIGTRAP, Trace/breakpoint
> > trap.
> > [Switching to Thread 2]
> > 0x0000ede0 in _exit (n=24)
> >     at
> >
>
../../../../../../newlib-1.12.0/newlib/libc/sys/arm/syscalls.c:104
> > 104    
> >
>
../../../../../../newlib-1.12.0/newlib/libc/sys/arm/syscalls.c:
> > No such file or directory.
> >         in
> >
>
../../../../../../newlib-1.12.0/newlib/libc/sys/arm/syscalls.c
> > Current language:  auto; currently c
> > 
> > I don't understand this error. can someone please
> help
> > me on this.
> 
> This looks to me like you have built a stand-alone
> newlib application
> and not an eCos application. Go back and reread the
> User Guide.
> 
> -- 
> Nick Garnett                    eCos Kernel
> Architect
> http://www.ecoscentric.com/     The eCos and RedBoot
> experts
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

-- 
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]