This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: MIPS build failure
- From: "Maciej W. Rozycki" <macro at codesourcery dot com>
- To: Michael Eager <eager at eagerm dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>, binutils <binutils at sourceware dot org>, Daniel Jacobowitz <drow at false dot org>, Richard Sandiford <rdsandiford at googlemail dot com>
- Date: Tue, 19 Feb 2013 14:52:34 +0000
- Subject: Re: MIPS build failure
- References: <51226C66.3010304__32532.8041137711$1361210543$gmane$org@eagerm.com> <874nh9xx61.fsf@talisman.default> <5122815C.1000406@eagerm.com>
On Mon, 18 Feb 2013, Michael Eager wrote:
> > There are special makefile rules to handle this:
> >
> > micromips-opc.lo: micromips-opc.c
> > $(LTCOMPILE) $(NO_WMISSING_FIELD_INITIALIZERS) -c -o $@ $<
> >
> > mips-opc.lo: mips-opc.c
> > $(LTCOMPILE) $(NO_WMISSING_FIELD_INITIALIZERS) -c -o $@ $<
> >
> > mips16-opc.lo: mips16-opc.c
> > $(LTCOMPILE) $(NO_WMISSING_FIELD_INITIALIZERS) -c -o $@ $<
> >
> > Not sure why it isn't working for gdb though.
>
> Thanks. That was enough of a clue.
>
> I was picking up an old version of gcc which did not support
> -Wno-missing-field-initializers. The makefile set
> $NO_WMISSING_FIELD_INITIALIZERS to null.
That looks like an issue to me, what version of GCC was that? Perhaps we
should resort to -Wno-error for NO_WMISSING_FIELD_INITIALIZERS if the
actual option is not supported.
Maciej