On Tue, 7 Aug 2012 16:39:23 +0200, Jan wrote: > mips-tdep.c: In function ‘mips_n32n64_return_value’: > mips-tdep.c:5044:5: error: format ‘%d’ expects argument of type > ‘int’, but argument 3 has type ‘long int’ [-Werror=format] cc1: all > warnings being treated as errors tic6x-tdep.c: In function > ‘tic6x_push_dummy_call’: tic6x-tdep.c:1133:8: error: format ‘%d’ > expects argument of type ‘int’, but argument 4 has type ‘long > int’ [-Werror=format] cc1: all warnings being treated as errors > gdbtypes.c:955:1: error: conflicting types for > ‘lookup_array_range_type’ In file included from gdbtypes.c:28:0: > gdbtypes.h:1537:21: note: previous declaration of > ‘lookup_array_range_type’ was here gdbtypes.c:991:1: error: > conflicting types for ‘lookup_string_range_type’ In file included > from gdbtypes.c:28:0: gdbtypes.h:1541:21: note: previous declaration > of ‘lookup_string_range_type’ was here > I've fixed the build errors with the --enable-targets=all with the attached patch. I have done a clean build with --enable-targets=all to verify. Regards, Siddhesh gdb/ChangeLog: * gdbtypes.h (lookup_array_range_type): Expand parameters LOW_BOUND, HIGH_BOUND to LONGEST. (lookup_string_range_type): Likewise. * mips-tdep.c (mips_n32n64_return_value): Use plongest to format print OFFSET. * tic6x-tdep.c (tic6x_push_dummy_call): Use plongest to format print LEN.