Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: MIPS build failure
       [not found] <51226C66.3010304__32532.8041137711$1361210543$gmane$org@eagerm.com>
@ 2013-02-18 19:03 ` Richard Sandiford
  2013-02-18 19:31   ` Michael Eager
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Sandiford @ 2013-02-18 19:03 UTC (permalink / raw)
  To: Michael Eager; +Cc: gdb, binutils, Daniel Jacobowitz

Michael Eager <eager@eagerm.com> writes:
> Hi --
>
> I'm seeing failures building gdb-head for MIPS targets.  The
> failure are warnings while compiling the MIPS opcode tables.  Gdb
> is built with -Werror and the tables have missing initializers for
> the 'exclusions' field.
>
> Is anyone else seeing this build failure?  If not, what are
> you doing different from a minimal configuration?

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.

Richard


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

* Re: MIPS build failure
  2013-02-18 19:03 ` MIPS build failure Richard Sandiford
@ 2013-02-18 19:31   ` Michael Eager
  2013-02-19 14:52     ` Maciej W. Rozycki
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Eager @ 2013-02-18 19:31 UTC (permalink / raw)
  To: gdb, binutils, Daniel Jacobowitz, rdsandiford

On 02/18/2013 11:02 AM, Richard Sandiford wrote:
> Michael Eager <eager@eagerm.com> writes:
>> Hi --
>>
>> I'm seeing failures building gdb-head for MIPS targets.  The
>> failure are warnings while compiling the MIPS opcode tables.  Gdb
>> is built with -Werror and the tables have missing initializers for
>> the 'exclusions' field.
>>
>> Is anyone else seeing this build failure?  If not, what are
>> you doing different from a minimal configuration?
>
> 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.


-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


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

* Re: MIPS build failure
  2013-02-18 19:31   ` Michael Eager
@ 2013-02-19 14:52     ` Maciej W. Rozycki
  2013-02-19 15:28       ` Michael Eager
  0 siblings, 1 reply; 5+ messages in thread
From: Maciej W. Rozycki @ 2013-02-19 14:52 UTC (permalink / raw)
  To: Michael Eager; +Cc: gdb, binutils, Daniel Jacobowitz, Richard Sandiford

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


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

* Re: MIPS build failure
  2013-02-19 14:52     ` Maciej W. Rozycki
@ 2013-02-19 15:28       ` Michael Eager
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Eager @ 2013-02-19 15:28 UTC (permalink / raw)
  To: Maciej W. Rozycki; +Cc: gdb, binutils, Daniel Jacobowitz, Richard Sandiford

On 02/19/2013 06:52 AM, Maciej W. Rozycki wrote:
> 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.

gcc-3.4.6.  (RHEL 4)


-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


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

* MIPS build failure
@ 2013-02-18 18:01 Michael Eager
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Eager @ 2013-02-18 18:01 UTC (permalink / raw)
  To: gdb, binutils; +Cc: Daniel Jacobowitz

Hi --

I'm seeing failures building gdb-head for MIPS targets.  The
failure are warnings while compiling the MIPS opcode tables.  Gdb
is built with -Werror and the tables have missing initializers for
the 'exclusions' field.

Is anyone else seeing this build failure?  If not, what are
you doing different from a minimal configuration?

The fix is trivial: add 0 initializers for the missing field.
Is anyone else working on this?

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


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

end of thread, other threads:[~2013-02-19 15:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <51226C66.3010304__32532.8041137711$1361210543$gmane$org@eagerm.com>
2013-02-18 19:03 ` MIPS build failure Richard Sandiford
2013-02-18 19:31   ` Michael Eager
2013-02-19 14:52     ` Maciej W. Rozycki
2013-02-19 15:28       ` Michael Eager
2013-02-18 18:01 Michael Eager

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox