From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128957 invoked by alias); 16 Mar 2015 09:32:48 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 128933 invoked by uid 48); 16 Mar 2015 09:32:47 -0000 From: "lukeallardyce at yahoo dot co.uk" To: gdb-prs@sourceware.org Subject: [Bug gdb/18131] New: cannot cross compile gdbserver for x86_64-w64-mingw32 Date: Mon, 16 Mar 2015 09:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lukeallardyce at yahoo dot co.uk X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q1/txt/msg00437.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18131 Bug ID: 18131 Summary: cannot cross compile gdbserver for x86_64-w64-mingw32 Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: lukeallardyce at yahoo dot co.uk commit 791c005 seems to have broken gdbserver when cross compiling for x86_64-w64-mingw32 ../../../../../binutils-gdb/gdb/gdbserver/../common/common-remote-fileio.c:88:1: error: conflicting types for 'remote_fileio_to_fio_stat' remote_fileio_to_fio_stat (struct stat *st, struct fio_stat *fst) ^ In file included from ../../../../../binutils-gdb/gdb/gdbserver/../common/common-remote-fileio.c:21:0: ../../../../../binutils-gdb/gdb/gdbserver/../common/common-remote-fileio.h:58:13: note: previous declaration of 'remote_fileio_to_fio_stat' was here extern void remote_fileio_to_fio_stat (struct stat *st, For some reason the forward declaration of stat in common-remote-fileio.h seems to conflict with its definition in sys/stat.h, I worked around it for now as follows diff --git a/gdb/common/common-remote-fileio.c b/gdb/common/common-remote-fileio.c index f78b3f7..4d5b897 100644 --- a/gdb/common/common-remote-fileio.c +++ b/gdb/common/common-remote-fileio.c @@ -19,7 +19,6 @@ #include "common-defs.h" #include "common-remote-fileio.h" -#include /* Convert a host-format mode_t into a bitmask of File-I/O flags. */ diff --git a/gdb/common/common-remote-fileio.h b/gdb/common/common-remote-fileio.h index b838186..27bc585 100644 --- a/gdb/common/common-remote-fileio.h +++ b/gdb/common/common-remote-fileio.h @@ -21,8 +21,7 @@ #define COMMON_REMOTE_FILEIO_H #include "gdb/fileio.h" - -struct stat; +#include /* Pack a host-format integer into a byte buffer in big-endian format ready for transmission over the remote protocol. BYTES specifies -- You are receiving this mail because: You are on the CC list for the bug.