public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] ecos-SWtools
@ 1999-09-21  6:45 Michael Martin
  1999-09-21  8:10 ` [ECOS] ecos-SWtools Bart Veer
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Martin @ 1999-09-21  6:45 UTC (permalink / raw)
  To: ecos-discuss

Hi all,

i am new at eCOS and i tried to install version 1.2 recently
on my Linux box. I'm running Suse Linux 6.1. I encountered a few
problems when compiling the SWtools (ecosSWtools-990319-src).
I applied the RedHat Patch, cause i had trouble to compile
expect. I do not know, if applying the patch was a good idea,
i only saw that some tcl and expect source files have been
patched and so i thought this patch would also work for my
Suse Linux, but it didn't. Has any one else run into troubles
compiling expect? (i'm sorry that i currently can not provide
the error messages i got)
Second on Suse Linux 6.1 there are 2 further problems. The
first is that there is no libtermcap.so in /usr/lib, so you
have to provide a link manually ( and do ldconfig). Second
the include file debugreg.h, which is needed building the debugger,
is not in /usr/src/include/linux but in /usr/src/include/asm,
so you have to copy or link it appropriately. I think i saw these
problems fixed in Suse 6.2.
Third i have another question: Most of the tools for the host
are already there on my system. Can i delete these entries in
the configure.in file (under host_libs and host_tools) without
worrying about dependencies, i.e. which of the host_libs and
host_tools are absolutely needed?

Thanks in advance

 Michael

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

* [ECOS] Re: ecos-SWtools
  1999-09-21  6:45 [ECOS] ecos-SWtools Michael Martin
@ 1999-09-21  8:10 ` Bart Veer
  1999-09-21  8:35   ` Michael Martin
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Veer @ 1999-09-21  8:10 UTC (permalink / raw)
  To: michamartin; +Cc: ecos-discuss

>>>>> "Michael" == Michael Martin <michamartin@lucent.com> writes:

    Michael> Hi all,
    Michael> i am new at eCOS and i tried to install version 1.2 recently
    Michael> on my Linux box. I'm running Suse Linux 6.1. I encountered a few
    Michael> problems when compiling the SWtools (ecosSWtools-990319-src).
    Michael> I applied the RedHat Patch, cause i had trouble to compile
    Michael> expect. I do not know, if applying the patch was a good idea,
    Michael> i only saw that some tcl and expect source files have been
    Michael> patched and so i thought this patch would also work for my
    Michael> Suse Linux, but it didn't. Has any one else run into troubles
    Michael> compiling expect? (i'm sorry that i currently can not provide
    Michael> the error messages i got)
    Michael> Second on Suse Linux 6.1 there are 2 further problems. The
    Michael> first is that there is no libtermcap.so in /usr/lib, so you
    Michael> have to provide a link manually ( and do ldconfig). Second
    Michael> the include file debugreg.h, which is needed building the debugger,
    Michael> is not in /usr/src/include/linux but in /usr/src/include/asm,
    Michael> so you have to copy or link it appropriately. I think i saw these
    Michael> problems fixed in Suse 6.2.
    Michael> Third i have another question: Most of the tools for the host
    Michael> are already there on my system. Can i delete these entries in
    Michael> the configure.in file (under host_libs and host_tools) without
    Michael> worrying about dependencies, i.e. which of the host_libs and
    Michael> host_tools are absolutely needed?

The versions of Tcl and expect provided with the eCos toolchain are
getting somewhat old, and recent releases of Linux have managed to
break builds in different and confusing ways. However these recent
Linux releases should all come with up to date versions of the
necessary tools anyway, so there is little point in rebuilding the
versions shipped with eCos.

To make sure that you have an up to date version of Tcl already
installed, run /usr/bin/tclsh:

$ /usr/bin/tclsh
% info patchlevel
8.0.3
% exit
$

Any version of Tcl >= 8.0.3 should be fine. The simplest way to
proceed is to delete the tcl, tk, expect and dejagnu subdirectories
from an ecosSWtools source tree and then re-run configure. Please let
me know how you get on.

Some of the other directories may not be useful if you have a recent
Linux installation. I suspect that bison, byacc, diff, dosrel, flex,
gprof, make, patch, texinfo, and winsup all fall into this category,
but I could be wrong.

gdb is more of an issue, but from your description it appears that the
problems are with Suse 6.1 rather than with gdb itself. Your
workarounds seem fine. Alternatively you could try the gdb 4.18
release from http://sourceware.cygnus.com/gdb/index.html , that is a
more recent version.

Bart Veer // eCos net maintainer

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

* [ECOS] Re: ecos-SWtools
  1999-09-21  8:10 ` [ECOS] ecos-SWtools Bart Veer
@ 1999-09-21  8:35   ` Michael Martin
  1999-09-21  9:51     ` Bart Veer
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Martin @ 1999-09-21  8:35 UTC (permalink / raw)
  To: bartv; +Cc: ecos-discuss

