[MinGW-Notify] [mingw] #39766: Support gratuitous GCC dependencies

Back to archive index
MinGW Notification List mingw****@lists*****
Mon Apr 27 19:23:47 JST 2020

#39766: Support gratuitous GCC dependencies

  Open Date: 2019-11-15 19:44
Last Update: 2020-04-27 11:23

URL for this Ticket:
RSS feed for this Ticket:


Last Changes/Comment on this Ticket:
2020-04-27 11:23 Updated by: keith
 * Status Update from Open to Closed

 * Resolution Update from Accepted to Fixed


As of the release of wsl-5.3, all gratuitously assumed features needed to
support building of GCC-9.2.0 have been incorporated, for mingw32.

Ticket Status:

      Reporter: keith
         Owner: keith
          Type: Feature Request
        Status: Closed
      Priority: 5 - Medium
     MileStone: WSL-5.3 (closed)
     Component: WSL
      Severity: 5 - Medium
    Resolution: Fixed

Ticket details:

MS-Windows builds of GCC-9.x gratuitously require Microsoft's non-standard
_get_errno() and _set_errno() functions, which are not supported by MSVCRT.DLL
prior to Windows-Vista. Additionally, this same GCC version introduces a
dependency on a ftruncate64() function, which, as ftruncate() is mapped to
Microsoft's _chsize(), could be mapped to Microsoft's _chsize_s(); however,
like the two non-standard errno accessors, _chsize_s() is unsupported, without
introducing dependencies on non-free Microsoft DLLs, prior to Windows-Vista.
Such gratuitous GCC dependencies are incompatible with MinGW.org's policy of
continuing legacy support for pre-Vista Windows versions.

The attached patch offers work-arounds for each of these gratuitous GCC
dependencies, extending support to pre-Vista Windows, while still linking with

Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
RSS feed for this Ticket:

More information about the MinGW-Notify mailing list
Back to archive index