This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: R: R: Building a toolchain for LEON
- From: "Robert Cragie" <rcc at jennic dot com>
- To: "Michele Portolan" <michele dot Portolan at imag dot fr>
- Cc: <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 16 Apr 2003 19:18:18 +0100
- Subject: RE: [ECOS] R: [ECOS] R: [ECOS] Building a toolchain for LEON
> Shouldn't I compile and install eCos sources before?
'Installing' eCos sources is simply unzipping a snapshot or getting it from
CVS. The 'packages' subdirectory then becomes your 'repository'. The command
line configuration tool builds a set of Makefiles for your target. Then you
simply run 'make' to build the target library, which you then link with your
application - the Makefiles will pick the appropriate sources from the
repository.
You can either build the configuration tool yourself using native gcc or
download a pre-built binary - I have always used a pre-built binary on
Linux. Alternatively you can use the GUI based configuration tool. See the
website for more details.
> Up to now I have just the cvs repository and I am trying to compile and
> install it, I don't have a ecosconfig yet.
That's where you're going wrong. Reading 'configure.in' and 'README.host'
may help you understand more.
> Is my error trying to use the cross-compiler gcc instead of the classical
> pre-installed one?
You only need the native compiler to build the configuration tools (as
mentioned, you can alsoget these prebuilt from the eCos website). You need
the cross-compiler when you run 'make' as I have described.
Hope this helps
> Michele Portolan
>
> ----- Original Message -----
> From: Robert Cragie <rcc at jennic dot com>
> To: Michele Portolan <michele dot Portolan at imag dot fr>
> Cc: <ecos-discuss at sources dot redhat dot com>
> Sent: Wednesday, April 16, 2003 7:38 PM
> Subject: RE: [ECOS] R: [ECOS] Building a toolchain for LEON
>
>
> > I don't know what you're trying to do here but it looks wrong to me. Try
> to
> > do the following.
> >
> > 'sparc-rtems' is the correct toolchain to use for Leon, which I guess is
> > what 'leccs' gives you. Put the appropriate 'bin' directory in
> your path.
> > Don't do any symbolic links.
> > Don't run 'configure'
> > Make sure ECOS_REPOSITORY environment variable is set correctly to point
> to
> > the root of the eCos source tree 'packages' directory
> > Put the location of the command line 'ecosconfig' tool in your path.
> > Do the following (using command line tools) in a clean directory:
> >
> > ecosconfig new leon
> > ecosconfig tree
> > make
> >
> > Robert Cragie, Design Engineer
> > _______________________________________________________________
> > Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
> > http://www.jennic.com Tel: +44 (0) 114 281 2655
> > _______________________________________________________________
> >
> > > -----Original Message-----
> > > From: ecos-discuss-owner at sources dot redhat dot com
> > > [mailto:ecos-discuss-owner at sources dot redhat dot com]On Behalf Of Michele
> > > Portolan
> > > Sent: 16 April 2003 17:55
> > > To: Andrew Lunn
> > > Cc: ecos-discuss at sources dot redhat dot com
> > > Subject: [ECOS] R: [ECOS] Building a toolchain for LEON
> > >
> > >
> > > Thank you for the hint.
> > > I tried with leccs but it just doesn't seem to want to work!
> > > I followed all instructions, but in /opt/rtems/bin all files
> all called
> > > something like "sparc-rtems-gcc" and are therefore not used. I created
> > > simbolic links for all of them (like "ln sparc-rtems-gcc gcc") and put
> > > /opt/rtems/bin at the head of my path.
> > > Then, ecos/configure runs just nice, recognizing both C and C++
> > > compilers as
> > > cross-platform, but make stops at the very first compilation
> > > (ecos/host/infrs/asser.cxx) saying:
> > >
> > > in function 'void default_handler(const char *, unsigned int,
> const char
> > > *)':
> > > ecos/host/infrs/asser.cxx:254: implicit declaration of function 'int
> > > mkstemp(...)'
> > > ecos/host/infrs/asser.cxx:260: implicit declaration of function 'int
> > > close(...)'
> > >
> > > I'm using Cygwin under WIN98
> > >
> > > Thank you very much,
> > >
> > > Michele Portolan
> > >
> > > ----- Original Message -----
> > > From: Andrew Lunn <andrew dot lunn at ascom dot ch>
> > > To: Michele Portolan <ost_in_edhil at hotmail dot com>
> > > Cc: <ecos-discuss at sources dot redhat dot com>
> > > Sent: Wednesday, April 16, 2003 11:44 AM
> > > Subject: Re: [ECOS] Building a toolchain for LEON
> > >
> > >
> > > > On Wed, Apr 16, 2003 at 11:37:43AM +0200, Michele Portolan wrote:
> > > > > Does anyone knows how to build a toolchain for running eCos
> > > on the LEON
> > > > > processor?
> > > > > I do not seem able to find the correct TARGET for the "configure"
> > > > > command....
> > > >
> > > > Have you tried:
> > > >
> > > > http://www.gaisler.com/leccs.html
> > > >
> > > > Precompiled binaries and some documentation.
> > > >
> > > > Andrew
> > > >
> > > > --
> > > > Before posting, please read the FAQ:
> http://sources.redhat.com/fom/ecos
> > > > and search the list archive:
> http://sources.redhat.com/ml/ecos-discuss
> > > >
> > > >
> > >
> > >
> > > --
> > > Before posting, please read the FAQ:
> http://sources.redhat.com/fom/ecos
> > > and search the list archive: http://sources.redhat.com/ml/ecos-discuss
> > >
> > >
> >
> >
>
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>
>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss