public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] gnupro toolkit?
@ 2002-03-24 20:25 Tom Marshall
  2002-03-24 21:14 ` michael shiloh
  0 siblings, 1 reply; 8+ messages in thread
From: Tom Marshall @ 2002-03-24 20:25 UTC (permalink / raw)
  To: ecos-discuss

I am trying to setup eCos for an x86 target.  I have successfully built the
eCos host tools from CVS and installed them, configured the "pc" target, and
here's what I get when I run make:

i386-elf-gcc [...] /usr/local/ecos/packages/services/memalloc/common/current/src/heapgen.cpp -o heapgeninc.tcl
make[1]: i386-elf-gcc: Command not found
make[1]: *** [heapgeninc.tcl] Error 127

I assume that I need the GNUPro tools for compiling stuff on the target
machine but I can't find them anywhere.

-- 
Unplug and get connected: http://www.seattlewireless.net/

-- 
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] 8+ messages in thread

* Re: [ECOS] gnupro toolkit?
  2002-03-24 20:25 [ECOS] gnupro toolkit? Tom Marshall
@ 2002-03-24 21:14 ` michael shiloh
  2002-03-24 23:05   ` Tom Marshall
  0 siblings, 1 reply; 8+ messages in thread
From: michael shiloh @ 2002-03-24 21:14 UTC (permalink / raw)
  To: Tom Marshall; +Cc: ecos-discuss

On Sun, 24 Mar 2002, Tom Marshall wrote:

i'm searching through my notes to see how i did this, but i 
just want to make sure i understand, please confirm my
question below:




> I am trying to setup eCos for an x86 target.  I have successfully built the
> eCos host tools from CVS and installed them, configured the "pc" target, and
> here's what I get when I run make:
> 
> i386-elf-gcc [...] /usr/local/ecos/packages/services/memalloc/common/current/src/heapgen.cpp -o heapgeninc.tcl
> make[1]: i386-elf-gcc: Command not found
> make[1]: *** [heapgeninc.tcl] Error 127
> 
> I assume that I need the GNUPro tools for 
> compiling stuff on the target machine 

you mean cross compiling to the target machine, right?
         ^^^^^           ^^

> but I can't find them anywhere.



-- 
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] 8+ messages in thread

* Re: [ECOS] gnupro toolkit?
  2002-03-24 21:14 ` michael shiloh
@ 2002-03-24 23:05   ` Tom Marshall
  2002-03-24 23:18     ` michael shiloh
  2002-04-03 19:49     ` Jonathan Larmour
  0 siblings, 2 replies; 8+ messages in thread
From: Tom Marshall @ 2002-03-24 23:05 UTC (permalink / raw)
  To: michael shiloh; +Cc: ecos-discuss

On Sun, Mar 24, 2002 at 08:34:04PM -0800, michael shiloh wrote:
> On Sun, 24 Mar 2002, Tom Marshall wrote:
> 
> i'm searching through my notes to see how i did this, but i 
> just want to make sure i understand, please confirm my
> question below:
> 
> 
> 
> 
> > I am trying to setup eCos for an x86 target.  I have successfully built the
> > eCos host tools from CVS and installed them, configured the "pc" target, and
> > here's what I get when I run make:
> > 
> > i386-elf-gcc [...] /usr/local/ecos/packages/services/memalloc/common/current/src/heapgen.cpp -o heapgeninc.tcl
> > make[1]: i386-elf-gcc: Command not found
> > make[1]: *** [heapgeninc.tcl] Error 127
> > 
> > I assume that I need the GNUPro tools for 
> > compiling stuff on the target machine 
> 
> you mean cross compiling to the target machine, right?
>          ^^^^^           ^^

Yes .. I assume my normal Linux "gcc" won't work because it's going to build
binaries for Linux/glibc.  If I was compiling for another CPU such as ARM or
SuperH, I would certainly need a cross-compiler for it.  I assume the same
will probably apply for the "pc" target .. if nothing else, for the
different crt0 code, linking and such.

> 
> > but I can't find them anywhere.
> 
> 

-- 
Unplug and get connected: http://www.seattlewireless.net/

-- 
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] 8+ messages in thread

* Re: [ECOS] gnupro toolkit?
  2002-03-24 23:05   ` Tom Marshall
