This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: MIPS build failure


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


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