* [ECOS] Help! Some runtime problems
@ 2004-07-30 8:43 Robert Allen
2004-08-02 9:48 ` Nick Garnett
0 siblings, 1 reply; 7+ messages in thread
From: Robert Allen @ 2004-07-30 8:43 UTC (permalink / raw)
To: ecos-discuss
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.
Thanks.
Rob.
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now.
http://messenger.yahoo.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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ECOS] Help! Some runtime problems
2004-07-30 8:43 [ECOS] Help! Some runtime problems Robert Allen
@ 2004-08-02 9:48 ` Nick Garnett
2004-08-02 17:41 ` [ECOS] Help! Some runtime problems & Linking Robert Allen
0 siblings, 1 reply; 7+ messages in thread
From: Nick Garnett @ 2004-08-02 9:48 UTC (permalink / raw)
To: Robert Allen; +Cc: ecos-discuss
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
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ECOS] Help! Some runtime problems & Linking
2004-08-02 9:48 ` Nick Garnett
@ 2004-08-02 17:41 ` Robert Allen
2004-08-02 18:14 ` Nick Garnett
2004-08-02 18:34 ` Gary Thomas
0 siblings, 2 replies; 7+ messages in thread
From: Robert Allen @ 2004-08-02 17:41 UTC (permalink / raw)
To: ecos-discuss; +Cc: Nick Garnett
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ECOS] Help! Some runtime problems & Linking
2004-08-02 17:41 ` [ECOS] Help! Some runtime problems & Linking Robert Allen
@ 2004-08-02 18:14 ` Nick Garnett
2004-08-02 18:34 ` Gary Thomas
1 sibling, 0 replies; 7+ messages in thread
From: Nick Garnett @ 2004-08-02 18:14 UTC (permalink / raw)
To: Robert Allen; +Cc: ecos-discuss
Robert Allen <rba_ny@yahoo.com> writes:
> 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.
You've left out ECOS_GLOBAL_CFLAGS and ECOS_GLOBAL_LDFLAGS which may
have options that affect things. In particular the absence of
-nostdlib, which is in ECOS_GLOBAL_LDFLAGS, is probably the cause of
your problems.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ECOS] Help! Some runtime problems & Linking
2004-08-02 17:41 ` [ECOS] Help! Some runtime problems & Linking Robert Allen
2004-08-02 18:14 ` Nick Garnett
@ 2004-08-02 18:34 ` Gary Thomas
2004-08-02 18:54 ` Robert Allen
1 sibling, 1 reply; 7+ messages in thread
From: Gary Thomas @ 2004-08-02 18:34 UTC (permalink / raw)
To: Robert Allen; +Cc: eCos Discussion, Nick Garnett
On Mon, 2004-08-02 at 11:41, Robert Allen wrote:
> 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.
Try using my build_Makefile scripts - this makes building eCos
application makefiles much simpler (and they work :-)
http://www.mlbassoc.com/examples/
There are a couple of different examples, using different approaches
to Makefile construction.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ECOS] Help! Some runtime problems & Linking
2004-08-02 18:34 ` Gary Thomas
@ 2004-08-02 18:54 ` Robert Allen
2004-08-03 21:40 ` Robert Allen
0 siblings, 1 reply; 7+ messages in thread
From: Robert Allen @ 2004-08-02 18:54 UTC (permalink / raw)
To: ecos-discuss
Thanks Gary and Nick. Now it looks fine.
Rob.
--- Gary Thomas <gary@mlbassoc.com> wrote:
> On Mon, 2004-08-02 at 11:41, Robert Allen wrote:
> > 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.
>
> Try using my build_Makefile scripts - this makes
> building eCos
> application makefiles much simpler (and they work
> :-)
> http://www.mlbassoc.com/examples/
> There are a couple of different examples, using
> different approaches
> to Makefile construction.
>
> --
> Gary Thomas <gary@mlbassoc.com>
> MLB Associates
>
>
> --
> Before posting, please read the FAQ:
> http://ecos.sourceware.org/fom/ecos
> and search the list archive:
> http://ecos.sourceware.org/ml/ecos-discuss
>
>
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ECOS] Help! Some runtime problems & Linking
2004-08-02 18:54 ` Robert Allen
@ 2004-08-03 21:40 ` Robert Allen
0 siblings, 0 replies; 7+ messages in thread
From: Robert Allen @ 2004-08-03 21:40 UTC (permalink / raw)
To: ecos-discuss
Hi,
I followed the advice given by Gary and Nick. It
makes fine and the program looks to eecute fine. But
its only when I specify some breakpoints, I get weird
things, like I'm not being able to see the step by
step execution. Sometimes I get the following error:
Breakpoint 1, cyg_user_start () at mcu_firmware.cc:35
35 mcu_firmware.cc: No such file or directory.
in mcu_firmware.cc
I have attached the makefile below.
Thanks for your help in advance.
Rob.
Makefile:
include $(INSTALL_DIR)/include/pkgconf/ecos.mak
XCC = $(ECOS_COMMAND_PREFIX)gcc
XCXX = $(XCC)
XLD = $(XCC)
CFLAGS = -I$(INSTALL_DIR)/include
CXXFLAGS = $(CFLAGS)
LDFLAGS = -nostartfiles -L$(INSTALL_DIR)/lib
-Ttarget.ld
OBJ = codes.o init.o io_lookup.o worker.o
iterator.o
# RULES
.PHONY: all clean
all: mcu
clean:
-rm -f $(OBJ) mcu_firmware.o mcu_firmware
a.out mcu
init.o: init.cc mcu_firmware.h
$(XCC) -c init.cc -o init.o $(CFLAGS)
$(ECOS_GLOBAL_CFLAGS)
io_lookup.o: io_lookup.cc init.o mcu_firmware.h
$(XCC) -c io_lookup.cc -o io_lookup.o
$(CFLAGS) $(ECOS_GLOBAL_CFLAGS)
iterator.o: iterator.cc init.o mcu_firmware.h
$(XCC) -c iterator.cc -o iterator.o $(CFLAGS)
$(ECOS_GLOBAL_CFLAGS)
codes.o: codes.cc init.o mcu_firmware.h
$(XCC) -c codes.cc -o codes.o $(CFLAGS)
$(ECOS_GLOBAL_CFLAGS)
worker.o: worker.cc mcu_firmware.h
$(XCC) -c worker.cc -o worker.o $(CFLAGS)
$(ECOS_GLOBAL_CFLAGS)
mcu_firmware.o: mcu_firmware.cc $(OBJ) mcu_firmware.h
$(XCC) -c mcu_firmware.cc -o mcu_firmware.o
$(CFLAGS) $(ECOS_GLOBAL_CFLAGS)
mcu_firmware: mcu_firmware.o mcu_firmware.h
$(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o
mcu_firmware mcu_firmware.o $(OBJ)
--- Robert Allen <rba_ny@yahoo.com> wrote:
> Thanks Gary and Nick. Now it looks fine.
>
> Rob.
>
> --- Gary Thomas <gary@mlbassoc.com> wrote:
>
> > On Mon, 2004-08-02 at 11:41, Robert Allen wrote:
> > > 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.
> >
> > Try using my build_Makefile scripts - this makes
> > building eCos
> > application makefiles much simpler (and they work
> > :-)
> > http://www.mlbassoc.com/examples/
> > There are a couple of different examples, using
> > different approaches
> > to Makefile construction.
> >
> > --
> > Gary Thomas <gary@mlbassoc.com>
> > MLB Associates
> >
> >
> > --
> > Before posting, please read the FAQ:
> > http://ecos.sourceware.org/fom/ecos
> > and search the list archive:
> > http://ecos.sourceware.org/ml/ecos-discuss
> >
> >
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> 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
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-08-03 21:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-30 8:43 [ECOS] Help! Some runtime problems Robert Allen
2004-08-02 9:48 ` Nick Garnett
2004-08-02 17:41 ` [ECOS] Help! Some runtime problems & Linking Robert Allen
2004-08-02 18:14 ` Nick Garnett
2004-08-02 18:34 ` Gary Thomas
2004-08-02 18:54 ` Robert Allen
2004-08-03 21:40 ` Robert Allen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).