[Bug build/23583] New: MinGW/MSYS: ERROR_OPERATION_ABORTED, ERROR_IO_INCOMPLETE and ERROR_IO_PENDING not declared in this scope

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug build/23583] New: MinGW/MSYS: ERROR_OPERATION_ABORTED, ERROR_IO_INCOMPLETE and ERROR_IO_PENDING not declared in this scope

glaubitz at physik dot fu-berlin.de
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.
Reply | Threaded
Open this post in threaded view
|

[Bug build/23583] MinGW/MSYS: ERROR_OPERATION_ABORTED, ERROR_IO_INCOMPLETE and ERROR_IO_PENDING not declared in this scope

glaubitz at physik dot fu-berlin.de
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.
Reply | Threaded
Open this post in threaded view
|

[Bug build/23583] MinGW/MSYS: ERROR_OPERATION_ABORTED, ERROR_IO_INCOMPLETE and ERROR_IO_PENDING not declared in this scope

Sourceware - gdb-prs mailing list
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=23583

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at sourceware dot org

--- Comment #1 from Hannes Domani <ssbssa at sourceware dot org> ---
This looks like a dup of PR23568, because winsock2.h -> windows.h -> winbase.h
-> winerror.h -> ERROR_OPERATION_ABORTED.

--
You are receiving this mail because:
You are on the CC list for the bug.