@ 2002-03-24 23:18     ` michael shiloh
  2002-03-24 23:37       ` michael shiloh
  2002-04-03 19:49     ` Jonathan Larmour
  1 sibling, 1 reply; 8+ messages in thread
From: michael shiloh @ 2002-03-24 23:18 UTC (permalink / raw)
  To: Tom Marshall; +Cc: ecos-discuss

right, just wanted to make sure we're on the same
page.

there are indeed cross versions of all the hostside
tools. i'll hunt through my notes to see how and 
where i got them. 

have you searched the ecos website and the mailing
list archives? i'm pretty sure this is discussed in
one or the other.

you might also look through all the 'latest' ecos
documentation, as they call it: 

  http://sources.redhat.com/ecos/docs-latest/

i seem to recall that in all this body of knowledge
there were conflicting instructions for getting 
and building the cross tools, which is why i want
to search my notes. 

good luck,

michael

fact i thing that's 
On Sun, 24 Mar 2002, Tom Marshall wrote:

> On Sun, Mar 24, 2002 at 08:34:04PM -0800, michael shiloh wrote:
> > On Sun, 24 Mar 2002, Tom Marshall wrote:
> > 
> > i'm searching through my notes to see how i did this, but i 
> > just want to make sure i understand, please confirm my
> > question below:
> > 
> > 
> > 
> > 
> > > I am trying to setup eCos for an x86 target.  I have successfully built the
> > > eCos host tools from CVS and installed them, configured the "pc" target, and
> > > here's what I get when I run make:
> > > 
> > > i386-elf-gcc [...] /usr/local/ecos/packages/services/memalloc/common/current/src/heapgen.cpp -o heapgeninc.tcl
> > > make[1]: i386-elf-gcc: Command not found
> > > make[1]: *** [heapgeninc.tcl] Error 127
> > > 
> > > I assume that I need the GNUPro tools for 
> > > compiling stuff on the target machine 
> > 
> > you mean cross compiling to the target machine, right?
> >          ^^^^^           ^^
> 
> Yes .. I assume my normal Linux "gcc" won't work because it's going to build
> binaries for Linux/glibc.  If I was compiling for another CPU such as ARM or
> SuperH, I would certainly need a cross-compiler for it.  I assume the same
> will probably apply for the "pc" target .. if nothing else, for the
> different crt0 code, linking and such.
> 
> > 
> > > but I can't find them anywhere.
> > 
> > 
> 
> 

-- 


-- 
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] 8+ messages in thread

* Re: [ECOS] gnupro toolkit?
  2002-03-24 23:18     ` michael shiloh
@ 2002-03-24 23:37       ` michael shiloh
  2002-03-24 23:46         ` Tom Marshall
  0 siblings, 1 reply; 8+ messages in thread
From: michael shiloh @ 2002-03-24 23:37 UTC (permalink / raw)
  To: Tom Marshall; +Cc: ecos-discuss

On Sun, 24 Mar 2002, michael shiloh wrote:

> > Yes .. I assume my normal Linux "gcc" won't work because it's going to build
> > binaries for Linux/glibc.  If I was compiling for another CPU such as ARM or
> > SuperH, I would certainly need a cross-compiler for it.  I assume the same
> > will probably apply for the "pc" target .. if nothing else, for the
> > different crt0 code, linking and such.

ok, here's what i think i did. this is untested from
notes i took when i installed, hopefully any mistakes
will be pretty obvious. note that you need both c and 
c++.

good luck:


get:

    ftp://ftp.gnu.org/gnu/binutils/binutils-2.11.2.tar.gz
    ftp://ftp.keystealth.org/pub/gnu/gcc/gcc-3.0.3/gcc-core-3.0.3.tar.gz
    ftp://ftp.keystealth.org/pub/gnu/gcc/gcc-3.0.3/gcc-g++-3.0.3.tar.gz
    ftp://ftp.keystealth.org/pub/gnu/gdb/gdb-5.1.1.tar.gz

  into /wherever/gcc

untar source:

  mkdir -p /src/binutils /src/gcc /src/gdb

  cd /src/binutils
  tar -zxvf /wherever/gcc/binutils-2.11.2.tar.gz

  cd /src/gcc
  tar -zxvf /wherever/gcc/gcc-3.0.3.tar.gz
  tar -zxvf /wherever/gcc/gcc-core-3.0.3.tar.gz
  tar -zxvf /wherever/gcc/gcc-g++-3.0.3.tar.gz

  cd /src/gdb
  tar -zxvf /wherever/gcc//gdb-5.1.1.tar.gz


