public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] New User Question
@ 2010-12-21 18:36 Peter Smith
  2010-12-21 19:56 ` Sergei Gavrikov
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Smith @ 2010-12-21 18:36 UTC (permalink / raw)
  To: ecos-discuss

Having discovered eCos I thought I would try to build and run the
examples on the synthetic linux target.

I created the build tree using ecosconfig new linux followed by ecosconfig tree.

I then built the tree without errors.

My problem came when attempting to build the examples as shown below.

psmith@ubuntu:~/examples$ make INSTALL_DIR=$HOME/linux/install
gcc -c -o hello.o -I/home/psmith/linux/install/include -Wall
-Wpointer-arith -Wstrict-prototypes -Wundef -Woverloaded-virtual
-Wno-write-strings -g -O2 -ffunction-sections -fdata-sections
-fno-rtti -fno-exceptions hello.c
cc1: warning: command line option "-Woverloaded-virtual" is valid for
C++/ObjC++ but not for C
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++
but not for C
gcc -nostartfiles -L/home/psmith/linux/install/lib -Ttarget.ld -g
-nostdlib -Wl,--gc-sections -Wl,-static -o hello hello.o
target.ld:33 cannot move location counter backwards (from
000000000200cd10 to 00000000007f32f0)
collect2: ld returned 1 exit status
make: *** [hello] Error 1

I am using Ubuntu 10.10 by the way

Thanks in advance
Peter Smith

-- 
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] 9+ messages in thread
* RE: [ECOS] New user question
@ 2003-11-07 12:22 Richardson, Anthony
  2003-11-07 12:38 ` Andrew Lunn
  0 siblings, 1 reply; 9+ messages in thread
From: Richardson, Anthony @ 2003-11-07 12:22 UTC (permalink / raw)
  To: ecos-discuss

Andrew Lunn wrote:
> On Wed, Nov 05, 2003 at 07:53:11AM -0600, Richardson, Anthony wrote:
> > The problem is that I don't seem to have the "target sim" available
> > in gdb:
> 
> The sim target is only available for a few processor types. i386 is
> not one of them. 
> 
> Look at the appendix in 
> http://ecos.sourceware.org/docs-latest/user-guide/ecos-user-guide.html
> 
> It lists a number of architecture simulators. Or consider using linux
> sythn target,

I was able to build the linux synth target, but get an error when I try
to
build the tests.  Specifically:

gcc -g -nostdlib -Wl,-static -Wl,--fatal-warnings 
-L/home/ar63/ecos/work/linuxsynth_install/lib -Ttarget.ld 
-o
/home/ar63/ecos/work/linuxsynth_install/tests/infra/v2_0/tests/cxxsupp
tests/cxxsupp.o
make[1]: Leaving directory
`/home/ar63/ecos/work/linuxsynth_build/infra/v2_0'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/libsupc++.a(new_op.o)(.text._Zn
wj+0xb7): In function `operator new(unsigned)':
make: Leaving directory `/home/ar63/ecos/work/linuxsynth_build'
: undefined reference to `_Unwind_Resume'

Any suggestions?

Thanks
Tony Richardson

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: [ECOS] New user question
@ 2003-11-06 15:32 Richardson, Anthony
  2003-11-06 16:43 ` Andrew Lunn
  0 siblings, 1 reply; 9+ messages in thread
From: Richardson, Anthony @ 2003-11-06 15:32 UTC (permalink / raw)
  To: ecos-discuss



> Andrew Lunn wrote:
> On Wed, Nov 05, 2003 at 07:53:11AM -0600, Richardson, Anthony wrote:
> > The problem is that I don't seem to have the "target sim" available
> > in gdb:
> 
> The sim target is only available for a few processor types. i386 is
> not one of them. 
> 
> Look at the appendix in 
> http://ecos.sourceware.org/docs-latest/user-guide/ecos-user-guide.html
> 
> It lists a number of architecture simulators. Or consider using linux
> sythn target,

Thanks for responding.  I decided to try to use the TX39 simulator.
But apparently I need to build the build tools for that?  Is there
a recommended simulator that uses one of the supplied build tool sets?

Tony

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [ECOS] New user question
@ 2003-11-05 13:53 Richardson, Anthony
  2003-11-05 14:06 ` Andrew Lunn
  0 siblings, 1 reply; 9+ messages in thread
From: Richardson, Anthony @ 2003-11-05 13:53 UTC (permalink / raw)
  To: ecos-discuss

I'm betting this falls into the "stupid user error" category ...

I downloaded and installed everything under Windows/cygwin.
I've gone through the process of building the test as directed
in the manual.

The problem is that I don't seem to have the "target sim" available
in gdb:

$ i386-elf-gdb -nw i386_install/tests/kernel/v2_0/tests/bin_sem0
GNU gdb 5.3 (eCosCentric)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "--host=i686-pc-cygwin --target=i386-elf"...
(gdb) target sim
Undefined target command: "sim".  Try "help target".

========================================================================
===

Sure enough "help target" doesn't list "sim" as an available target.
Did I miss a configuration option when I was building the tests or
the library?


(I also tried just "run" from the gdb prompt, but then I get a
"Don't know how to run.  Try "help target"." error)

Thanks,
Tony Richardson



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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-12-22 20:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-21 18:36 [ECOS] New User Question Peter Smith
2010-12-21 19:56 ` Sergei Gavrikov
2010-12-22 20:12   ` Peter Smith
  -- strict thread matches above, loose matches on Subject: below --
2003-11-07 12:22 [ECOS] New user question Richardson, Anthony
2003-11-07 12:38 ` Andrew Lunn
2003-11-06 15:32 Richardson, Anthony
2003-11-06 16:43 ` Andrew Lunn
2003-11-05 13:53 Richardson, Anthony
2003-11-05 14:06 ` Andrew Lunn

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).