../../gdb/ser-tcp.c: In function 'wait_for_connect': ../../gdb/ser-tcp.c:137:53: error: passing argument 5 of 'select' from incompatible pointer type [-Werror] n = select (scb->fd + 1, &rset, &wset, &eset, &t); ^ In file included from ../../gdb/serial.h:23:0, from ../../gdb/ser-tcp.c:21: /usr/x86_64-w64-mingw32/sys-root/mingw/include/winsock2.h:995:34: note: expected 'PTIMEVAL' but argument is of type 'struct rpl_timeval *' WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout); ^ cc1: all warnings being treated as errors make[2]: *** [ser-tcp.o] Error 1 ../../gdb/symfile.c: In function 'generic_load': ../../gdb/symfile.c:2190:10: error: passing argument 4 of 'print_transfer_performance' from incompatible pointer type [-Werror] &start_time, &end_time); ^ In file included from ../../gdb/symfile.c:22:0: ../../gdb/defs.h:270:13: note: expected 'const struct timeval *' but argument is of type 'struct rpl_timeval *' extern void print_transfer_performance (struct ui_file *stream, ^ ../../gdb/symfile.c:2190:23: error: passing argument 5 of 'print_transfer_performance' from incompatible pointer type [-Werror] &start_time, &end_time); ^ In file included from ../../gdb/symfile.c:22:0: ../../gdb/defs.h:270:13: note: expected 'const struct timeval *' but argument is of type 'struct rpl_timeval *' extern void print_transfer_performance (struct ui_file *stream, ^ ../../gdb/symfile.c: At top level: ../../gdb/symfile.c:2198:1: error: conflicting types for 'print_transfer_performance' print_transfer_performance (struct ui_file *stream, ^ In file included from ../../gdb/symfile.c:22:0: ../../gdb/defs.h:270:13: note: previous declaration of 'print_transfer_performance' was here extern void print_transfer_performance (struct ui_file *stream, ^ ../../gdb/symfile.c:3567:10: error: 'SIZE' redeclared as different kind of symbol VMA, SIZE, LMA, MAPPED ^ In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/windows.h:69:0, from /usr/x86_64-w64-mingw32/sys-root/mingw/include/winsock2.h:23, from build-gnulib/import/sys/time.h:49, from ../../gdb/symfile.c:65: /usr/x86_64-w64-mingw32/sys-root/mingw/include/windef.h:102:3: note: previous declaration of 'SIZE' was here } SIZE,*PSIZE,*LPSIZE; ^ cc1: all warnings being treated as errors make[2]: *** [symfile.o] Error 1 ../../gdb/maint.c: In function 'report_command_stats': ../../gdb/maint.c:874:17: error: incompatible types when assigning to type 'struct rpl_timeval' from type 'struct timeval' wait_time = get_prompt_for_continue_wait_time (); ^ make[2]: *** [maint.o] Error 1 ../../gdb/utils.c: In function 'defaulted_query': ../../gdb/utils.c:1349:16: error: passing argument 1 of 'timeval_sub' from incompatible pointer type [-Werror] timeval_sub (&prompt_delta, &prompt_ended, &prompt_started); ^ In file included from ../../gdb/utils.c:41:0: ../../gdb/../include/timeval-utils.h:33:13: note: expected 'struct timeval *' but argument is of type 'struct rpl_timeval *' extern void timeval_sub (struct timeval *result, ^ ../../gdb/utils.c:1349:31: error: passing argument 2 of 'timeval_sub' from incompatible pointer type [-Werror] timeval_sub (&prompt_delta, &prompt_ended, &prompt_started); ^ In file included from ../../gdb/utils.c:41:0: ../../gdb/../include/timeval-utils.h:33:13: note: expected 'const struct timeval *' but argument is of type 'struct rpl_timeval *' extern void timeval_sub (struct timeval *result, ^ ../../gdb/utils.c:1349:46: error: passing argument 3 of 'timeval_sub' from incompatible pointer type [-Werror] timeval_sub (&prompt_delta, &prompt_ended, &prompt_started); ^ In file included from ../../gdb/utils.c:41:0: ../../gdb/../include/timeval-utils.h:33:13: note: expected 'const struct timeval *' but argument is of type 'struct rpl_timeval *' extern void timeval_sub (struct timeval *result, ^ ../../gdb/utils.c:1350:16: error: passing argument 1 of 'timeval_add' from incompatible pointer type [-Werror] timeval_add (&prompt_for_continue_wait_time, ^ In file included from ../../gdb/utils.c:41:0: ../../gdb/../include/timeval-utils.h:30:13: note: expected 'struct timeval *' but argument is of type 'struct rpl_timeval *' extern void timeval_add (struct timeval *result, ^ ../../gdb/utils.c:1351:16: error: passing argument 2 of 'timeval_add' from incompatible pointer type [-Werror] &prompt_for_continue_wait_time, &prompt_delta); ^ In file included from ../../gdb/utils.c:41:0: ../../gdb/../include/timeval-utils.h:30:13: note: expected 'const struct timeval *' but argument is of type 'struct rpl_timeval *' extern void timeval_add (struct timeval *result, ^ ../../gdb/utils.c:1351:48: error: passing argument 3 of 'timeval_add' from incompatible pointer type [-Werror] &prompt_for_continue_wait_time, &prompt_delta); ^ In file included from ../../gdb/utils.c:41:0: ../../gdb/../include/timeval-utils.h:30:13: note: expected 'const struct timeval *' but argument is of type 'struct rpl_timeval *' extern void timeval_add (struct timeval *result, ^ ../../gdb/utils.c: In function 'prompt_for_continue': ../../gdb/utils.c:1878:16: error: passing argument 1 of 'timeval_sub' from incompatible pointer type [-Werror] timeval_sub (&prompt_delta, &prompt_ended, &prompt_started); ^ In file included from ../../gdb/utils.c:41:0: ../../gdb/../include/timeval-utils.h:33:13: note: expected 'struct timeval *' but argument is of type 'struct rpl_timeval *' extern void timeval_sub (struct timeval *result, ^ ../../gdb/utils.c:1878:31: error: passing argument 2 of 'timeval_sub' from incompatible pointer type [-Werror] timeval_sub (&prompt_delta, &prompt_ended, &prompt_started); ^ In file included from ../../gdb/utils.c:41:0: ../../gdb/../include/timeval-utils.h:33:13: note: expected 'const struct timeval *' but argument is of type 'struct rpl_timeval *' extern void timeval_sub (struct timeval *result, ^ ../../gdb/utils.c:1878:46: error: passing argument 3 of 'timeval_sub' from incompatible pointer type [-Werror] timeval_sub (&prompt_delta, &prompt_ended, &prompt_started); ^ In file included from ../../gdb/utils.c:41:0: ../../gdb/../include/timeval-utils.h:33:13: note: expected 'const struct timeval *' but argument is of type 'struct rpl_timeval *' extern void timeval_sub (struct timeval *result, ^ ../../gdb/utils.c:1879:16: error: passing argument 1 of 'timeval_add' from incompatible pointer type [-Werror] timeval_add (&prompt_for_continue_wait_time, ^ In file included from ../../gdb/utils.c:41:0: ../../gdb/../include/timeval-utils.h:30:13: note: expected 'struct timeval *' but argument is of type 'struct rpl_timeval *' extern void timeval_add (struct timeval *result, ^ ../../gdb/utils.c:1880:16: error: passing argument 2 of 'timeval_add' from incompatible pointer type [-Werror] &prompt_for_continue_wait_time, &prompt_delta); ^ In file included from ../../gdb/utils.c:41:0: ../../gdb/../include/timeval-utils.h:30:13: note: expected 'const struct timeval *' but argument is of type 'struct rpl_timeval *' extern void timeval_add (struct timeval *result, ^ ../../gdb/utils.c:1880:48: error: passing argument 3 of 'timeval_add' from incompatible pointer type [-Werror] &prompt_for_continue_wait_time, &prompt_delta); ^ In file included from ../../gdb/utils.c:41:0: ../../gdb/../include/timeval-utils.h:30:13: note: expected 'const struct timeval *' but argument is of type 'struct rpl_timeval *' extern void timeval_add (struct timeval *result, ^ ../../gdb/utils.c: At top level: ../../gdb/utils.c:1917:1: error: conflicting types for 'get_prompt_for_continue_wait_time' get_prompt_for_continue_wait_time (void) ^ In file included from ../../gdb/defs.h:706:0, from ../../gdb/utils.c:20: ../../gdb/utils.h:58:16: note: previous declaration of 'get_prompt_for_continue_wait_time' was here struct timeval get_prompt_for_continue_wait_time (void); ^ cc1: all warnings being treated as errors make[2]: *** [utils.o] Error 1 make[2]: Target 'all' not remade because of errors. make[1]: *** [all-gdb] Error 2 make[1]: Target 'all-host' not remade because of errors. make: *** [all] Error 2