1.Configure the GNU Binary Utilities:
  
  mkdir -p /tmp/build/binutils
  cd /tmp/build/binutils
  /bin/rm -rf /tmp/build/binutils/*
  /src/binutils/binutils-2.11.2/configure --target=i386-elf \
  --prefix=/tools \
  --exec-prefix=/tools/H-i686-pc-linux-gnu \
  -v |& tee configure.out 

2.Build and install the GNU Binary Utilities:

  make -w all |& tee make.out 
  make -w install 

3.Configure GCC, ensuring that the GNU Binary Utilities are
at the head of the PATH:

  set path = ( /tools/H-i686-pc-linux-gnu/bin $path )
  mkdir -p /tmp/build/gcc
  /bin/rm -rf /tmp/build/gcc/*
  cd /tmp/build/gcc 
  /src/gcc/gcc-3.0.3/configure --target=i386-elf \
  --prefix=/tools \
  --exec-prefix=/tools/H-i686-pc-linux-gnu \
  --with-gnu-as --with-gnu-ld --with-newlib \
  -v |& tee configure.out

4.Build and install the GNU Binary Utilities:

  make -w all-gcc LANGUAGES="c c++" |& tee make.out
  make -w install-gcc LANGUAGES="c c++" |& tee make.out



-- 
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] 8+ messages in thread

* Re: [ECOS] gnupro toolkit?
  2002-03-24 23:37       ` michael shiloh
@ 2002-03-24 23:46         ` Tom Marshall
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Marshall @ 2002-03-24 23:46 UTC (permalink / raw)
  To: michael shiloh; +Cc: ecos-discuss

> ok, here's what i think i did. this is untested from
> notes i took when i installed, hopefully any mistakes
> will be pretty obvious. note that you need both c and 
> c++.
> 
> good luck:
> 
> 
> get:
> 
>     ftp://ftp.gnu.org/gnu/binutils/binutils-2.11.2.tar.gz
>     ftp://ftp.keystealth.org/pub/gnu/gcc/gcc-3.0.3/gcc-core-3.0.3.tar.gz
>     ftp://ftp.keystealth.org/pub/gnu/gcc/gcc-3.0.3/gcc-g++-3.0.3.tar.gz
>     ftp://ftp.keystealth.org/pub/gnu/gdb/gdb-5.1.1.tar.gz

Okay so you got the GNU tools directly, not some "GNUPro" thing?  That helps
a lot.  I'll give it a try, thanks.

-- 
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] 8+ messages in thread

* Re: [ECOS] gnupro toolkit?
  2002-03-24 23:05   ` Tom Marshall
  2002-03-24 23:18     ` michael shiloh
@ 2002-04-03 19:49     ` Jonathan Larmour
  1 sibling, 0 replies; 8+ messages in thread
From: Jonathan Larmour @ 2002-04-03 19:49 UTC (permalink / raw)
  To: Tom Marshall; +Cc: michael shiloh, ecos-discuss

Tom Marshall wrote:
> 
> > > make[1]: i386-elf-gcc: Command not found
> > > make[1]: *** [heapgeninc.tcl] Error 127
> > >
> > > I assume that I need the GNUPro tools for
> > > compiling stuff on the target machine
> >
> > you mean cross compiling to the target machine, right?
> >          ^^^^^           ^^
> 
> Yes .. I assume my normal Linux "gcc" won't work because it's going to build
> binaries for Linux/glibc. [snip]

Actually that does tend to work if you have a Linux host (not Cygwin). Set
CYGBLD_GLOBAL_PREFIX to "" in your eCos configuration and it will use the
native tools. eCos overrides the crt0, linker script etc. We've certainly
had it working like this before.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

-- 
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] 8+ messages in thread

* [ECOS] GNUPro Toolkit ?
  2001-06-08 10:33 [ECOS] win2k download utility Lewin A.R.W. Edwards
@ 2001-06-08 10:48 ` Mont Pierce
  0 siblings, 0 replies; 8+ messages in thread
From: Mont Pierce @ 2001-06-08 10:48 UTC (permalink / raw)
  To: ecos-discuss

Is the unsupported GNUPro Toolkit still free?

Where can I download it from?

I'm using Win98/ME to develop applications for PowerPC MPC860SAR.


Thanks,
Mont


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

end of thread, other threads:[~2002-04-04  3:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-24 20:25 [ECOS] gnupro toolkit? Tom Marshall
2002-03-24 21:14 ` michael shiloh
2002-03-24 23:05   ` Tom Marshall
2002-03-24 23:18     ` michael shiloh
2002-03-24 23:37       ` michael shiloh
2002-03-24 23:46         ` Tom Marshall
2002-04-03 19:49     ` Jonathan Larmour
  -- strict thread matches above, loose matches on Subject: below --
2001-06-08 10:33 [ECOS] win2k download utility Lewin A.R.W. Edwards
2001-06-08 10:48 ` [ECOS] GNUPro Toolkit ? Mont Pierce

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