This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why gdb fail to make


> 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;

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.
You can probably work-around the problem by adding

        #include "exceptions.h"

around the start of utils.h. Or configure with --disable-werror.

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]