public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Canadian builds of Insight.
@ 1999-08-05 16:58 Brendan Simon
  1999-08-05 19:10 ` James Ingham
  0 siblings, 1 reply; 3+ messages in thread
From: Brendan Simon @ 1999-08-05 16:58 UTC (permalink / raw)
  To: Insight (GDB GUI)

I downloaded insight-19990802.tar.gz last night and manged to compile a
native linux version and a native-powerpc-eabi version (ie.
cross-debugger running on linux but targeting powerpc-eabi).  Great.

I tried doing a Canadian build (build=i586-linux, host=i586-cygwin32,
target=powerpc-eabi).  It eventually died complaining that it couldn't
find termcap.h or tcap.h (one of these anyway).  Now I'm not sure if I
configured it wrong or am missing a file.  I think I used the following
configure options (--with-headers=<newlib-path>/newlib/libc/include
--with-newlib) which may have confused it.
Do I need to use these options ?
Does the canadian build use the header files from the native cross-tools
directories (eg. /usr/local/gcc/powerpc-eabi/include in my case) ?

I'll try a few options later on tonight but I thought I'll ask some of
the experts so I don't get into too much trouble.

Thanks,
Brendan Simon.

BTW: I compiled with egcs-1.1.2 and there are TONS of warnings.  I feel
real uncomfortable when projects compile with warnings.  Do the GNU
projects have policies regarding warning free code ?


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

* Canadian builds of Insight.
  1999-08-05 16:58 Canadian builds of Insight Brendan Simon
@ 1999-08-05 19:10 ` James Ingham
  0 siblings, 0 replies; 3+ messages in thread
From: James Ingham @ 1999-08-05 19:10 UTC (permalink / raw)
  To: brendan; +Cc: Insight (GDB GUI)

Brendan,

 > 
 > I downloaded insight-19990802.tar.gz last night and manged to compile a
 > native linux version and a native-powerpc-eabi version (ie.
 > cross-debugger running on linux but targeting powerpc-eabi).  Great.
 > 
 > I tried doing a Canadian build (build=i586-linux, host=i586-cygwin32,
 > target=powerpc-eabi).  It eventually died complaining that it couldn't
 > find termcap.h or tcap.h (one of these anyway).  Now I'm not sure if I
 > configured it wrong or am missing a file.  I think I used the following
 > configure options (--with-headers=<newlib-path>/newlib/libc/include
 > --with-newlib) which may have confused it.
 > Do I need to use these options ?
 > Does the canadian build use the header files from the native cross-tools
 > directories (eg. /usr/local/gcc/powerpc-eabi/include in my case) ?

You should not need these options, the cross compiler should be able
to figure them all out for you.

Anyway, newer versions of readline use termcap, so you will have to
have the termcap libraries in the target support for your cross
compiler.  Newer versions of Cygwin do include it (like the snapshots
from sourceware) so you should be able to copy the libtermcap bits
from there.  There should be appropriate configury bits there as well...

 > 
 > BTW: I compiled with egcs-1.1.2 and there are TONS of warnings.  I feel
 > real uncomfortable when projects compile with warnings.  Do the GNU
 > projects have policies regarding warning free code ?
 > 

No doubt, Gdb still has way too many warnings.  These crept up over
time when we were not being vigilant.  We are slowly working to fix
all the warnings; this is a side project particularly of Andrew
Cagney's, who has managed to fix quite a few already.  If you want
to pitch in and whack a few yourself, that would be great :-)

Gdb also has a quite extensive test suite (~ 5000 tests).  We monitor
this pretty closely, and that is our main guarantor of correct
functioning for Gdb.  So even though warnings are definitely a BAD
THING, I am not as worried as I would be if we didn't run the tests
quite often...

Jim

-- 
++==++==++==++==++==++==++==++==++==++==++==++==++==++==++==++==++==++==++
Jim Ingham                                              jingham@cygnus.com
Cygnus Solutions Inc.

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

* Re: Canadian builds of Insight.
@ 1999-08-05 21:29 Andrew Cagney
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 1999-08-05 21:29 UTC (permalink / raw)
  To: insight

Jim Ingham wrote:
>  Brendan Simon wrote:
>  > BTW: I compiled with egcs-1.1.2 and there are TONS of warnings.  I feel
>  > real uncomfortable when projects compile with warnings.  Do the GNU
>  > projects have policies regarding warning free code ?
>  > 
> 
> No doubt, Gdb still has way too many warnings.  These crept up over
> time when we were not being vigilant.  We are slowly working to fix
> all the warnings; this is a side project particularly of Andrew
> Cagney's, who has managed to fix quite a few already.  If you want
> to pitch in and whack a few yourself, that would be great :-)

FYI, I've successfully compiled GDB using the configury:

	--enable-build-warnings=\
-Werror\
,-Wreturn-type\
,-Wcomment\
,-Wtrigraphs\
,-Wparentheses\
,-Wpointer-arith\

Not much but it is at least a start. Last time I looked at it I was
actually stumbling across warnings in included header files found in the
readline directory  Since Elena has upgraded readline to 4.0 those
problems are hopefully fixed.

	Andrew

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

end of thread, other threads:[~1999-08-05 21:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-05 16:58 Canadian builds of Insight Brendan Simon
1999-08-05 19:10 ` James Ingham
1999-08-05 21:29 Andrew Cagney

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