Bart Veer wrote:
> 
> >>>>> "Michael" == Michael Martin <michamartin@lucent.com> writes:
> 
>     Michael> Hi all,
>     Michael> i am new at eCOS and i tried to install version 1.2 recently
>     Michael> on my Linux box. I'm running Suse Linux 6.1. I encountered a few
>     Michael> problems when compiling the SWtools (ecosSWtools-990319-src).
>     Michael> I applied the RedHat Patch, cause i had trouble to compile
>     Michael> expect. I do not know, if applying the patch was a good idea,
>     Michael> i only saw that some tcl and expect source files have been
>     Michael> patched and so i thought this patch would also work for my
>     Michael> Suse Linux, but it didn't. Has any one else run into troubles
>     Michael> compiling expect? (i'm sorry that i currently can not provide
>     Michael> the error messages i got)
>     Michael> Second on Suse Linux 6.1 there are 2 further problems. The
>     Michael> first is that there is no libtermcap.so in /usr/lib, so you
>     Michael> have to provide a link manually ( and do ldconfig). Second
>     Michael> the include file debugreg.h, which is needed building the debugger,
>     Michael> is not in /usr/src/include/linux but in /usr/src/include/asm,
>     Michael> so you have to copy or link it appropriately. I think i saw these
>     Michael> problems fixed in Suse 6.2.
>     Michael> Third i have another question: Most of the tools for the host
>     Michael> are already there on my system. Can i delete these entries in
>     Michael> the configure.in file (under host_libs and host_tools) without
>     Michael> worrying about dependencies, i.e. which of the host_libs and
>     Michael> host_tools are absolutely needed?
> 
> The versions of Tcl and expect provided with the eCos toolchain are
> getting somewhat old, and recent releases of Linux have managed to
> break builds in different and confusing ways. However these recent
> Linux releases should all come with up to date versions of the
> necessary tools anyway, so there is little point in rebuilding the
> versions shipped with eCos.
> 
> To make sure that you have an up to date version of Tcl already
> installed, run /usr/bin/tclsh:
> 
> $ /usr/bin/tclsh
> % info patchlevel
> 8.0.3
> % exit
> $
> 
> Any version of Tcl >= 8.0.3 should be fine. The simplest way to
> proceed is to delete the tcl, tk, expect and dejagnu subdirectories
> from an ecosSWtools source tree and then re-run configure. Please let
> me know how you get on.
> 
> Some of the other directories may not be useful if you have a recent
> Linux installation. I suspect that bison, byacc, diff, dosrel, flex,
> gprof, make, patch, texinfo, and winsup all fall into this category,
> but I could be wrong.
> 
> gdb is more of an issue, but from your description it appears that the
> problems are with Suse 6.1 rather than with gdb itself. Your
> workarounds seem fine. Alternatively you could try the gdb 4.18
> release from http://sourceware.cygnus.com/gdb/index.html , that is a
> more recent version.
> 
> Bart Veer // eCos net maintainer

Thanks for your help, but i do not think that deleting subdirectories
from the ecosSWtools source directory would do fine. I tried this and
got error messages from configure about missing subdirectories and so on.
Therefore i think you better delete the tools you do not want to build
from either the Makefile or even better from the configure.in file
(host_libs and host_tools section). Therefore my question, if you have
to take into account any dependencies, as for example do some of the
target tools need some of the host tools or host libs already built?

regards
  Michael

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

* [ECOS] Re: ecos-SWtools
  1999-09-21  8:35   ` Michael Martin
@ 1999-09-21  9:51     ` Bart Veer
  0 siblings, 0 replies; 4+ messages in thread
From: Bart Veer @ 1999-09-21  9:51 UTC (permalink / raw)
  To: michamartin; +Cc: ecos-discuss

>>>>> "Michael" == Michael Martin <michamartin@lucent.com> writes:

    <snip>
    >> Any version of Tcl >= 8.0.3 should be fine. The simplest way to
    >> proceed is to delete the tcl, tk, expect and dejagnu subdirectories
    >> from an ecosSWtools source tree and then re-run configure. Please let
    >> me know how you get on.
    <snip>

    Michael> Thanks for your help, but i do not think that deleting
    Michael> subdirectories from the ecosSWtools source directory
    Michael> would do fine. I tried this and got error messages from
    Michael> configure about missing subdirectories and so on.
    Michael> Therefore i think you better delete the tools you do not
    Michael> want to build from either the Makefile or even better
    Michael> from the configure.in file (host_libs and host_tools
    Michael> section). Therefore my question, if you have to take into
    Michael> account any dependencies, as for example do some of the
    Michael> target tools need some of the host tools or host libs
    Michael> already built?

I have just taken the ecosSWtools-990319-src.tar.bz2 package, removed
the tcl, tk, expect and dejagnu subdirectories, and did a configure
and make for an mn10300 target. This completed without problems, and
there was no need to change the configure.in file.

For other directories things are not so clear-cut. For example
libiberty will be needed by just about everything, so deleting that
subdirectory would be a bad idea. For something like texinfo, a
typical Linux installation will already have a full installation of
this. I suspect that it is perfectly safe to delete the texinfo
subdirectory before running configure but I could be wrong. Systems
other than Linux are less likely to have texinfo already installed, so
we have to provide it as part of the overall toolchain. The actual
dependencies between the various components are complicated and
subject to change. Short of a detailed examination or actually trying
a build, there is no easy way of knowing what can and cannot be safely
deleted - the list I gave in my previous message is a best guess.

Bart Veer // eCos net maintainer

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

end of thread, other threads:[~1999-09-21  9:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-21  6:45 [ECOS] ecos-SWtools Michael Martin
1999-09-21  8:10 ` [ECOS] ecos-SWtools Bart Veer
1999-09-21  8:35   ` Michael Martin
1999-09-21  9:51     ` Bart Veer

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