develooper Front page | perl.perl5.porters | Postings from May 2018

[perl #128631] Win32 MinGW build failure

Thread Next
From: via RT
May 11, 2018 23:01
[perl #128631] Win32 MinGW build failure
Message ID:
On Thu, 10 May 2018 05:58:06 -0700, shay wrote:

> Does anyone know what version is reported by "the fatally flawed
> mingwrt-4.x variants" reported? Is that what my 4.8.1 setup is using,
> despite reporting itself as 3.20? Or are there versions that report
> themselves as 4.x?

My take regarding 4.x is that all we need to do is assume that mkstemp() is not defined for runtimes that report __MINGW32_MAJOR_VERSION as 4 - and code accordingly.

> I've only just discovered that new compilers (v5 and v6)
> even exist. But knowing this now, I wonder if this should be a 5.28
> blocker?

Fiddling with it now could be a little risky in that mingw-w64 compilers also define __MINGW32_MAJOR_VERSION and __MINGW32_MINOR_VERSIO - and UIM we definitely don't want them to start doing things differently.
However, mingw-w64 compilers seem to always define those values as "3" and "11" respectively and that would mean we could fiddle with __MINGW32_MAJOR_VERSION and __MINGW32_MINOR_VERSION without altering mingw-w64 behaviour (because we're not going to mess with anything less than 3.21, right ?).

I've checked my mingw-w64 compilers from 4.7.0 through to 7.2.0, and __MINGW32_MAJOR_VERSION and __MINGW32_MINOR_VERSION are always 3 and 11. It's __MINGW64_VERSION_MAJOR, __MINGW64_VERSION_MINOR that correctly identify their runtime version numbers.
However, I haven't checked for every mingw-w64 compiler. What are the chances ?


via perlbug:  queue: perl5 status: open

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About