Discussion:
[Bug build/23583] New: MinGW/MSYS: ERROR_OPERATION_ABORTED, ERROR_IO_INCOMPLETE and ERROR_IO_PENDING not declared in this scope
sizious at gmail dot com
2018-08-29 08:02:14 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23583

Bug ID: 23583
Summary: MinGW/MSYS: ERROR_OPERATION_ABORTED,
ERROR_IO_INCOMPLETE and ERROR_IO_PENDING not declared
in this scope
Product: gdb
Version: 8.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: sizious at gmail dot com
Target Milestone: ---

I tried to compile gdb-8.1.1 on MinGW/MSYS environment (NOT MinGW-w64/MSYS2,
this is a different project with no links between them) and it doesn't compile
with the following error:

In file included from ../.././gnulib/import/strerror-override.c:28:0:
../.././gnulib/import/strerror-override.c: In function 'strerror_override':
../.././gnulib/import/strerror-override.c:132:10: error:
'ERROR_OPERATION_ABORTED' undeclared (first use in this function)
case WSA_OPERATION_ABORTED:
^
../.././gnulib/import/strerror-override.c:132:10: note: each undeclared
identifier is reported only once for each function it appears in
../.././gnulib/import/strerror-override.c:134:10: error: 'ERROR_IO_INCOMPLETE'
undeclared (first use in this function)
case WSA_IO_INCOMPLETE:
^
../.././gnulib/import/strerror-override.c:136:10: error: 'ERROR_IO_PENDING'
undeclared (first use in this function)
case WSA_IO_PENDING:
^
make[8]: *** [strerror-override.o] Error 1

To reproduce the bug:

1- Download "mingw-get-setup.exe" from https://sourceforge.net/projects/mingw/
- it shows v0.6.2-beta-20131004-1 (It's just the MinGW Installation Manager
Setup Tool version).
2- Click Install.
3- Install packages : mingw32-base, mingw32-gcc-g++, msys-base (GCC is 6.3.0-1
FYI).
4- Open MSYS Shell.
5- Unpack gdb-8.1.1 in the home directory or somewhere else.
6- Then execute the following command to launch the GDB build:

configure --disable-werror --prefix=/opt/toolchains/dc/sh-elf --target=sh-elf
make
--
You are receiving this mail because:
You are on the CC list for the bug.
sizious at gmail dot com
2018-08-29 02:32:57 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23583

SiZiOUS <sizious at gmail dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Target| |sh-elf
Host| |mingw32
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...