MIPS build failure
Michael Eager
eager@eagerm.com
Mon Feb 18 19:31:00 GMT 2013
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
More information about the Binutils
mailing list