sizious at gmail dot com
2018-08-24 08:28:10 UTC
https://sourceware.org/bugzilla/show_bug.cgi?id=23568
Bug ID: 23568
Summary: gdb/ser-mingw.c: error: 'ERROR_IO_PENDING' was not
declared in this scope (MinGW/MSYS)
Product: gdb
Version: 7.12.1
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: sizious at gmail dot com
Target Milestone: ---
When compiling under the original MSYS/MinGW environment (downloaded from
www.mingw.org, i.e. NOT MinGW-w64/MSYS2, as I need Windows XP support), a
compilation error is thrown from the "gdb/ser-mingw.c" file:
../../gdb-7.12.1/gdb/ser-mingw.c: In function 'int
ser_windows_read_prim(serial*, size_t)':
../../gdb-7.12.1/gdb/ser-mingw.c:346:30: error: 'ERROR_IO_PENDING' was not
declared in this scope
if (GetLastError () != ERROR_IO_PENDING
^~~~~~~~~~~~~~~~
../../gdb-7.12.1/gdb/ser-mingw.c: In function 'int
ser_windows_write_prim(serial*, const void*, size_t)':
../../gdb-7.12.1/gdb/ser-mingw.c:368:30: error: 'ERROR_IO_PENDING' was not
declared in this scope
if (GetLastError () != ERROR_IO_PENDING
^~~~~~~~~~~~~~~~
make[3]: *** [ser-mingw.o] Error 1
Note: The host is "mingw32" and the target is "sh-elf".
PROPOSED CORRECTION:
I solved this bug by adding the following code snippet directly in the
"gdb/ser-mingw.c" file:
#ifndef ERROR_IO_PENDING
// In MinGW (original project, for MinGW-w64 I don't know), this code is
defined in that header file.
#include <winerror.h>
#endif
After that modification, the compilation of gdb-7.12.1 with host "mingw32" and
targetting "sh-elf" is successful.
Bug ID: 23568
Summary: gdb/ser-mingw.c: error: 'ERROR_IO_PENDING' was not
declared in this scope (MinGW/MSYS)
Product: gdb
Version: 7.12.1
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: sizious at gmail dot com
Target Milestone: ---
When compiling under the original MSYS/MinGW environment (downloaded from
www.mingw.org, i.e. NOT MinGW-w64/MSYS2, as I need Windows XP support), a
compilation error is thrown from the "gdb/ser-mingw.c" file:
../../gdb-7.12.1/gdb/ser-mingw.c: In function 'int
ser_windows_read_prim(serial*, size_t)':
../../gdb-7.12.1/gdb/ser-mingw.c:346:30: error: 'ERROR_IO_PENDING' was not
declared in this scope
if (GetLastError () != ERROR_IO_PENDING
^~~~~~~~~~~~~~~~
../../gdb-7.12.1/gdb/ser-mingw.c: In function 'int
ser_windows_write_prim(serial*, const void*, size_t)':
../../gdb-7.12.1/gdb/ser-mingw.c:368:30: error: 'ERROR_IO_PENDING' was not
declared in this scope
if (GetLastError () != ERROR_IO_PENDING
^~~~~~~~~~~~~~~~
make[3]: *** [ser-mingw.o] Error 1
Note: The host is "mingw32" and the target is "sh-elf".
PROPOSED CORRECTION:
I solved this bug by adding the following code snippet directly in the
"gdb/ser-mingw.c" file:
#ifndef ERROR_IO_PENDING
// In MinGW (original project, for MinGW-w64 I don't know), this code is
defined in that header file.
#include <winerror.h>
#endif
After that modification, the compilation of gdb-7.12.1 with host "mingw32" and
targetting "sh-elf" is successful.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are receiving this mail because:
You are on the CC list for the bug.