* GDB doesn't compile on GNU/Linux
@ 2006-11-28 21:11 Nick Roberts
2006-11-28 21:21 ` Daniel Jacobowitz
0 siblings, 1 reply; 8+ messages in thread
From: Nick Roberts @ 2006-11-28 21:11 UTC (permalink / raw)
To: gdb-patches
I can't get GDB to compile on GNU/Linux because of this change:
2006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
* config/nm-linux.h: Do not include <signal.h>.
The change below seems to fix it.
--
Nick http://www.inet.net.nz/~nickrob
2006-11-29 Nick Roberts <nickrob@snap.net.nz>
* linux-thread-db.c: Include <signal.h>.
*** linux-thread-db.c 29 Nov 2006 09:48:09 +1300 1.21
--- linux-thread-db.c 29 Nov 2006 10:03:35 +1300
***************
*** 39,44 ****
--- 39,46 ----
#include "gdbcore.h"
#include "linux-nat.h"
+ #include <signal.h>
+
#ifdef HAVE_GNU_LIBC_VERSION_H
#include <gnu/libc-version.h>
#endif
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB doesn't compile on GNU/Linux
2006-11-28 21:11 GDB doesn't compile on GNU/Linux Nick Roberts
@ 2006-11-28 21:21 ` Daniel Jacobowitz
2006-11-28 21:34 ` Ulrich Weigand
2006-11-28 21:37 ` Nick Roberts
0 siblings, 2 replies; 8+ messages in thread
From: Daniel Jacobowitz @ 2006-11-28 21:21 UTC (permalink / raw)
To: Nick Roberts; +Cc: gdb-patches
On Wed, Nov 29, 2006 at 10:07:06AM +1300, Nick Roberts wrote:
> 2006-11-29 Nick Roberts <nickrob@snap.net.nz>
>
> * linux-thread-db.c: Include <signal.h>.
OK. Wonder what implicitly pulled it in where Ulrich tested, but
it's not worth finding out.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB doesn't compile on GNU/Linux
2006-11-28 21:21 ` Daniel Jacobowitz
@ 2006-11-28 21:34 ` Ulrich Weigand
2006-11-28 21:37 ` Nick Roberts
1 sibling, 0 replies; 8+ messages in thread
From: Ulrich Weigand @ 2006-11-28 21:34 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: Nick Roberts, gdb-patches
Daniel Jacobowitz wrote:
> On Wed, Nov 29, 2006 at 10:07:06AM +1300, Nick Roberts wrote:
> > 2006-11-29 Nick Roberts <nickrob@snap.net.nz>
> >
> > * linux-thread-db.c: Include <signal.h>.
>
> OK. Wonder what implicitly pulled it in where Ulrich tested, but
> it's not worth finding out.
It looks like the s390 version of sys/ucontext.h includes signal.h,
and sys/ucontext.h gets pulled in by sys/procfs.h.
Sorry for the breakage ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB doesn't compile on GNU/Linux
2006-11-28 21:21 ` Daniel Jacobowitz
2006-11-28 21:34 ` Ulrich Weigand
@ 2006-11-28 21:37 ` Nick Roberts
2006-11-28 21:46 ` Ulrich Weigand
1 sibling, 1 reply; 8+ messages in thread
From: Nick Roberts @ 2006-11-28 21:37 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb-patches
Daniel Jacobowitz writes:
> On Wed, Nov 29, 2006 at 10:07:06AM +1300, Nick Roberts wrote:
> > 2006-11-29 Nick Roberts <nickrob@snap.net.nz>
> >
> > * linux-thread-db.c: Include <signal.h>.
>
> OK. Wonder what implicitly pulled it in where Ulrich tested, but
> it's not worth finding out.
In his case, linux-thread-db.c probably didn't get rebuilt after his changes.
Nothing in the Makefile seems to depend on nm-linux.h. I probably hadn't
updated this checkout since before 2006-10-19.
--
Nick http://www.inet.net.nz/~nickrob
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB doesn't compile on GNU/Linux
2006-11-28 21:37 ` Nick Roberts
@ 2006-11-28 21:46 ` Ulrich Weigand
2006-11-28 21:48 ` Daniel Jacobowitz
2006-11-28 21:57 ` Nick Roberts
0 siblings, 2 replies; 8+ messages in thread
From: Ulrich Weigand @ 2006-11-28 21:46 UTC (permalink / raw)
To: Nick Roberts; +Cc: Daniel Jacobowitz, gdb-patches
Nick Roberts wrote:
> Daniel Jacobowitz writes:
> > On Wed, Nov 29, 2006 at 10:07:06AM +1300, Nick Roberts wrote:
> > > 2006-11-29 Nick Roberts <nickrob@snap.net.nz>
> > >
> > > * linux-thread-db.c: Include <signal.h>.
> >
> > OK. Wonder what implicitly pulled it in where Ulrich tested, but
> > it's not worth finding out.
>
> In his case, linux-thread-db.c probably didn't get rebuilt after his changes.
Actually, I did a complete rebuild from scratch ;-) See the other mail
why it happened to work on s390-ibm-linux and s390x-ibm-linux anyway ...
> Nothing in the Makefile seems to depend on nm-linux.h. I probably hadn't
> updated this checkout since before 2006-10-19.
I thought the nm.h dependencies are set up automagically during configure?
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB doesn't compile on GNU/Linux
2006-11-28 21:46 ` Ulrich Weigand
@ 2006-11-28 21:48 ` Daniel Jacobowitz
2006-11-28 21:59 ` Ulrich Weigand
2006-11-28 21:57 ` Nick Roberts
1 sibling, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2006-11-28 21:48 UTC (permalink / raw)
To: Ulrich Weigand; +Cc: Nick Roberts, gdb-patches
On Tue, Nov 28, 2006 at 10:45:54PM +0100, Ulrich Weigand wrote:
> > Nothing in the Makefile seems to depend on nm-linux.h. I probably hadn't
> > updated this checkout since before 2006-10-19.
>
> I thought the nm.h dependencies are set up automagically during configure?
I don't think anything actually depends on nm.h, though, and we don't
have dependencies for things it includes either.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB doesn't compile on GNU/Linux
2006-11-28 21:46 ` Ulrich Weigand
2006-11-28 21:48 ` Daniel Jacobowitz
@ 2006-11-28 21:57 ` Nick Roberts
1 sibling, 0 replies; 8+ messages in thread
From: Nick Roberts @ 2006-11-28 21:57 UTC (permalink / raw)
To: Ulrich Weigand; +Cc: Daniel Jacobowitz, gdb-patches
> > In his case, linux-thread-db.c probably didn't get rebuilt after his
> > changes.
>
> Actually, I did a complete rebuild from scratch ;-) See the other mail
> why it happened to work on s390-ibm-linux and s390x-ibm-linux anyway ...
Sorry, "possibly" would have been more polite than "probably"!
> > Nothing in the Makefile seems to depend on nm-linux.h. I probably hadn't
> > updated this checkout since before 2006-10-19.
>
> I thought the nm.h dependencies are set up automagically during configure?
My understanding of the config is quite shallow but I just noticed that when I
did a rebuild of a more recent checkout from the top-level with make (make
"CFLAGS=-g3" actually) it compiled OK. This normally picks up any problems.
--
Nick http://www.inet.net.nz/~nickrob
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB doesn't compile on GNU/Linux
2006-11-28 21:48 ` Daniel Jacobowitz
@ 2006-11-28 21:59 ` Ulrich Weigand
0 siblings, 0 replies; 8+ messages in thread
From: Ulrich Weigand @ 2006-11-28 21:59 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: Nick Roberts, gdb-patches
Daniel Jacobowitz wrote:
> On Tue, Nov 28, 2006 at 10:45:54PM +0100, Ulrich Weigand wrote:
> > > Nothing in the Makefile seems to depend on nm-linux.h. I probably hadn't
> > > updated this checkout since before 2006-10-19.
> >
> > I thought the nm.h dependencies are set up automagically during configure?
>
> I don't think anything actually depends on nm.h, though,
Well, $(defs_h) includes $(nm_h), and just about everything depends on
$(defs_h). Indeed, if I touch config/s390/nm-linux.h (the main NAT_FILE
on s390-linux and symlinked to nm.h by configure), most everything gets
rebuilt.
> and we don't
> have dependencies for things it includes either.
*That* appears to be the problem. If I touch config/nm-linux.h,
nothing gets rebuilt at all.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-11-28 21:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-28 21:11 GDB doesn't compile on GNU/Linux Nick Roberts
2006-11-28 21:21 ` Daniel Jacobowitz
2006-11-28 21:34 ` Ulrich Weigand
2006-11-28 21:37 ` Nick Roberts
2006-11-28 21:46 ` Ulrich Weigand
2006-11-28 21:48 ` Daniel Jacobowitz
2006-11-28 21:59 ` Ulrich Weigand
2006-11-28 21:57 ` Nick Roberts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox