This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Why gdb fail to make
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: hitlar dot india at gmail dot com, gdb at sourceware dot org
- Date: Wed, 15 May 2013 14:24:08 +0300
- Subject: Re: Why gdb fail to make
- References: <1368615049967-231905 dot post at n7 dot nabble dot com> <20130515111056 dot GI32170 at adacore dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Wed, 15 May 2013 15:10:56 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb@sourceware.org
>
> > In file included from ../../gdb-7.6.50-2/gdb/defs.h:803,
> > from ../../gdb-7.6.50-2/gdb/gdb.c:19:
> > ../../gdb-7.6.50-2/gdb/utils.h:283: warning: parameter has incomplete type
> > Makefile:979: recipe for target `gdb.o' failed
>
> I think that's from the following declaration in utils.h:
>
> enum errors;
Right.
> This was reported recently, and we discovered that this type of
> declaration was a GCC extension not supported by older versions
> of GCC.
>
> I thought we had this fixed, already, but it looks like not.
Sorry.
> You can probably work-around the problem by adding
>
> #include "exceptions.h"
>
> around the start of utils.h.
My understanding was that this is the solution, not a work-around.